• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_deps", "skia_filegroup")
2
3licenses(["notice"])
4
5exports_files_legacy()
6
7skia_filegroup(
8    name = "srcs",
9    testonly = True,
10    srcs = [
11        "RasterWindowContext_mac.mm",
12        "WindowContextFactory_mac.h",
13        "Window_mac.mm",
14        "Window_mac.h",
15        "main_mac.mm",
16    ] + select({
17        # TODO(kjlubick, jmbetancourt) Graphite and Metal backend
18        "//src/gpu:gl_backend": ["GLWindowContext_mac.mm"],
19        "//src/gpu:dawn_backend": ["DawnMTLWindowContext_mac.mm"],
20        "//conditions:default": [],
21    }),
22    visibility = ["//tools/sk_app:__pkg__"],
23)
24
25skia_cc_deps(
26    name = "deps",
27    testonly = True,
28    linkopts = [
29        "-framework",
30        "OpenGL",
31        "-framework",
32        "QuartzCore",
33        "-framework",
34        "Cocoa",
35        "-framework",
36        "Foundation",
37    ],
38    visibility = ["//tools/sk_app:__pkg__"],
39    deps = [
40        "//tools:tool_utils",
41    ],
42)
43