Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 1 | # Copyright (C) 2017 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Oystein Eftevaag | dd727e4 | 2017-12-05 08:49:55 -0800 | [diff] [blame] | 15 | import("gn/perfetto.gni") |
Eric Seckler | a6ba179 | 2019-01-02 12:51:00 +0000 | [diff] [blame] | 16 | import("gn/test.gni") |
Primiano Tucci | 4c5efa4 | 2018-10-23 13:15:13 +0100 | [diff] [blame] | 17 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 18 | # +----------------------------------------------------------------------------+ |
| 19 | # | "all" targets definition: defines targets reachable by the various configs | |
| 20 | # +----------------------------------------------------------------------------+ |
| 21 | # There is a subtletly here related with chromium and other GN embedders. |
| 22 | # When adding a dependency some_dir/:target_name, some_dir/BUILD.gn is |
| 23 | # "discovered". As a side effect any *other* target defined in some_dir/BUILD.gn |
| 24 | # (and its transitive dependencies) becomes implicitly part of the "default" |
| 25 | # target, the one invoked running ninja -C out/xxx without further args. |
| 26 | # Because of this, care must be taken to wrap dependencies to targets in other |
| 27 | # build files with if (enable_xxx) flags. Accidentally including a harmless |
| 28 | # target that happens to be defined in the same BUILD.gn that contains targets |
| 29 | # incompatible with the chromium build will cause build/roll failures. |
| 30 | |
| 31 | all_targets = [ "protos/perfetto/trace:perfetto_trace_protos" ] |
| 32 | |
| 33 | if (enable_perfetto_platform_services) { |
| 34 | all_targets += [ |
| 35 | "src/perfetto_cmd:perfetto", |
| 36 | "src/perfetto_cmd:trigger_perfetto", |
| 37 | "src/traced/service:traced", |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 38 | ] |
Primiano Tucci | a7f5a8e | 2021-01-02 17:10:50 +0100 | [diff] [blame] | 39 | if (enable_perfetto_traced_probes) { |
| 40 | all_targets += [ "src/traced/probes:traced_probes" ] |
| 41 | } |
Primiano Tucci | a195971 | 2018-05-17 11:01:56 +0100 | [diff] [blame] | 42 | } |
| 43 | |
Mikhail Khokhlov | 0f7e68d | 2020-01-16 15:39:27 +0000 | [diff] [blame] | 44 | if (enable_perfetto_trace_processor && enable_perfetto_trace_processor_sqlite) { |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 45 | all_targets += [ "src/trace_processor:trace_processor_shell" ] |
Primiano Tucci | f3837d5 | 2018-01-10 21:12:41 +0000 | [diff] [blame] | 46 | } |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 47 | |
| 48 | if (enable_perfetto_heapprofd) { |
Florian Mayer | ddc8ae2 | 2021-02-18 17:20:09 +0000 | [diff] [blame] | 49 | all_targets += [ "src/profiling/memory:heapprofd" ] |
| 50 | |
| 51 | if (is_linux && !is_android) { |
| 52 | all_targets += [ "src/profiling/memory:heapprofd_glibc_preload" ] |
| 53 | } |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 54 | if (perfetto_build_with_android) { |
Florian Mayer | 23f7937 | 2020-06-16 14:37:06 +0200 | [diff] [blame] | 55 | all_targets += [ |
| 56 | "src/profiling/memory:heapprofd_client", |
| 57 | "src/profiling/memory:heapprofd_client_api", |
| 58 | ] |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 59 | } |
| 60 | } |
| 61 | |
Ryan Savitski | a76b3cc | 2019-11-20 16:25:24 +0000 | [diff] [blame] | 62 | if (enable_perfetto_traced_perf) { |
| 63 | all_targets += [ "src/profiling/perf:traced_perf" ] |
| 64 | } |
| 65 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 66 | if (perfetto_build_with_android) { |
Primiano Tucci | 94ca9a9 | 2021-01-14 11:16:15 +0100 | [diff] [blame] | 67 | all_targets += [ "src/android_internal:libperfetto_android_internal" ] |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | if (enable_perfetto_tools) { |
| 71 | all_targets += [ "tools" ] |
| 72 | } |
| 73 | |
| 74 | if (enable_perfetto_unittests) { |
| 75 | import("gn/perfetto_unittests.gni") |
| 76 | test("perfetto_unittests") { |
| 77 | deps = perfetto_unittests_targets |
| 78 | } |
| 79 | all_targets += [ ":perfetto_unittests" ] |
| 80 | } |
| 81 | |
| 82 | if (enable_perfetto_integration_tests) { |
| 83 | import("gn/perfetto_integrationtests.gni") |
| 84 | test("perfetto_integrationtests") { |
| 85 | deps = perfetto_integrationtests_targets |
| 86 | } |
| 87 | all_targets += [ |
| 88 | ":perfetto_integrationtests", |
| 89 | "test:client_api_example", |
Primiano Tucci | ff68cac | 2020-08-06 18:13:17 +0200 | [diff] [blame] | 90 | "test/stress_test", |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 91 | ] |
| 92 | } |
| 93 | |
Mikhail Khokhlov | 90f09f6 | 2019-12-17 12:53:51 +0000 | [diff] [blame] | 94 | if (enable_perfetto_trace_processor_json) { |
Stephen Nusko | aca7748 | 2020-01-10 15:47:06 +0000 | [diff] [blame] | 95 | test("trace_processor_minimal_smoke_tests") { |
Mikhail Khokhlov | 90f09f6 | 2019-12-17 12:53:51 +0000 | [diff] [blame] | 96 | testonly = true |
| 97 | deps = [ |
| 98 | "gn:default_deps", |
| 99 | "src/trace_processor:storage_minimal_smoke_tests", |
| 100 | ] |
| 101 | } |
| 102 | all_targets += [ ":trace_processor_minimal_smoke_tests" ] |
| 103 | } |
| 104 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 105 | if (enable_perfetto_benchmarks) { |
| 106 | import("gn/perfetto_benchmarks.gni") |
| 107 | executable("perfetto_benchmarks") { |
| 108 | testonly = true |
| 109 | deps = perfetto_benchmarks_targets |
| 110 | } |
| 111 | all_targets += [ ":perfetto_benchmarks" ] |
| 112 | } |
| 113 | |
| 114 | if (enable_perfetto_fuzzers) { |
| 115 | import("gn/perfetto_fuzzers.gni") |
| 116 | group("fuzzers") { |
| 117 | testonly = true |
| 118 | deps = perfetto_fuzzers_targets |
| 119 | } |
| 120 | all_targets += [ ":fuzzers" ] |
| 121 | } |
| 122 | |
| 123 | # Less interesting stuff that makes sense only in the standalone build, mainly |
| 124 | # compile-time checks for the CI. |
| 125 | if (perfetto_build_standalone) { |
| 126 | all_targets += [ |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 127 | "test/configs", |
| 128 | |
| 129 | # For syntax-checking the proto. |
| 130 | "protos/perfetto/config:merged_config", |
| 131 | "protos/perfetto/trace:merged_trace", # For syntax-checking the proto. |
| 132 | |
Primiano Tucci | 57dd66b | 2019-10-15 23:09:04 +0100 | [diff] [blame] | 133 | # For checking all generated xxx.gen.{cc,h} files without waiting for |
| 134 | # embedders to try to use them and fail. |
Primiano Tucci | 57dd66b | 2019-10-15 23:09:04 +0100 | [diff] [blame] | 135 | "protos/perfetto/config:cpp", |
| 136 | "protos/perfetto/common:cpp", |
| 137 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 138 | # Used in the when updating the ftrace protos |
| 139 | "protos/perfetto/trace/ftrace:descriptor", |
Primiano Tucci | 55b4d91 | 2020-01-28 11:17:51 +0000 | [diff] [blame] | 140 | |
| 141 | # Checks that the "fake" backend implementations build. |
| 142 | "src/tracing:client_api_no_backends_compile_test", |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 143 | ] |
Primiano Tucci | 42433ab | 2020-11-30 18:42:01 +0100 | [diff] [blame] | 144 | if (is_linux || is_android) { |
| 145 | all_targets += [ "src/tracing/consumer_api_deprecated:consumer_api_test" ] |
| 146 | } |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 147 | } |
Primiano Tucci | f3837d5 | 2018-01-10 21:12:41 +0000 | [diff] [blame] | 148 | |
Primiano Tucci | fbf4a73 | 2019-12-11 00:32:15 +0000 | [diff] [blame] | 149 | # The CTS code is built (but not ran) also in standalone builds. This is to |
| 150 | # catch refactoring breakages earlier without having to wait for treehugger. |
| 151 | if (is_android && (perfetto_build_standalone || perfetto_build_with_android)) { |
| 152 | all_targets += [ "test/cts:perfetto_cts_deps" ] |
| 153 | } |
| 154 | |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 155 | group("all") { |
| 156 | testonly = true # allow to build also test targets |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 157 | deps = all_targets |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 158 | } |
| 159 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 160 | # This target is used when running ninja without any argument (by default would |
| 161 | # build all reachable targets). This is mainly used to prevent the UI being |
| 162 | # built when running ninja -C out/xxx. |
| 163 | # This has effect only in standalone builds, no effect on chromium builds. |
| 164 | # Chromium's "all" target depends on our "all" target above. However chromium's |
| 165 | # "default" target depends on any target that we cause to be discovered by |
| 166 | # depending on other GN files. |
Primiano Tucci | 3faad74 | 2018-05-16 19:30:48 +0100 | [diff] [blame] | 167 | group("default") { |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 168 | testonly = true |
Primiano Tucci | 2925e9d | 2020-01-27 10:15:58 +0000 | [diff] [blame] | 169 | deps = [ ":all" ] |
Primiano Tucci | 3faad74 | 2018-05-16 19:30:48 +0100 | [diff] [blame] | 170 | } |
| 171 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 172 | # +----------------------------------------------------------------------------+ |
| 173 | # | Other definitions: root targets that don't belong to any other subdirectory| |
| 174 | # +----------------------------------------------------------------------------+ |
Primiano Tucci | 3faad74 | 2018-05-16 19:30:48 +0100 | [diff] [blame] | 175 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 176 | if (enable_perfetto_ui) { |
Mikhail Khokhlov | 8643d1c | 2019-06-04 12:02:47 +0100 | [diff] [blame] | 177 | group("ui") { |
Primiano Tucci | 2925e9d | 2020-01-27 10:15:58 +0000 | [diff] [blame] | 178 | deps = [ "ui" ] |
Mikhail Khokhlov | 8643d1c | 2019-06-04 12:02:47 +0100 | [diff] [blame] | 179 | } |
| 180 | } |
| 181 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 182 | # In Android builds, we build the code of traced and traced_probes in one shared |
| 183 | # library that exposes one xxx_main() for each. The executables themselves are |
| 184 | # tiny shells that just invoke their own entry point into the library. |
| 185 | # This is done merely for saving binary size, because the three binaries happen |
| 186 | # to share a lot of code. |
| 187 | # When setting monolithic_binaries=true (only supported in standalone builds) |
| 188 | # it builds more conventional executables, where each binary has the full |
| 189 | # implementation and no shared library dependency. This is to make dev cycles |
| 190 | # on Android faster, avoiding all the LD_LIBRARY_PATH boilerplate. |
| 191 | # libperfetto.so is also used for stuff that is exposed to the rest of the |
| 192 | # Android tree. |
| 193 | if (enable_perfetto_platform_services) { |
Primiano Tucci | f3837d5 | 2018-01-10 21:12:41 +0000 | [diff] [blame] | 194 | if (monolithic_binaries) { |
Primiano Tucci | 098f095 | 2019-09-03 10:21:20 +0100 | [diff] [blame] | 195 | libperfetto_target_type = "static_library" |
Primiano Tucci | f3837d5 | 2018-01-10 21:12:41 +0000 | [diff] [blame] | 196 | } else { |
Primiano Tucci | bdb2a59 | 2018-10-11 15:59:29 +0100 | [diff] [blame] | 197 | libperfetto_target_type = "shared_library" |
Primiano Tucci | f3837d5 | 2018-01-10 21:12:41 +0000 | [diff] [blame] | 198 | } |
| 199 | |
Primiano Tucci | bdb2a59 | 2018-10-11 15:59:29 +0100 | [diff] [blame] | 200 | target(libperfetto_target_type, "libperfetto") { |
Primiano Tucci | 098f095 | 2019-09-03 10:21:20 +0100 | [diff] [blame] | 201 | if (libperfetto_target_type == "static_library") { |
| 202 | complete_static_lib = true |
| 203 | } |
Primiano Tucci | 4e49c02 | 2017-12-21 18:22:44 +0100 | [diff] [blame] | 204 | deps = [ |
| 205 | "gn:default_deps", |
Primiano Tucci | 6067e73 | 2018-01-08 16:19:40 +0000 | [diff] [blame] | 206 | "src/traced/service", |
| 207 | ] |
Primiano Tucci | a7f5a8e | 2021-01-02 17:10:50 +0100 | [diff] [blame] | 208 | if (enable_perfetto_traced_probes) { |
| 209 | deps += [ "src/traced/probes" ] |
| 210 | } |
| 211 | if (is_linux || is_android || is_mac) { |
| 212 | # TODO(primiano): this is here only for Android's iorapd. At some point |
| 213 | # we need to migrate iorapd to the Perfetto SDK. |
| 214 | deps += [ "src/tracing/consumer_api_deprecated" ] |
| 215 | } |
Primiano Tucci | 6067e73 | 2018-01-08 16:19:40 +0000 | [diff] [blame] | 216 | } |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 217 | } |
Oystein Eftevaag | a812a94 | 2018-03-23 11:52:32 -0700 | [diff] [blame] | 218 | |
Primiano Tucci | 7e05fc1 | 2019-08-27 17:29:47 +0200 | [diff] [blame] | 219 | if (!build_with_chromium) { |
Primiano Tucci | 55b4d91 | 2020-01-28 11:17:51 +0000 | [diff] [blame] | 220 | # Client library target exposed to the Android tree. |
Primiano Tucci | 7e05fc1 | 2019-08-27 17:29:47 +0200 | [diff] [blame] | 221 | # Still in experimental stage and not API stable yet. |
| 222 | # See "libperfetto_client_example" (in Android.bp.extras) for an example |
| 223 | # on how to use the Perfetto Client API from the android tree. |
| 224 | static_library("libperfetto_client_experimental") { |
| 225 | complete_static_lib = true |
Primiano Tucci | fbf4a73 | 2019-12-11 00:32:15 +0000 | [diff] [blame] | 226 | public_deps = [ |
Primiano Tucci | 7e05fc1 | 2019-08-27 17:29:47 +0200 | [diff] [blame] | 227 | "gn:default_deps", |
Primiano Tucci | 3feec55 | 2020-02-04 11:14:42 +0000 | [diff] [blame] | 228 | "src/tracing:client_api", |
Primiano Tucci | 10c9e9e | 2021-01-08 13:04:40 +0100 | [diff] [blame] | 229 | "src/tracing:platform_impl", |
Primiano Tucci | 7e05fc1 | 2019-08-27 17:29:47 +0200 | [diff] [blame] | 230 | ] |
Primiano Tucci | 2925e9d | 2020-01-27 10:15:58 +0000 | [diff] [blame] | 231 | sources = [ "include/perfetto/tracing.h" ] |
Primiano Tucci | e8020f9 | 2019-11-26 13:24:01 +0000 | [diff] [blame] | 232 | assert_no_deps = [ "//gn:protobuf_lite" ] |
Primiano Tucci | 4c5efa4 | 2018-10-23 13:15:13 +0100 | [diff] [blame] | 233 | } |
Primiano Tucci | 7e05fc1 | 2019-08-27 17:29:47 +0200 | [diff] [blame] | 234 | } |
| 235 | |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 236 | # TODO(primiano): there seem to be two "libperfetto" and one |
| 237 | # "libperfetto_client_experimental" targets defined within this BUILD.gn file. |
| 238 | # Rationalize them with eseckler@. For now seems this one is only used from |
| 239 | # chromium and the other one only from the Android tree. |
Primiano Tucci | 7e05fc1 | 2019-08-27 17:29:47 +0200 | [diff] [blame] | 240 | if (build_with_chromium) { |
Eric Seckler | c77dc1b | 2020-01-21 13:23:35 +0000 | [diff] [blame] | 241 | component("libperfetto") { |
| 242 | public_configs = [ "gn:public_config" ] |
Oystein Eftevaag | 5e8a4eb | 2018-01-09 11:41:58 -0800 | [diff] [blame] | 243 | deps = [ |
Sylwester Blaszczyk | 0430ce8 | 2020-08-07 16:00:51 +0200 | [diff] [blame] | 244 | "src/trace_processor/importers/memory_tracker:graph_processor", |
Eric Seckler | 48d1ab5 | 2020-01-23 09:56:29 +0000 | [diff] [blame] | 245 | "src/tracing:client_api", |
Primiano Tucci | c4c063b | 2020-01-27 09:34:46 +0000 | [diff] [blame] | 246 | "src/tracing/core", |
Eric Seckler | 48d1ab5 | 2020-01-23 09:56:29 +0000 | [diff] [blame] | 247 | |
| 248 | # TODO(eseckler): Create a platform for chrome and hook it up somehow. |
| 249 | "src/tracing:platform_fake", |
Eric Seckler | c77dc1b | 2020-01-21 13:23:35 +0000 | [diff] [blame] | 250 | ] |
| 251 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 252 | configs += [ "//build/config/compiler:no_chromium_code" ] |
| 253 | public_deps = [ |
Sylwester Blaszczyk | 0430ce8 | 2020-08-07 16:00:51 +0200 | [diff] [blame] | 254 | "include/perfetto/ext/trace_processor/importers/memory_tracker", |
Primiano Tucci | 2c5488f | 2019-06-01 03:27:28 +0100 | [diff] [blame] | 255 | "include/perfetto/ext/tracing/core", |
Eric Seckler | 48d1ab5 | 2020-01-23 09:56:29 +0000 | [diff] [blame] | 256 | "include/perfetto/tracing", |
Nicolò Mazzucato | c108446 | 2019-09-24 16:26:06 +0100 | [diff] [blame] | 257 | "protos/perfetto/common:zero", |
Oystein Eftevaag | 6fcedac | 2018-07-02 12:02:55 -0700 | [diff] [blame] | 258 | "protos/perfetto/trace:zero", |
| 259 | "protos/perfetto/trace/chrome:zero", |
Eric Seckler | d3139b4 | 2019-02-26 13:43:59 +0000 | [diff] [blame] | 260 | "protos/perfetto/trace/interned_data:zero", |
Oystein Eftevaag | ae11620 | 2019-07-11 09:48:42 -0700 | [diff] [blame] | 261 | "protos/perfetto/trace/profiling:zero", |
Piotr Roguski | 1c96e67 | 2020-08-24 16:19:50 +0200 | [diff] [blame] | 262 | "protos/perfetto/trace/ps:zero", |
Eric Seckler | d3139b4 | 2019-02-26 13:43:59 +0000 | [diff] [blame] | 263 | "protos/perfetto/trace/track_event:zero", |
Oystein Eftevaag | a812a94 | 2018-03-23 11:52:32 -0700 | [diff] [blame] | 264 | ] |
Stephen Nusko | bfa6d63 | 2020-01-21 14:10:56 +0000 | [diff] [blame] | 265 | if (enable_perfetto_ipc) { |
Eric Seckler | 05355e0 | 2020-01-27 15:29:50 +0000 | [diff] [blame] | 266 | deps += [ |
| 267 | "src/tracing/ipc/producer", |
| 268 | "src/tracing/ipc/service", |
| 269 | ] |
Stephen Nusko | bfa6d63 | 2020-01-21 14:10:56 +0000 | [diff] [blame] | 270 | public_deps += [ "include/perfetto/ext/tracing/ipc:ipc" ] |
| 271 | } |
Eric Seckler | 60eff7d | 2020-05-20 13:03:07 +0100 | [diff] [blame] | 272 | if (!is_nacl && !is_ios) { |
| 273 | deps += [ |
| 274 | "src/trace_processor:export_json", |
| 275 | "src/trace_processor:storage_minimal", |
| 276 | ] |
| 277 | public_deps += [ |
| 278 | "include/perfetto/ext/trace_processor:export_json", |
| 279 | "include/perfetto/trace_processor:storage", |
| 280 | ] |
| 281 | } |
Oystein Eftevaag | 5e8a4eb | 2018-01-09 11:41:58 -0800 | [diff] [blame] | 282 | } |
Mikhail Khokhlov | 2bcfb35 | 2019-12-20 10:19:58 +0000 | [diff] [blame] | 283 | component("libtrace_processor") { |
| 284 | public_configs = [ "gn:public_config" ] |
Primiano Tucci | 2925e9d | 2020-01-27 10:15:58 +0000 | [diff] [blame] | 285 | deps = [ "src/trace_processor:lib" ] |
Mikhail Khokhlov | 2bcfb35 | 2019-12-20 10:19:58 +0000 | [diff] [blame] | 286 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 287 | configs += [ "//build/config/compiler:no_chromium_code" ] |
Primiano Tucci | 2925e9d | 2020-01-27 10:15:58 +0000 | [diff] [blame] | 288 | public_deps = [ "include/perfetto/trace_processor" ] |
Eric Seckler | a7870e6 | 2019-11-01 10:11:58 +0000 | [diff] [blame] | 289 | } |
Alexander Timin | dfc4b69 | 2021-02-15 13:32:53 +0000 | [diff] [blame] | 290 | component("perfetto_test_support") { |
| 291 | testonly = true |
| 292 | public_configs = [ "gn:public_config" ] |
| 293 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 294 | configs += [ "//build/config/compiler:no_chromium_code" ] |
| 295 | public_deps = [ "include/perfetto/test:test_support" ] |
| 296 | deps = [ "src/tracing/test:test_support" ] |
| 297 | } |
Oystein Eftevaag | a812a94 | 2018-03-23 11:52:32 -0700 | [diff] [blame] | 298 | } |