• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "generate_cpp_files_for_headers", "select_multi", "skia_filegroup")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9exports_files_legacy()
10
11skia_filegroup(
12    name = "public_hdrs",
13    srcs = [
14        ":ganesh_hdrs",
15    ] + select_multi(
16        {
17            "//src/gpu:gl_ganesh": ["//include/gpu/ganesh/gl:public_hdrs"],
18            "//src/gpu:vulkan_ganesh": ["//include/gpu/ganesh/vk:public_hdrs"],
19        },
20    ),
21    visibility = ["//include/gpu:__pkg__"],
22)
23
24skia_filegroup(
25    name = "ganesh_hdrs",
26    srcs = [
27        "GrExternalTextureGenerator.h",
28        "SkImageGanesh.h",
29        "SkMeshGanesh.h",
30        "SkSurfaceGanesh.h",
31    ],
32    visibility = ["//src/gpu/ganesh:__subpackages__"],
33)
34
35generate_cpp_files_for_headers(
36    name = "headers_to_compile",
37    headers = [
38        "GrExternalTextureGenerator.h",
39        "SkImageGanesh.h",
40        "SkMeshGanesh.h",
41        "SkSurfaceGanesh.h",
42    ],
43)
44