| 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 = "glx_factory", |
| 11 |
srcs = [ |
| 12 |
"GrGLMakeGLXInterface.cpp", |
| 13 |
], |
| 14 |
hdrs = [ |
| 15 |
"//include/gpu/ganesh/gl/glx:public_hdrs", |
| 16 |
], |
| 17 |
defines = ["SK_DISABLE_LEGACY_GLXINTERFACE_FACTORY"], |
| 18 |
visibility = ["//:__pkg__"], |
| 19 |
deps = [ |
| 20 |
"//:core", |
| 21 |
"//:ganesh_gl", |
| 22 |
], |
| 23 |
) |
| 24 |
|
| 25 |
skia_cc_library( |
| 26 |
name = "glx_factory_TEST_UTIL", |
| 27 |
testonly = True, |
| 28 |
srcs = [ |
| 29 |
"GrGLMakeGLXInterface.cpp", |
| 30 |
], |
| 31 |
hdrs = [ |
| 32 |
"//include/gpu/ganesh/gl/glx:public_hdrs", |
| 33 |
], |
| 34 |
defines = ["SK_DISABLE_LEGACY_GLXINTERFACE_FACTORY"], |
| 35 |
linkopts = [ |
| 36 |
"-lGL", |
| 37 |
"-lGLU", |
| 38 |
"-lX11", |
| 39 |
"-lxcb", # dep of X11 |
| 40 |
"-lXau", # dep of xcb |
| 41 |
"-lXdmcp", # dep of xcb |
| 42 |
], |
| 43 |
visibility = [ |
| 44 |
"//tools/ganesh:__pkg__", |
| 45 |
"//tools/window:__pkg__", |
| 46 |
], |
| 47 |
deps = [ |
| 48 |
"//:core", |
| 49 |
"//src/gpu/ganesh/gl:ganesh_gl_TEST_UTIL", |
| 50 |
], |
| 51 |
) |