| 1 |
load("//bazel:skia_rules.bzl", "skia_cc_library", "split_srcs_and_hdrs") |
| 2 |
|
| 3 |
package( |
| 4 |
default_applicable_licenses = ["//:license"], |
| 5 |
) |
| 6 |
|
| 7 |
licenses(["notice"]) |
| 8 |
|
| 9 |
PRECOMPILE_FILES = [ |
| 10 |
"PaintOption.cpp", |
| 11 |
"PaintOption.h", |
| 12 |
"PaintOptions.cpp", |
| 13 |
"PaintOptionsPriv.h", |
| 14 |
"PrecompileBaseComplete.h", |
| 15 |
"PrecompileBasePriv.h", |
| 16 |
"PrecompileBlender.cpp", |
| 17 |
"PrecompileBlenderPriv.h", |
| 18 |
"PrecompileColorFilter.cpp", |
| 19 |
"PrecompileColorFiltersPriv.h", |
| 20 |
"PrecompileImageFilter.cpp", |
| 21 |
"PrecompileImageFilterPriv.h", |
| 22 |
"PrecompileImageFiltersPriv.h", |
| 23 |
"PrecompileImageShader.h", |
| 24 |
"PrecompileMaskFilter.cpp", |
| 25 |
"PrecompileRuntimeEffect.cpp", |
| 26 |
"PrecompileShader.cpp", |
| 27 |
"PrecompileShaderPriv.h", |
| 28 |
"PrecompileShadersPriv.h", |
| 29 |
] |
| 30 |
|
| 31 |
split_srcs_and_hdrs( |
| 32 |
name = "_precompile", |
| 33 |
files = PRECOMPILE_FILES, |
| 34 |
) |
| 35 |
|
| 36 |
skia_cc_library( |
| 37 |
name = "precompile", |
| 38 |
srcs = [ |
| 39 |
":_precompile_hdrs", |
| 40 |
":_precompile_srcs", |
| 41 |
"//src/gpu/graphite:precompile_srcs", |
| 42 |
], |
| 43 |
hdrs = ["//include/gpu/graphite/precompile:public_hdrs"], |
| 44 |
deps = [ |
| 45 |
"//:core", |
| 46 |
"//src/gpu", |
| 47 |
"//src/gpu/graphite", |
| 48 |
], |
| 49 |
) |
| 50 |
|
| 51 |
skia_cc_library( |
| 52 |
name = "precompile_TEST_UTIL", |
| 53 |
testonly = True, |
| 54 |
srcs = [ |
| 55 |
":_precompile_hdrs", |
| 56 |
":_precompile_srcs", |
| 57 |
"//src/gpu/graphite:precompile_srcs", |
| 58 |
], |
| 59 |
hdrs = ["//include/gpu/graphite/precompile:public_hdrs"], |
| 60 |
visibility = ["//tools:__subpackages__"], |
| 61 |
deps = [ |
| 62 |
"//:core", |
| 63 |
"//src/gpu", |
| 64 |
"//src/gpu/graphite:graphite_TEST_UTIL", |
| 65 |
], |
| 66 |
) |