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") |
| 16 | |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 17 | group("all") { |
| 18 | testonly = true # allow to build also test targets |
| 19 | deps = [ |
| 20 | ":tests", |
Oystein Eftevaag | dd727e4 | 2017-12-05 08:49:55 -0800 | [diff] [blame^] | 21 | "ftrace_reader:ftrace_reader_demo", |
| 22 | "ipc/src/protoc_plugin:ipc_plugin($host_toolchain)", |
| 23 | "protozero/src/protoc_plugin($host_toolchain)", |
| 24 | "tools/ftrace_proto_gen:ftrace_proto_gen", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 25 | ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | group("tests") { |
| 29 | testonly = true |
| 30 | deps = [ |
Oystein Eftevaag | dd727e4 | 2017-12-05 08:49:55 -0800 | [diff] [blame^] | 31 | "ftrace_reader:ftrace_reader_integrationtests", |
| 32 | "ftrace_reader:ftrace_reader_unittests", |
| 33 | "ipc:ipc_unittests", |
| 34 | "perfetto_base:perfetto_base_unittests", |
| 35 | "protozero:protozero_unittests", |
| 36 | "tools/sanitizers_unittests", |
| 37 | "tracing:tracing_unittests", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 38 | ] |
Oystein Eftevaag | dd727e4 | 2017-12-05 08:49:55 -0800 | [diff] [blame^] | 39 | |
| 40 | if (!build_with_chromium) { |
| 41 | deps += [ "tracing:tracing_benchmarks" ] |
| 42 | } |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 43 | } |