Debian Codegraph @

tools/flags/BUILD.bazel

raw
1 load("//bazel:skia_rules.bzl", "skia_cc_library", "skia_filegroup")
2
3 package(
4 default_applicable_licenses = ["//:license"],
5 )
6
7 licenses(["notice"])
8
9 exports_files([
10 "CommandLineFlags.cpp",
11 "CommandLineFlags.h",
12 ])
13
14 skia_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
29 skia_filegroup(
30 name = "common_flags_legacy",
31 testonly = True,
32 srcs = [
33 "CommonFlags.h",
34 "CommonFlagsImages.cpp",
35 ],
36 visibility = [
37 # See png_codec.bzl
38 "//gm:__pkg__",
39 ],
40 )
41
42 skia_cc_library(
43 name = "common_flags",
44 testonly = True,
45 srcs = [
46 "CommonFlagsImages.cpp",
47 ],
48 hdrs = [
49 "CommonFlags.h",
50 ],
51 visibility = [
52 "//bench:__pkg__",
53 "//dm:__pkg__",
54 "//tools/skpbench:__pkg__",
55 "//tools/viewer:__pkg__",
56 ],
57 deps = [
58 ":cmd_flags",
59 "//:core",
60 "//src/gpu/ganesh:ganesh_TEST_UTIL",
61 ],
62 )
63
64 # This is a filegroup because CommonFlagsConfig.cpp mixes functionality from all backends,
65 # and is difficult to untangle in a reasonable manner.
66 skia_filegroup(
67 name = "common_flags_config",
68 testonly = True,
69 srcs = [
70 "CommonFlagsConfig.cpp",
71 "CommonFlagsConfig.h",
72 ],
73 visibility = [
74 "//dm:__pkg__",
75 "//tools/viewer:__pkg__",
76 ],
77 )
78
79 skia_cc_library(
80 name = "cmd_flags",
81 testonly = True,
82 srcs = [
83 "CommandLineFlags.cpp",
84 ],
85 hdrs = [
86 "CommandLineFlags.h",
87 ],
88 visibility = [
89 "//bench:__pkg__",
90 "//modules/skottie:__pkg__",
91 "//tools:__subpackages__",
92 ],
93 deps = [
94 "//:core",
95 "//src/base",
96 "//src/core:core_priv",
97 ],
98 )
99
100 skia_cc_library(
101 name = "ganesh_flags",
102 testonly = True,
103 srcs = [
104 "CommonFlagsGanesh.cpp",
105 ],
106 hdrs = [
107 "CommonFlagsGanesh.h",
108 ],
109 visibility = [
110 "//bench:__pkg__",
111 "//dm:__pkg__",
112 "//tools/skpbench:__pkg__",
113 "//tools/viewer:__pkg__",
114 ],
115 deps = [
116 ":cmd_flags",
117 "//:core",
118 "//src/gpu/ganesh:ganesh_TEST_UTIL",
119 ],
120 )
121
122 skia_cc_library(
123 name = "graphite_flags",
124 testonly = True,
125 srcs = [
126 "CommonFlagsGraphite.cpp",
127 ],
128 hdrs = [
129 "CommonFlagsGraphite.h",
130 ],
131 visibility = [
132 "//bench:__pkg__",
133 "//dm:__pkg__",
134 "//tools/viewer:__pkg__",
135 ],
136 deps = [
137 ":cmd_flags",
138 "//:core",
139 "//src/gpu/graphite:graphite_TEST_UTIL",
140 "//tools/graphite:graphite_utils",
141 ],
142 )