Lalit Maganti | 1534bb7 | 2021-04-23 14:11:26 +0100 | [diff] [blame] | 1 | # Copyright (C) 2021 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 | |
| 15 | import("../../../../gn/perfetto.gni") |
| 16 | |
| 17 | source_set("common") { |
| 18 | sources = [ |
| 19 | "args_tracker.cc", |
| 20 | "args_tracker.h", |
| 21 | "chunked_trace_reader.h", |
| 22 | "clock_tracker.cc", |
| 23 | "clock_tracker.h", |
| 24 | "event_tracker.cc", |
| 25 | "event_tracker.h", |
| 26 | "flow_tracker.cc", |
| 27 | "flow_tracker.h", |
| 28 | "global_args_tracker.cc", |
| 29 | "global_args_tracker.h", |
| 30 | "process_tracker.cc", |
| 31 | "process_tracker.h", |
| 32 | "slice_tracker.cc", |
| 33 | "slice_tracker.h", |
| 34 | "system_info_tracker.cc", |
| 35 | "system_info_tracker.h", |
Lalit Maganti | d1a7b03 | 2021-04-23 14:46:57 +0100 | [diff] [blame] | 36 | "trace_parser.h", |
Lalit Maganti | 1534bb7 | 2021-04-23 14:11:26 +0100 | [diff] [blame] | 37 | "track_tracker.cc", |
| 38 | "track_tracker.h", |
| 39 | ] |
| 40 | public_deps = [ |
| 41 | "../:gen_cc_config_descriptor", |
| 42 | "../../util:protozero_to_text", |
| 43 | ] |
| 44 | deps = [ |
| 45 | "../../../../gn:default_deps", |
| 46 | "../../../../include/perfetto/trace_processor:basic_types", |
| 47 | "../../../../protos/perfetto/common:zero", |
| 48 | "../../../../protos/perfetto/trace:zero", |
| 49 | "../../../../protos/perfetto/trace/profiling:zero", |
| 50 | "../../../base", |
| 51 | "../../storage", |
| 52 | "../../types", |
| 53 | ] |
| 54 | } |
| 55 | |
| 56 | source_set("unittests") { |
| 57 | sources = [ |
| 58 | "clock_tracker_unittest.cc", |
| 59 | "event_tracker_unittest.cc", |
| 60 | "flow_tracker_unittest.cc", |
| 61 | "process_tracker_unittest.cc", |
| 62 | "slice_tracker_unittest.cc", |
| 63 | ] |
| 64 | testonly = true |
| 65 | deps = [ |
| 66 | ":common", |
| 67 | "../../../../gn:default_deps", |
| 68 | "../../../../gn:gtest_and_gmock", |
| 69 | "../../../../protos/perfetto/common:zero", |
| 70 | "../../../../protos/perfetto/trace:zero", |
| 71 | "../../../base", |
| 72 | "../../storage", |
| 73 | "../../types", |
| 74 | ] |
| 75 | } |