• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "skia_filegroup")
2
3# We export a known file inside the resources directory so that we can compute a path to said
4# directory from places that support "Make" variables[1], such as the "cmd" attribute[2] of a
5# genrule. For example, a genrule can compute the path to the resources directory from its "cmd"
6# attribute as follows:
7#
8#     $$(dirname $$(rootpath //resources:README))
9#
10# [1] https://bazel.build/reference/be/make-variables
11# [2] https://bazel.build/reference/be/general#genrule.cmd
12exports_files(
13    ["README"],
14    visibility = [
15        "//bench:__pkg__",
16        "//gm:__pkg__",
17        "//tests:__pkg__",
18    ],
19)
20
21skia_filegroup(
22    name = "resources",
23    srcs = [
24        "Cowboy.svg",
25        "android_fonts/pre_v17/fallback_fonts.xml",
26        "android_fonts/pre_v17/system_fonts.xml",
27        "android_fonts/v17/fallback_fonts.xml",
28        "android_fonts/v17/fallback_fonts-ja.xml",
29        "android_fonts/v17/system_fonts.xml",
30        "android_fonts/v22/fonts.xml",
31        "crbug769134.fil",
32        "diff_canvas_traces/lorem_ipsum.trace",
33        "empty_images/zero-dims.gif",
34        "empty_images/zero-embedded.ico",
35        "empty_images/zero-height.bmp",
36        "empty_images/zero-height.jpg",
37        "empty_images/zero-height.png",
38        "empty_images/zero-height.wbmp",
39        "empty_images/zero-width.bmp",
40        "empty_images/zero-width.jpg",
41        "empty_images/zero-width.png",
42        "empty_images/zero-width.wbmp",
43        "empty_images/zero_height.tiff",
44        "fonts/7630.otf",
45        "fonts/Distortable.ttf",
46        "fonts/Em.ttf",
47        "fonts/Funkster.ttf",
48        "fonts/HangingS.ttf",
49        "fonts/NotoSansCJK-VF-subset.otf.ttc",
50        "fonts/ReallyBigA.ttf",
51        "fonts/Roboto-Regular.ttf",
52        "fonts/Roboto2-Regular.pfa",
53        "fonts/Roboto2-Regular.pfb",
54        "fonts/Roboto2-Regular_NoEmbed.ttf",
55        "fonts/SampleSVG.ttf",
56        "fonts/SpiderSymbol.ttf",
57        "fonts/Stroking.otf",
58        "fonts/Stroking.ttf",
59        "fonts/Variable.ttf",
60        "fonts/VaryAlongQuads.ttf",
61        "fonts/abc/abc.ttf",
62        "fonts/abc/abc.ttx",
63        "fonts/abc/abc+agrave.ttf",
64        "fonts/abc/abc+agrave.ttx",
65        "fonts/abc/abc+grave.ttf",
66        "fonts/abc/abc+grave.ttx",
67        "fonts/ahem.ttf",
68        "fonts/cbdt.ttf",
69        "fonts/colr.ttf",
70        "fonts/cond-bold-italic.ttf",
71        "fonts/fonts.xml",
72        "fonts/hintgasp.ttf",
73        "fonts/planetcbdt.ttf",
74        "fonts/planetcolr.ttf",
75        "fonts/planetsbix.ttf",
76        "fonts/sbix.ttf",
77        "fonts/sbix_uncompressed_flags.ttf",
78        "fonts/svg/diamond.svg",
79        "fonts/svg/empty.svg",
80        "fonts/svg/notdef.svg",
81        "fonts/svg/planets/earth.svg",
82        "fonts/svg/planets/jupiter.svg",
83        "fonts/svg/planets/mars.svg",
84        "fonts/svg/planets/mercury.svg",
85        "fonts/svg/planets/neptune.svg",
86        "fonts/svg/planets/pluto.svg",
87        "fonts/svg/planets/saturn.svg",
88        "fonts/svg/planets/uranus.svg",
89        "fonts/svg/planets/venus.svg",
90        "fonts/svg/smile.svg",
91        "fonts/test.ttc",
92        "fonts/test_glyphs-glyf_colr_1.ttf",
93        "fonts/test_glyphs-glyf_colr_1_variable.ttf",
94        "icc_profiles/AdobeRGB1998.icc",
95        "icc_profiles/HP_Z32x.icc",
96        "icc_profiles/HP_ZR30w.icc",
97        "icc_profiles/srgb_lab_pcs.icc",
98        "icc_profiles/upperLeft.icc",
99        "icc_profiles/upperRight.icc",
100        "images/16x1.png",
101        "images/1x1.png",
102        "images/1x16.png",
103        "images/1x3.png",
104        "images/2x2.png",
105        "images/3x1.png",
106        "images/3x3.png",
107        "images/CMYK.jpg",
108        "images/Connecting.png",
109        "images/Generic_Error.png",
110        "images/Onboard.png",
111        "images/alphabetAnim.avif",
112        "images/alphabetAnim.gif",
113        "images/arrow.png",
114        "images/b78329453.jpeg",
115        "images/baby_tux.avif",
116        "images/baby_tux.png",
117        "images/baby_tux.webp",
118        "images/blendBG.webp",
119        "images/box.gif",
120        "images/brickwork-texture.jpg",
121        "images/brickwork_normal-map.jpg",
122        "images/cmyk_yellow_224_224_32.jpg",
123        "images/colorTables.gif",
124        "images/color_wheel.gif",
125        "images/color_wheel.ico",
126        "images/color_wheel.jpg",
127        "images/color_wheel.png",
128        "images/color_wheel.webp",
129        "images/color_wheel_with_profile.png",
130        "images/crbug807324.png",
131        "images/cropped_mandrill.jpg",
132        "images/dng_with_preview.dng",
133        "images/dog.avif",
134        "images/dog.jpg",
135        "images/ducky.avif",
136        "images/ducky.jpg",
137        "images/ducky.png",
138        "images/example_1.png",
139        "images/example_1_animated.avif",
140        "images/example_2.png",
141        "images/example_3.png",
142        "images/example_3_10bit.avif",
143        "images/example_3_12bit.avif",
144        "images/example_4.png",
145        "images/example_5.png",
146        "images/example_6.png",
147        "images/exif-orientation-2-ur.jpg",
148        "images/explosion_sprites.png",
149        "images/flightAnim.gif",
150        "images/flower-bc1.dds",
151        "images/flower-etc1.ktx",
152        "images/flutter_logo.jpg",
153        "images/gamut.png",
154        "images/gif-transparent-index.gif",
155        "images/google_chrome.ico",
156        "images/grayscale.jpg",
157        "images/grayscale.png",
158        "images/half-transparent-white-pixel.png",
159        "images/half-transparent-white-pixel.webp",
160        "images/icc-v2-gbr.jpg",
161        "images/iconstrip.png",
162        "images/index8.png",
163        "images/iphone_13_pro.jpeg",
164        "images/lut_identity.png",
165        "images/lut_sepia.png",
166        "images/mandrill.wbmp",
167        "images/mandrill_128.png",
168        "images/mandrill_16.png",
169        "images/mandrill_1600.png",
170        "images/mandrill_256.png",
171        "images/mandrill_32.png",
172        "images/mandrill_512.png",
173        "images/mandrill_512_q075.jpg",
174        "images/mandrill_64.png",
175        "images/mandrill_cmyk.jpg",
176        "images/mandrill_h1v1.jpg",
177        "images/mandrill_h2v1.jpg",
178        "images/mandrill_sepia.png",
179        "images/orientation/1.webp",
180        "images/orientation/1_410.jpg",
181        "images/orientation/1_411.jpg",
182        "images/orientation/1_420.jpg",
183        "images/orientation/1_422.jpg",
184        "images/orientation/1_440.jpg",
185        "images/orientation/1_444.jpg",
186        "images/orientation/2.webp",
187        "images/orientation/2_410.jpg",
188        "images/orientation/2_411.jpg",
189        "images/orientation/2_420.jpg",
190        "images/orientation/2_422.jpg",
191        "images/orientation/2_440.jpg",
192        "images/orientation/2_444.jpg",
193        "images/orientation/3.webp",
194        "images/orientation/3_410.jpg",
195        "images/orientation/3_411.jpg",
196        "images/orientation/3_420.jpg",
197        "images/orientation/3_422.jpg",
198        "images/orientation/3_440.jpg",
199        "images/orientation/3_444.jpg",
200        "images/orientation/4.webp",
201        "images/orientation/4_410.jpg",
202        "images/orientation/4_411.jpg",
203        "images/orientation/4_420.jpg",
204        "images/orientation/4_422.jpg",
205        "images/orientation/4_440.jpg",
206        "images/orientation/4_444.jpg",
207        "images/orientation/5.webp",
208        "images/orientation/5_410.jpg",
209        "images/orientation/5_411.jpg",
210        "images/orientation/5_420.jpg",
211        "images/orientation/5_422.jpg",
212        "images/orientation/5_440.jpg",
213        "images/orientation/5_444.jpg",
214        "images/orientation/6.webp",
215        "images/orientation/6_410.jpg",
216        "images/orientation/6_411.jpg",
217        "images/orientation/6_420.jpg",
218        "images/orientation/6_422.jpg",
219        "images/orientation/6_440.jpg",
220        "images/orientation/6_444.jpg",
221        "images/orientation/7.webp",
222        "images/orientation/7_410.jpg",
223        "images/orientation/7_411.jpg",
224        "images/orientation/7_420.jpg",
225        "images/orientation/7_422.jpg",
226        "images/orientation/7_440.jpg",
227        "images/orientation/7_444.jpg",
228        "images/orientation/8.webp",
229        "images/orientation/8_410.jpg",
230        "images/orientation/8_411.jpg",
231        "images/orientation/8_420.jpg",
232        "images/orientation/8_422.jpg",
233        "images/orientation/8_440.jpg",
234        "images/orientation/8_444.jpg",
235        "images/orientation/exif.jpg",
236        "images/orientation/subifd.jpg",
237        "images/out-of-palette.gif",
238        "images/plane.png",
239        "images/plane_interlaced.png",
240        "images/purple-displayprofile.png",
241        "images/rainbow-gradient.png",
242        "images/randPixels.bmp",
243        "images/randPixels.gif",
244        "images/randPixels.jpg",
245        "images/randPixels.png",
246        "images/randPixels.webp",
247        "images/randPixelsAnim.gif",
248        "images/randPixelsAnim2.gif",
249        "images/randPixelsOffset.gif",
250        "images/red-hlg-profile.png",
251        "images/red-pq-profile.png",
252        "images/required.gif",
253        "images/required.webp",
254        "images/rle.bmp",
255        "images/sample_1mp.dng",
256        "images/sample_1mp_rotated.dng",
257        "images/shadowreference.png",
258        "images/ship.png",
259        "images/stoplight.webp",
260        "images/stoplight_h.webp",
261        "images/test640x479.gif",
262        "images/text.png",
263        "images/webp-color-profile-crash.webp",
264        "images/webp-color-profile-lossless.webp",
265        "images/webp-color-profile-lossy.webp",
266        "images/webp-color-profile-lossy-alpha.webp",
267        "images/wide-gamut.png",
268        "images/wide_gamut_yellow_224_224_64.jpeg",
269        "images/xOffsetTooBig.gif",
270        "images/yellow_rose.png",
271        "images/yellow_rose.webp",
272        "invalid_images/b33251605.bmp",
273        "invalid_images/b33651913.bmp",
274        "invalid_images/b34778578.bmp",
275        "invalid_images/b37623797.ico",
276        "invalid_images/b38116746.ico",
277        "invalid_images/bad_palette.png",
278        "invalid_images/ico_fuzz0.ico",
279        "invalid_images/ico_fuzz1.ico",
280        "invalid_images/ico_leak01.ico",
281        "invalid_images/int_overflow.ico",
282        "invalid_images/invalid-offset.webp",
283        "invalid_images/many-progressive-scans.jpg",
284        "invalid_images/mask-bmp-ico.ico",
285        "invalid_images/osfuzz6288.bmp",
286        "invalid_images/osfuzz6295.webp",
287        "invalid_images/ossfuzz6274.gif",
288        "invalid_images/ossfuzz6347",
289        "invalid_images/sigabort_favicon.ico",
290        "invalid_images/sigsegv_favicon.ico",
291        "invalid_images/sigsegv_favicon_2.ico",
292        "invalid_images/skbug3429.webp",
293        "invalid_images/skbug3442.webp",
294        "invalid_images/skbug5883.gif",
295        "invalid_images/skbug5887.gif",
296        "invalid_images/skbug6046.gif",
297        "nov-talk-sequence.txt",
298        "pdf_command_stream.txt",
299        "rivs/bullet_man_game.riv",
300        "rivs/glow.riv",
301        "rivs/hero_editor.riv",
302        "rivs/knight_square.riv",
303        "skottie/images/mandrill_64.png",
304        "skottie/images/triangle.png",
305        "skottie/skottie-3d-2planes.json",
306        "skottie/skottie-3d-3planes.json",
307        "skottie/skottie-3d-parenting-camera.json",
308        "skottie/skottie-3d-parenting-nocamera.json",
309        "skottie/skottie-3d-rotation-order.json",
310        "skottie/skottie-auto-orient.json",
311        "skottie/skottie-auto-orient-2.json",
312        "skottie/skottie-bezier-extranormal.json",
313        "skottie/skottie-blackandwhite-effect.json",
314        "skottie/skottie-blendmode-hardmix.json",
315        "skottie/skottie-brightnesscontrast.json",
316        "skottie/skottie-brightnesscontrast-legacy.json",
317        "skottie/skottie-bulge.json",
318        "skottie/skottie-camera-one-node.json",
319        "skottie/skottie-camera-parent-1.json",
320        "skottie/skottie-camera-parent-2.json",
321        "skottie/skottie-camera-parent-3.json",
322        "skottie/skottie-camera-precomp.json",
323        "skottie/skottie-camera-rotation.json",
324        "skottie/skottie-cctoner.json",
325        "skottie/skottie-chained-mattes.json",
326        "skottie/skottie-corner-pin-effect.json",
327        "skottie/skottie-directional-blur.json",
328        "skottie/skottie-displacement-expand.json",
329        "skottie/skottie-displacement-hsla.json",
330        "skottie/skottie-displacement-lfho.json",
331        "skottie/skottie-displacement-rgba.json",
332        "skottie/skottie-displacement-tiling.json",
333        "skottie/skottie-dropshadow-style.json",
334        "skottie/skottie-effects-transform.json",
335        "skottie/skottie-fill-effect.json",
336        "skottie/skottie-fractalnoise-basic.json",
337        "skottie/skottie-fractalnoise-block.json",
338        "skottie/skottie-fractalnoise-cycle.json",
339        "skottie/skottie-fractalnoise-linear.json",
340        "skottie/skottie-fractalnoise-scalerotate.json",
341        "skottie/skottie-fractalnoise-softlinear.json",
342        "skottie/skottie-fractalnoise-sphere.json",
343        "skottie/skottie-fractalnoise-suboptions.json",
344        "skottie/skottie-fractalnoise-turbulentbasic.json",
345        "skottie/skottie-fractalnoise-turbulentsharp.json",
346        "skottie/skottie-fractalnoise-turbulentsmooth.json",
347        "skottie/skottie-glow-spread.json",
348        "skottie/skottie-gradient-opacity.json",
349        "skottie/skottie-gradient-ramp.json",
350        "skottie/skottie-hidden-shapes-layers.json",
351        "skottie/skottie-huesaturation-animated.json",
352        "skottie/skottie-huesaturation-effect.json",
353        "skottie/skottie-inline-fonts.json",
354        "skottie/skottie-innerglow-style.json",
355        "skottie/skottie-innershadow-style.json",
356        "skottie/skottie-invert-effect.json",
357        "skottie/skottie-invert-effect-yiq.json",
358        "skottie/skottie-levels-effect.json",
359        "skottie/skottie-line-height.json",
360        "skottie/skottie-linear-wipe-effect.json",
361        "skottie/skottie-luma-matte.json",
362        "skottie/skottie-mask-feather.json",
363        "skottie/skottie-masking-opaque.json",
364        "skottie/skottie-masking-translucent.json",
365        "skottie/skottie-matte-blendmode.json",
366        "skottie/skottie-mergepaths-effect.json",
367        "skottie/skottie-motion-blur-mask.json",
368        "skottie/skottie-motion-blur-ph-360.json",
369        "skottie/skottie-motion-blur-ph0.json",
370        "skottie/skottie-motion-blur-ph360.json",
371        "skottie/skottie-motiontile-effect.json",
372        "skottie/skottie-motiontile-effect-phase.json",
373        "skottie/skottie-multi-range-selectors.json",
374        "skottie/skottie-nested-animation.json",
375        "skottie/skottie-offsetpaths-effect.json",
376        "skottie/skottie-outerglow-style.json",
377        "skottie/skottie-phonehub-connecting.json",
378        "skottie/skottie-phonehub-connecting_min.json",
379        "skottie/skottie-phonehub-generic-error.json",
380        "skottie/skottie-phonehub-generic-error_min.json",
381        "skottie/skottie-phonehub-onboard.json",
382        "skottie/skottie-phonehub-onboard_min.json",
383        "skottie/skottie-phonehub-svgo-connecting.json",
384        "skottie/skottie-phonehub-svgo-connecting_min.json",
385        "skottie/skottie-phonehub-svgo-generic-error.json",
386        "skottie/skottie-phonehub-svgo-generic-error_min.json",
387        "skottie/skottie-phonehub-svgo-no-frills-connecting.json",
388        "skottie/skottie-phonehub-svgo-no-frills-connecting_min.json",
389        "skottie/skottie-phonehub-svgo-no-frills-generic-error.json",
390        "skottie/skottie-phonehub-svgo-no-frills-generic-error_min.json",
391        "skottie/skottie-phonehub-svgo-no-frills-onboard.json",
392        "skottie/skottie-phonehub-svgo-no-frills-onboard_min.json",
393        "skottie/skottie-phonehub-svgo-no-masks-connecting.json",
394        "skottie/skottie-phonehub-svgo-no-masks-connecting_min.json",
395        "skottie/skottie-phonehub-svgo-no-masks-onboard.json",
396        "skottie/skottie-phonehub-svgo-no-masks-onboard_min.json",
397        "skottie/skottie-phonehub-svgo-onboard.json",
398        "skottie/skottie-phonehub-svgo-onboard_min.json",
399        "skottie/skottie-prolevels-effect.json",
400        "skottie/skottie-puckerbloat-effect.json",
401        "skottie/skottie-radial-wipe-effect.json",
402        "skottie/skottie-repeater.json",
403        "skottie/skottie-sharpen.json",
404        "skottie/skottie-shift-channels-effect.json",
405        "skottie/skottie-sksl-color-filter.json",
406        "skottie/skottie-sksl-effect.json",
407        "skottie/skottie-slots.json",
408        "skottie/skottie-sphere-controls.json",
409        "skottie/skottie-sphere-effect.json",
410        "skottie/skottie-sphere-lighting.json",
411        "skottie/skottie-sphere-lighting-types.json",
412        "skottie/skottie-sphere-transparecy.json",
413        "skottie/skottie-text-allcaps.json",
414        "skottie/skottie-text-animatedglyphs-01.json",
415        "skottie/skottie-text-animatedglyphs-02.json",
416        "skottie/skottie-text-animatedglyphs-03.json",
417        "skottie/skottie-text-animatedglyphs-04.json",
418        "skottie/skottie-text-animator-1.json",
419        "skottie/skottie-text-animator-2.json",
420        "skottie/skottie-text-animator-3.json",
421        "skottie/skottie-text-animator-4.json",
422        "skottie/skottie-text-animator-5.json",
423        "skottie/skottie-text-animator-6.json",
424        "skottie/skottie-text-animator-7.json",
425        "skottie/skottie-text-animator-8.json",
426        "skottie/skottie-text-animator-fillstrokeopacity.json",
427        "skottie/skottie-text-animator-linespacing.json",
428        "skottie/skottie-text-animator-opacity.json",
429        "skottie/skottie-text-animator-strokewidth.json",
430        "skottie/skottie-text-baseline-shift.json",
431        "skottie/skottie-text-blur.json",
432        "skottie/skottie-text-emptylines.json",
433        "skottie/skottie-text-fill-over-stroke.json",
434        "skottie/skottie-text-grouping-alignment.json",
435        "skottie/skottie-text-grouping-alignment-2.json",
436        "skottie/skottie-text-perchar-3d.json",
437        "skottie/skottie-text-pointmode-downscaletofit.json",
438        "skottie/skottie-text-pointmode-scaletofit.json",
439        "skottie/skottie-text-resize-to-fit.json",
440        "skottie/skottie-text-scale-to-fit.json",
441        "skottie/skottie-text-scale-to-fit-maxlines.json",
442        "skottie/skottie-text-scale-to-fit-minmax.json",
443        "skottie/skottie-text-strokejoin.json",
444        "skottie/skottie-text-strokescale.json",
445        "skottie/skottie-text-valign.json",
446        "skottie/skottie-text-valign-2.json",
447        "skottie/skottie-text-valign-bottom.json",
448        "skottie/skottie-text-valign-scaletofit.json",
449        "skottie/skottie-text-valign-visual-2.json",
450        "skottie/skottie-text-valign-visual-scaletofit.json",
451        "skottie/skottie-text-vertical-clip.json",
452        "skottie/skottie-text-whitespace-align.json",
453        "skottie/skottie-textpath-01.json",
454        "skottie/skottie-textpath-02.json",
455        "skottie/skottie-textpath-03.json",
456        "skottie/skottie-textpath-04.json",
457        "skottie/skottie-textpath-05.json",
458        "skottie/skottie-textpath-paragraph-01.json",
459        "skottie/skottie-textpath-paragraph-02.json",
460        "skottie/skottie-textpath-paragraph-03.json",
461        "skottie/skottie-textpath-tracking.json",
462        "skottie/skottie-threshold-compositing.json",
463        "skottie/skottie-threshold-effect.json",
464        "skottie/skottie-time-reverse.json",
465        "skottie/skottie-transform-effect.json",
466        "skottie/skottie-transform-skew.json",
467        "skottie/skottie-trimpath-fill.json",
468        "skottie/skottie-trimpath-modes.json",
469        "skottie/skottie-tritone-effect.json",
470        "skottie/skottie-venetianblinds-effect.json",
471        "skottie/skottie_sample_1.json",
472        "skottie/skottie_sample_2.json",
473        "skottie/skottie_sample_multiframe.json",
474        "skottie/skottie_sample_search.json",
475        "skottie/skottie_sample_webfont.json",
476        "text/arabic.txt",
477        "text/armenian.txt",
478        "text/balinese.txt",
479        "text/bengali.txt",
480        "text/buginese.txt",
481        "text/cherokee.txt",
482        "text/cyrillic.txt",
483        "text/devanagari.txt",
484        "text/emoji.txt",
485        "text/english.txt",
486        "text/ethiopic.txt",
487        "text/greek.txt",
488        "text/han_simplified.txt",
489        "text/han_traditional.txt",
490        "text/hangul.txt",
491        "text/hebrew.txt",
492        "text/javanese.txt",
493        "text/kana.txt",
494        "text/khmer.txt",
495        "text/lao.txt",
496        "text/mandaic.txt",
497        "text/myanmar.txt",
498        "text/newtailue.txt",
499        "text/nko.txt",
500        "text/sinhala.txt",
501        "text/sundanese.txt",
502        "text/syriac.txt",
503        "text/taitham.txt",
504        "text/tamil.txt",
505        "text/thaana.txt",
506        "text/thai.txt",
507        "text/tibetan.txt",
508        "text/tifnagh.txt",
509        "text/vai.txt",
510        "//resources/sksl",
511    ],
512    visibility = [
513        "//bench:__pkg__",
514        "//gm:__pkg__",
515        "//src/ports/fontations:__pkg__",
516        "//tests:__pkg__",
517    ],
518)
519
520filegroup(
521    name = "core_test_resources",
522    srcs = [
523        "images/baby_tux.png",
524        "images/baby_tux.webp",
525    ],
526    visibility = [
527        "//tests:__pkg__",
528    ],
529)
530