xref: /aosp_15_r20/external/skia/src/gpu/ganesh/gl/egl/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 = "egl_factory",
11    srcs = [
12        "GrGLMakeEGLInterface.cpp",
13    ],
14    hdrs = [
15        "//include/gpu/ganesh/gl/egl:public_hdrs",
16    ],
17    defines = ["SK_DISABLE_LEGACY_EGLINTERFACE_FACTORY"],
18    linkopts = select({
19        "@platforms//os:android": [
20            "-lEGL",
21            "-lGLESv2",
22        ],
23        "//conditions:default": [],
24    }),
25    visibility = ["//:__pkg__"],
26    deps = [
27        "//:core",
28        "//:ganesh_gl",
29        "//bazel/external/egl",
30        "//bazel/external/glesv2",
31    ],
32)
33