• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_deps", "skia_filegroup")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9exports_files_legacy()
10
11skia_filegroup(
12    name = "srcs",
13    testonly = True,
14    srcs = [
15        "RasterWindowContext_unix.cpp",
16        "WindowContextFactory_unix.h",
17    ] + select({
18        "//src/gpu:gl_ganesh": ["GLWindowContext_unix.cpp"],
19        "//src/gpu:vulkan_ganesh": ["VulkanWindowContext_unix.cpp"],
20        "//conditions:default": [],
21    }),
22    visibility = ["//tools/window:__pkg__"],
23)
24
25skia_cc_deps(
26    name = "deps",
27    testonly = True,
28    linkopts = [
29        "-lX11",
30        "-lxcb",  # dep of X11
31        "-lXau",  # dep of xcb
32        "-lXdmcp",  # dep of xcb
33    ] + select({
34        "//src/gpu:vulkan_ganesh": ["-lX11-xcb"],
35        "//conditions:default": [],
36    }),
37    visibility = ["//tools/sk_app:__pkg__"],
38    deps = select({
39        "//src/gpu:vulkan_ganesh": ["//tools/gpu/vk:testutils"],
40        "//conditions:default": [],
41    }),
42)
43