1load("//bazel:skia_rules.bzl", "skia_cc_library", "skia_filegroup") 2 3package( 4 default_applicable_licenses = ["//:license"], 5) 6 7licenses(["notice"]) 8 9exports_files([ 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 ], 36 visibility = [ 37 # See png_codec.bzl 38 "//gm:__pkg__", 39 ], 40) 41 42skia_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. 66skia_filegroup( 67 name = "common_flags_config", 68 testonly = True, 69 srcs = [ 70 "CommonFlagsConfig.cpp", 71 "CommonFlagsConfig.h", 72 ], 73 visibility = [ 74 "//dm:__pkg__", 75 ], 76) 77 78skia_cc_library( 79 name = "cmd_flags", 80 testonly = True, 81 srcs = [ 82 "CommandLineFlags.cpp", 83 ], 84 hdrs = [ 85 "CommandLineFlags.h", 86 ], 87 visibility = [ 88 "//bench:__pkg__", 89 "//modules/skottie:__pkg__", 90 "//tools:__subpackages__", 91 ], 92 deps = [ 93 "//:core", 94 "//src/base", 95 "//src/core:core_priv", 96 ], 97) 98 99skia_cc_library( 100 name = "ganesh_flags", 101 testonly = True, 102 srcs = [ 103 "CommonFlagsGanesh.cpp", 104 ], 105 hdrs = [ 106 "CommonFlagsGanesh.h", 107 ], 108 visibility = [ 109 "//bench:__pkg__", 110 "//dm:__pkg__", 111 "//tools/skpbench:__pkg__", 112 "//tools/viewer:__pkg__", 113 ], 114 deps = [ 115 ":cmd_flags", 116 "//:core", 117 "//src/gpu/ganesh:ganesh_TEST_UTIL", 118 ], 119) 120 121skia_cc_library( 122 name = "graphite_flags", 123 testonly = True, 124 srcs = [ 125 "CommonFlagsGraphite.cpp", 126 ], 127 hdrs = [ 128 "CommonFlagsGraphite.h", 129 ], 130 visibility = [ 131 "//bench:__pkg__", 132 "//dm:__pkg__", 133 "//tools/viewer:__pkg__", 134 ], 135 deps = [ 136 ":cmd_flags", 137 "//:core", 138 "//src/gpu/graphite:graphite_TEST_UTIL", 139 "//tools/graphite:graphite_utils", 140 ], 141) 142