• 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        "Window_unix.cpp",
16        "Window_unix.h",
17        "keysym2ucs.c",
18        "keysym2ucs.h",
19        "main_unix.cpp",
20    ],
21    visibility = ["//tools/sk_app:__pkg__"],
22)
23
24skia_cc_deps(
25    name = "deps",
26    testonly = True,
27    linkopts = [
28        "-lX11",
29        "-lxcb",  # dep of X11
30        "-lXau",  # dep of xcb
31        "-lXdmcp",  # dep of xcb
32    ] + select({
33        "//src/gpu:vulkan_ganesh": ["-lX11-xcb"],
34        "//conditions:default": [],
35    }),
36    visibility = ["//tools/sk_app:__pkg__"],
37    deps = select({
38        "//src/gpu:vulkan_ganesh": ["//tools/gpu/vk:testutils"],
39        "//conditions:default": [],
40    }),
41)
42