blob: 962db7b621d7dda7f849e0b24aa4537f4cdab123 [file] [log] [blame]
Primiano Tucciae2879e2017-09-27 11:02:09 +09001# 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 Eftevaagdd727e42017-12-05 08:49:55 -080015import("gn/perfetto.gni")
16
Primiano Tucciae2879e2017-09-27 11:02:09 +090017group("all") {
18 testonly = true # allow to build also test targets
19 deps = [
Primiano Tuccib03ba362017-12-06 09:47:41 +000020 ":perfetto_tests",
Primiano Tucci4f9b6d72017-12-05 20:59:16 +000021 "src/ftrace_reader:ftrace_reader_demo",
22 "src/ipc/protoc_plugin:ipc_plugin($host_toolchain)",
23 "src/protozero/protoc_plugin($host_toolchain)",
Oystein Eftevaagdd727e42017-12-05 08:49:55 -080024 "tools/ftrace_proto_gen:ftrace_proto_gen",
Primiano Tucci5fec9212017-12-11 23:08:40 +000025 "tools/proto_to_cpp",
Primiano Tucciae2879e2017-09-27 11:02:09 +090026 ]
Primiano Tuccib03ba362017-12-06 09:47:41 +000027 if (!build_with_chromium) {
28 deps += [
29 ":perfetto_benchmarks",
30 "src/ftrace_reader:ftrace_reader_integrationtests",
31 ]
32 }
Primiano Tucciae2879e2017-09-27 11:02:09 +090033}
34
Primiano Tuccib03ba362017-12-06 09:47:41 +000035executable("perfetto_tests") {
Primiano Tucciae2879e2017-09-27 11:02:09 +090036 testonly = true
37 deps = [
Primiano Tuccib03ba362017-12-06 09:47:41 +000038 "gn:default_deps",
39 "src/base:base_unittests",
Primiano Tucci4f9b6d72017-12-05 20:59:16 +000040 "src/ftrace_reader:ftrace_reader_unittests",
41 "src/ipc:perfetto_ipc_unittests",
42 "src/protozero:protozero_unittests",
43 "src/tracing:tracing_unittests",
Oystein Eftevaagdd727e42017-12-05 08:49:55 -080044 "tools/sanitizers_unittests",
Primiano Tucciae2879e2017-09-27 11:02:09 +090045 ]
Primiano Tuccib03ba362017-12-06 09:47:41 +000046}
Oystein Eftevaagdd727e42017-12-05 08:49:55 -080047
Primiano Tuccib03ba362017-12-06 09:47:41 +000048if (!build_with_chromium) {
49 executable("perfetto_benchmarks") {
50 testonly = true
51 deps = [
52 "gn:default_deps",
53 "src/tracing:tracing_benchmarks",
54 ]
Oystein Eftevaagdd727e42017-12-05 08:49:55 -080055 }
Primiano Tucciae2879e2017-09-27 11:02:09 +090056}