• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "generate_cpp_files_for_headers", "skia_filegroup")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9exports_files_legacy()
10
11# This group is mapped to //gn/gpu.gni:skia_shared_gpu_sources.
12skia_filegroup(
13    name = "shared_private_hdrs",
14    srcs = [
15        "Slug.h",
16    ],
17)
18
19# This group is mapped to //gn/gpu.gni:skia_gpu_chromium_public.
20skia_filegroup(
21    name = "ganesh_private_hdrs",
22    srcs = [
23        "GrDeferredDisplayList.h",
24        "GrDeferredDisplayListRecorder.h",
25        "GrPromiseImageTexture.h",
26        "GrSurfaceCharacterization.h",
27        "SkImageChromium.h",
28    ],
29    visibility = ["//src/gpu/ganesh:__pkg__"],
30)
31
32# This group is mapped to //gn/gpu.gni:skia_gpu_vk_chromium.
33skia_filegroup(
34    name = "vk_ganesh_hdrs",
35    srcs = [
36        "GrVkSecondaryCBDrawContext.h",
37    ],
38)
39
40# This group is mapped to //gn/core.gni:skia_discardable_memory_chromium.
41skia_filegroup(
42    name = "discardable_memory_hdrs",
43    srcs = [
44        "SkDiscardableMemory.h",
45    ],
46)
47
48skia_filegroup(
49    name = "private_hdrs",
50    srcs = [
51        "SkChromeRemoteGlyphCache.h",
52        ":discardable_memory_hdrs",
53        ":shared_private_hdrs",
54    ] + select({
55        "//src/gpu:has_ganesh_backend": [":ganesh_private_hdrs"],
56        "//conditions:default": [],
57    }) + select({
58        "//src/gpu:vulkan_ganesh": [":vk_ganesh_hdrs"],
59        "//conditions:default": [],
60    }),
61    visibility = ["//include/private:__pkg__"],
62)
63
64skia_filegroup(
65    name = "core_hdrs",
66    srcs = [
67        "SkChromeRemoteGlyphCache.h",
68        "SkDiscardableMemory.h",
69        "Slug.h",
70    ],
71    visibility = ["//src/core:__pkg__"],
72)
73
74generate_cpp_files_for_headers(
75    name = "headers_to_compile",
76    headers = [
77        "SkImageChromium.h",
78    ],
79)
80