xref: /aosp_15_r20/external/skia/include/private/chromium/BUILD.bazel (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Workerload("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "skia_filegroup")
2*c8dee2aaSAndroid Build Coastguard Worker
3*c8dee2aaSAndroid Build Coastguard Workerpackage(
4*c8dee2aaSAndroid Build Coastguard Worker    default_applicable_licenses = ["//:license"],
5*c8dee2aaSAndroid Build Coastguard Worker)
6*c8dee2aaSAndroid Build Coastguard Worker
7*c8dee2aaSAndroid Build Coastguard Workerlicenses(["notice"])
8*c8dee2aaSAndroid Build Coastguard Worker
9*c8dee2aaSAndroid Build Coastguard Worker# This group is mapped to //gn/gpu.gni:skia_shared_gpu_sources.
10*c8dee2aaSAndroid Build Coastguard Workerskia_filegroup(
11*c8dee2aaSAndroid Build Coastguard Worker    name = "shared_private_hdrs",
12*c8dee2aaSAndroid Build Coastguard Worker    srcs = [
13*c8dee2aaSAndroid Build Coastguard Worker        "Slug.h",
14*c8dee2aaSAndroid Build Coastguard Worker    ],
15*c8dee2aaSAndroid Build Coastguard Worker)
16*c8dee2aaSAndroid Build Coastguard Worker
17*c8dee2aaSAndroid Build Coastguard Worker# This group is mapped to //gn/gpu.gni:skia_gpu_chromium_public.
18*c8dee2aaSAndroid Build Coastguard Workerskia_filegroup(
19*c8dee2aaSAndroid Build Coastguard Worker    name = "ganesh_private_hdrs",
20*c8dee2aaSAndroid Build Coastguard Worker    srcs = [
21*c8dee2aaSAndroid Build Coastguard Worker        "GrDeferredDisplayList.h",
22*c8dee2aaSAndroid Build Coastguard Worker        "GrDeferredDisplayListRecorder.h",
23*c8dee2aaSAndroid Build Coastguard Worker        "GrPromiseImageTexture.h",
24*c8dee2aaSAndroid Build Coastguard Worker        "GrSurfaceCharacterization.h",
25*c8dee2aaSAndroid Build Coastguard Worker        "SkImageChromium.h",
26*c8dee2aaSAndroid Build Coastguard Worker    ],
27*c8dee2aaSAndroid Build Coastguard Worker    visibility = ["//src/gpu/ganesh:__pkg__"],
28*c8dee2aaSAndroid Build Coastguard Worker)
29*c8dee2aaSAndroid Build Coastguard Worker
30*c8dee2aaSAndroid Build Coastguard Worker# This group is mapped to //gn/gpu.gni:skia_gpu_vk_chromium.
31*c8dee2aaSAndroid Build Coastguard Workerskia_filegroup(
32*c8dee2aaSAndroid Build Coastguard Worker    name = "vk_ganesh_hdrs",
33*c8dee2aaSAndroid Build Coastguard Worker    srcs = [
34*c8dee2aaSAndroid Build Coastguard Worker        "GrVkSecondaryCBDrawContext.h",
35*c8dee2aaSAndroid Build Coastguard Worker    ],
36*c8dee2aaSAndroid Build Coastguard Worker)
37*c8dee2aaSAndroid Build Coastguard Worker
38*c8dee2aaSAndroid Build Coastguard Worker# This group is mapped to //gn/core.gni:skia_discardable_memory_chromium.
39*c8dee2aaSAndroid Build Coastguard Workerskia_filegroup(
40*c8dee2aaSAndroid Build Coastguard Worker    name = "discardable_memory_hdrs",
41*c8dee2aaSAndroid Build Coastguard Worker    srcs = [
42*c8dee2aaSAndroid Build Coastguard Worker        "SkDiscardableMemory.h",
43*c8dee2aaSAndroid Build Coastguard Worker    ],
44*c8dee2aaSAndroid Build Coastguard Worker)
45*c8dee2aaSAndroid Build Coastguard Worker
46*c8dee2aaSAndroid Build Coastguard Workerskia_filegroup(
47*c8dee2aaSAndroid Build Coastguard Worker    name = "core_hdrs",
48*c8dee2aaSAndroid Build Coastguard Worker    srcs = [
49*c8dee2aaSAndroid Build Coastguard Worker        "SkChromeRemoteGlyphCache.h",
50*c8dee2aaSAndroid Build Coastguard Worker        "SkDiscardableMemory.h",
51*c8dee2aaSAndroid Build Coastguard Worker        "Slug.h",
52*c8dee2aaSAndroid Build Coastguard Worker    ],
53*c8dee2aaSAndroid Build Coastguard Worker    visibility = ["//src/core:__pkg__"],
54*c8dee2aaSAndroid Build Coastguard Worker)
55*c8dee2aaSAndroid Build Coastguard Worker
56*c8dee2aaSAndroid Build Coastguard Workergenerate_cpp_files_for_headers(
57*c8dee2aaSAndroid Build Coastguard Worker    name = "headers_to_compile",
58*c8dee2aaSAndroid Build Coastguard Worker    headers = [
59*c8dee2aaSAndroid Build Coastguard Worker        "SkImageChromium.h",
60*c8dee2aaSAndroid Build Coastguard Worker    ],
61*c8dee2aaSAndroid Build Coastguard Worker)
62