• 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_mac.mm",
16        "WindowContextFactory_mac.h",
17        "Window_mac.h",
18        "Window_mac.mm",
19        "main_mac.mm",
20    ] + select({
21        # TODO(kjlubick, jmbetancourt) Graphite backend
22        "//src/gpu:gl_ganesh": ["GLWindowContext_mac.mm"],
23        "//src/gpu:metal_ganesh": ["MetalWindowContext_mac.mm"],
24        "//conditions:default": [],
25    }),
26    visibility = ["//tools/sk_app:__pkg__"],
27)
28
29skia_cc_deps(
30    name = "deps",
31    testonly = True,
32    linkopts = [
33        "-framework",
34        "OpenGL",
35        "-framework",
36        "QuartzCore",
37        "-framework",
38        "Cocoa",
39        "-framework",
40        "Foundation",
41    ],
42    visibility = ["//tools/sk_app:__pkg__"],
43    deps = [
44        "//tools:legacy_tool_utils",
45    ],
46)
47