xref: /aosp_15_r20/external/skia/src/gpu/ganesh/gl/mac/BUILD.bazel (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1load("//bazel:skia_rules.bzl", "skia_cc_library")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9skia_cc_library(
10    name = "mac_factory",
11    srcs = [
12        "GrGLMakeNativeInterface_mac.cpp",
13    ],
14    hdrs = [
15        "//include/gpu/ganesh/gl/mac:public_hdrs",
16    ],
17    defines = ["SK_DISABLE_LEGACY_GL_MAKE_NATIVE_INTERFACE"],
18    visibility = ["//:__pkg__"],
19    deps = [
20        "//:core",
21        "//:ganesh_gl",
22    ],
23)
24
25skia_cc_library(
26    name = "mac_factory_TEST_UTIL",
27    testonly = True,
28    srcs = [
29        "GrGLMakeNativeInterface_mac.cpp",
30    ],
31    hdrs = [
32        "//include/gpu/ganesh/gl/mac:public_hdrs",
33    ],
34    defines = ["SK_DISABLE_LEGACY_GL_MAKE_NATIVE_INTERFACE"],
35    visibility = [
36        "//tools/gpu:__pkg__",
37        "//tools/window:__pkg__",
38    ],
39    deps = [
40        "//:core",
41        "//src/gpu/ganesh/gl:ganesh_gl_TEST_UTIL",
42    ],
43)
44