• 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
11TEXT_FILES = [
12    "Font.cpp",
13    "Font.h",
14    "RangeSelector.cpp",
15    "RangeSelector.h",
16    "TextAdapter.cpp",
17    "TextAdapter.h",
18    "TextAnimator.cpp",
19    "TextAnimator.h",
20    "TextValue.cpp",
21    "TextValue.h",
22    # TextShaper.cpp is explicitly not here
23]
24
25split_srcs_and_hdrs(
26    name = "text",
27    files = TEXT_FILES,
28)
29
30skia_filegroup(
31    name = "srcs_without_textshaper",
32    srcs = [
33        ":text_hdrs",  # TODO(kjlubick) Remove after making G3 explicitly use this
34        ":text_srcs",
35    ],
36    visibility = ["//modules/skottie/src:__pkg__"],
37)
38
39skia_filegroup(
40    name = "private_hdrs",
41    srcs = [
42        ":text_hdrs",
43    ],
44    visibility = ["//modules/skottie:__pkg__"],
45)
46
47skia_filegroup(
48    name = "text_shaper_srcs",
49    srcs = [
50        "TextShaper.cpp",
51    ],
52    visibility = ["//modules/skottie:__pkg__"],
53)
54