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