• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 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/test.gni")
16
17source_set("minimal") {
18  sources = [ "fuchsia_trace_utils.h" ]
19  deps = [
20    ":fuchsia_record",
21    "../../../../gn:default_deps",
22    "../../../../include/perfetto/trace_processor:storage",
23    "../../../base",
24    "../../storage",
25  ]
26}
27
28source_set("full") {
29  sources = [
30    "fuchsia_trace_parser.cc",
31    "fuchsia_trace_parser.h",
32    "fuchsia_trace_tokenizer.cc",
33    "fuchsia_trace_tokenizer.h",
34    "fuchsia_trace_utils.cc",
35  ]
36  deps = [
37    ":fuchsia_record",
38    ":minimal",
39    "../../../../gn:default_deps",
40    "../../sorter",
41    "../../storage",
42    "../../types",
43    "../common",
44    "../proto:minimal",
45  ]
46}
47
48source_set("fuchsia_record") {
49  sources = [
50    "fuchsia_record.cc",
51    "fuchsia_record.h",
52  ]
53  deps = [
54    "../../../../gn:default_deps",
55    "../../../../include/perfetto/trace_processor:storage",
56    "../../containers",
57  ]
58}
59
60perfetto_unittest_source_set("unittests") {
61  testonly = true
62  sources = [
63    "fuchsia_parser_unittest.cc",
64    "fuchsia_trace_utils_unittest.cc",
65  ]
66  deps = [
67    ":full",
68    ":minimal",
69    "../../../../gn:default_deps",
70    "../../../../gn:gtest_and_gmock",
71    "../../../../protos/perfetto/common:zero",
72    "../../../../protos/perfetto/config:zero",
73    "../../../../protos/perfetto/trace:zero",
74    "../../../../protos/perfetto/trace/android:zero",
75    "../../../../protos/perfetto/trace/chrome:zero",
76    "../../../../protos/perfetto/trace/ftrace:zero",
77    "../../../../protos/perfetto/trace/interned_data:zero",
78    "../../../../protos/perfetto/trace/profiling:zero",
79    "../../../../protos/perfetto/trace/ps:zero",
80    "../../../../protos/perfetto/trace/sys_stats:zero",
81    "../../../../protos/perfetto/trace/track_event:zero",
82    "../../../protozero",
83    "../../sorter",
84    "../../storage",
85    "../../util:descriptors",
86    "../common",
87    "../ftrace:full",
88    "../proto:full",
89    "../proto:minimal",
90  ]
91}
92