• 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("systrace_line") {
18  sources = [ "systrace_line.h" ]
19  deps = [
20    "../../../../gn:default_deps",
21    "../../containers",
22  ]
23}
24
25source_set("systrace_parser") {
26  sources = [
27    "systrace_parser.cc",
28    "systrace_parser.h",
29  ]
30  deps = [
31    "../../../../gn:default_deps",
32    "../../containers",
33    "../../storage",
34    "../../types",
35    "../common",
36  ]
37}
38
39source_set("full") {
40  sources = [
41    "systrace_line_parser.cc",
42    "systrace_line_parser.h",
43    "systrace_line_tokenizer.cc",
44    "systrace_line_tokenizer.h",
45    "systrace_trace_parser.cc",
46    "systrace_trace_parser.h",
47  ]
48  deps = [
49    ":systrace_line",
50    ":systrace_parser",
51    "../..:storage_minimal",
52    "../../../../gn:default_deps",
53    "../../containers",
54    "../../sorter",
55    "../../storage",
56    "../../types",
57    "../common",
58    "../ftrace:full",
59  ]
60}
61
62perfetto_unittest_source_set("unittests") {
63  testonly = true
64  sources = [ "systrace_parser_unittest.cc" ]
65  deps = [
66    ":full",
67    ":systrace_line",
68    ":systrace_parser",
69    "../../../../gn:default_deps",
70    "../../../../gn:gtest_and_gmock",
71  ]
72}
73