• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# https://github.com/bazelbuild/bazel-skylib
2load("@bazel_skylib//lib:selects.bzl", "selects")
3
4package(default_visibility = ["//visibility:private"])
5
6filegroup(
7    name = "core-srcs",
8    srcs = [
9        "SkImage.cpp",
10        "SkImage_Base.h",
11        "SkImage_Lazy.cpp",
12        "SkImage_Lazy.h",
13        "SkImage_Raster.cpp",
14        "SkReadPixelsRec.h",
15        "SkRescaleAndReadPixels.cpp",
16        "SkRescaleAndReadPixels.h",
17        "SkSurface.cpp",
18        "SkSurface_Base.h",
19        "SkSurface_Raster.cpp",
20    ],
21)
22
23filegroup(
24    name = "gpu-srcs",
25    srcs = [
26        "SkImage_Gpu.cpp",
27        "SkImage_Gpu.h",
28        "SkImage_GpuBase.cpp",
29        "SkImage_GpuBase.h",
30        "SkImage_GpuYUVA.cpp",
31        "SkImage_GpuYUVA.h",
32        "SkSurface_Gpu.cpp",
33        "SkSurface_Gpu.h",
34    ],
35)
36
37filegroup(
38    name = "srcs",
39    srcs = [":core-srcs"] + selects.with_or({
40        ("//bazel/common_config_settings:gl_backend", "//bazel/common_config_settings:vulkan_backend"): [
41            ":gpu-srcs",
42        ],
43        "//conditions:default": [],
44    }),
45    visibility = ["//:__subpackages__"],
46)
47