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