• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_library", "skia_filegroup")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9exports_files_legacy(label_list = [
10    "CommandLineFlags.cpp",
11    "CommandLineFlags.h",
12])
13
14skia_filegroup(
15    name = "flags",
16    testonly = True,
17    srcs = [
18        "CommandLineFlags.cpp",
19        "CommandLineFlags.h",
20    ],
21    visibility = [
22        "//gm:__pkg__",
23        "//modules/skottie:__pkg__",
24        "//tests:__subpackages__",
25        "//tools:__subpackages__",
26    ],
27)
28
29skia_filegroup(
30    name = "common_flags_legacy",
31    testonly = True,
32    srcs = [
33        "CommonFlags.h",
34        "CommonFlagsImages.cpp",
35    ] + select({
36        "//src/gpu:has_ganesh_backend": ["CommonFlagsGpu.cpp"],
37        "//conditions:default": [],
38    }),
39    visibility = [
40        "//gm:__pkg__",
41        "//tools:__subpackages__",
42    ],
43)
44
45skia_filegroup(
46    name = "common_flags",
47    testonly = True,
48    srcs = [
49        "CommonFlags.h",
50        "CommonFlagsImages.cpp",
51    ],
52    visibility = [
53        "//gm:__pkg__",
54    ],
55)
56
57skia_cc_library(
58    name = "cmd_flags",
59    testonly = True,
60    srcs = [
61        "CommandLineFlags.cpp",
62    ],
63    hdrs = [
64        "CommandLineFlags.h",
65    ],
66    visibility = [
67        "//bench:__pkg__",
68        "//modules/skottie:__pkg__",
69        "//tools:__subpackages__",
70    ],
71    deps = [
72        "//:core",
73        "//src/base",
74        "//src/core:core_priv",
75    ],
76)
77