| 1 |
load("//bazel:skia_rules.bzl", "skia_filegroup", "split_srcs_and_hdrs") |
| 2 |
|
| 3 |
package( |
| 4 |
default_applicable_licenses = ["//:license"], |
| 5 |
) |
| 6 |
|
| 7 |
licenses(["notice"]) |
| 8 |
|
| 9 |
CORE_FILES = [ |
| 10 |
"Adapter.h", |
| 11 |
"BlendModes.cpp", |
| 12 |
"Camera.cpp", |
| 13 |
"Camera.h", |
| 14 |
"Composition.cpp", |
| 15 |
"Composition.h", |
| 16 |
"Layer.cpp", |
| 17 |
"Layer.h", |
| 18 |
"Path.cpp", |
| 19 |
"Skottie.cpp", |
| 20 |
"SkottieJson.cpp", |
| 21 |
"SkottieJson.h", |
| 22 |
"SkottiePriv.h", |
| 23 |
"SkottieProperty.cpp", |
| 24 |
"SkottieValue.h", |
| 25 |
"SlotManager.cpp", |
| 26 |
"Transform.cpp", |
| 27 |
"Transform.h", |
| 28 |
] |
| 29 |
|
| 30 |
split_srcs_and_hdrs( |
| 31 |
name = "core", |
| 32 |
files = CORE_FILES, |
| 33 |
) |
| 34 |
|
| 35 |
skia_filegroup( |
| 36 |
name = "srcs", |
| 37 |
srcs = [ |
| 38 |
":core_srcs", |
| 39 |
"//modules/skottie/src/animator:srcs", |
| 40 |
"//modules/skottie/src/effects:srcs", |
| 41 |
"//modules/skottie/src/layers:srcs", |
| 42 |
"//modules/skottie/src/text:srcs_without_textshaper", |
| 43 |
], |
| 44 |
visibility = ["//modules/skottie:__pkg__"], |
| 45 |
) |
| 46 |
|
| 47 |
skia_filegroup( |
| 48 |
name = "private_hdrs", |
| 49 |
srcs = [ |
| 50 |
":core_hdrs", |
| 51 |
], |
| 52 |
visibility = ["//modules/skottie:__pkg__"], |
| 53 |
) |
| 54 |
|
| 55 |
skia_filegroup( |
| 56 |
name = "skottie_tool", |
| 57 |
srcs = [ |
| 58 |
"SkottieTool.cpp", |
| 59 |
], |
| 60 |
visibility = ["//modules/skottie:__pkg__"], |
| 61 |
) |