• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_filegroup")
2
3licenses(["notice"])
4
5exports_files_legacy(
6    label_list = ["SkBitmaskEnum.h"],
7    visibility = ["//tools/skui:__pkg__"],
8)
9
10# In own skia_filegroup for mapping to the //gn/sksl.gni file.
11skia_filegroup(
12    name = "sksl_private_hdrs",
13    srcs = [
14        "SkSLDefines.h",
15        "SkSLIRNode.h",
16        "SkSLLayout.h",
17        "SkSLModifiers.h",
18        "SkSLProgramElement.h",
19        "SkSLProgramKind.h",
20        "SkSLSampleUsage.h",
21        "SkSLStatement.h",
22        "SkSLString.h",
23        "SkSLSymbol.h",
24    ],
25)
26
27skia_filegroup(
28    name = "private_hdrs",
29    srcs = [
30        "SkBitmaskEnum.h",
31        "SkChecksum.h",
32        "SkColorData.h",
33        "SkEncodedInfo.h",
34        "SkFixed.h",
35        "SkGainmapInfo.h",
36        "SkGainmapShader.h",
37        "SkIDChangeListener.h",
38        "SkOpts_spi.h",
39        "SkPathRef.h",
40        "SkShadowFlags.h",
41        "SkSpinlock.h",
42        "SkWeakRefCnt.h",
43        ":sksl_private_hdrs",
44        "//include/private/chromium:private_hdrs",
45        "//include/private/base:private_hdrs",
46    ] + select({
47        "//src/gpu:has_gpu_backend": [
48            "//include/private/gpu:private_hdrs",
49        ],
50        "//conditions:default": [],
51    }),
52    visibility = ["//include:__pkg__"],
53)
54
55skia_filegroup(
56    name = "buffet_hdrs",
57    srcs = [
58        # Files listed here will be available to Skia internals via the core_priv target.
59        "SkColorData.h",
60        "SkIDChangeListener.h",
61    ],
62    visibility = ["//src:__pkg__"],
63)
64
65skia_filegroup(
66    name = "buffet_srcs",
67    srcs = [
68        # We really don't want this header to be used outside of SkPath and SkPathBuilder
69        # so we add it to core under srcs instead to enforce that.
70        "SkPathRef.h",
71    ],
72    visibility = ["//src:__pkg__"],
73)
74