| 1 |
load("//bazel:skia_rules.bzl", "skia_cc_library") |
| 2 |
|
| 3 |
package( |
| 4 |
default_applicable_licenses = ["//:license"], |
| 5 |
) |
| 6 |
|
| 7 |
licenses(["notice"]) |
| 8 |
|
| 9 |
skia_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 |
] + select({ |
| 30 |
"@platforms//os:android": [], |
| 31 |
"//conditions:default": [ |
| 32 |
"//bazel/external/egl", |
| 33 |
"//bazel/external/glesv2", |
| 34 |
], |
| 35 |
}), |
| 36 |
) |