xref: /aosp_15_r20/external/perfetto/test/cts/BUILD.gn (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1# Copyright (C) 2018 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
15import("../../gn/perfetto.gni")
16
17assert(is_android)
18
19static_library("perfetto_cts_deps") {
20  complete_static_lib = true
21  testonly = true
22  deps = [
23    "../..:libperfetto_client_experimental",
24    "../../gn:default_deps",
25    "../../gn:gtest_and_gmock",
26    "../../include/perfetto/ext/tracing/core",
27    "../../protos/perfetto/config:cpp",
28    "../../protos/perfetto/config/process_stats:cpp",
29    "../../protos/perfetto/config/profiling:cpp",
30    "../../protos/perfetto/trace:cpp",
31    "../../protos/perfetto/trace/profiling:cpp",
32    "../../src/base:test_support",
33    "../../src/protozero/filtering:bytecode_generator",
34    "../../test:test_helper",
35  ]
36  sources = [
37    "device_feature_test_cts.cc",
38    "heapprofd_java_test_cts.cc",
39    "heapprofd_test_cts.cc",
40    "producer_to_consumer_integrationtest_cts.cc",
41    "traced_perf_test_cts.cc",
42  ]
43}
44
45static_library("perfetto_cts_jni_deps") {
46  complete_static_lib = true
47  testonly = true
48  deps = [
49    "..:test_helper",
50    "../../gn:default_deps",
51    "../../src/base:test_support",
52  ]
53}
54