Lalit Maganti | ccdcbae | 2020-04-15 14:31:40 +0100 | [diff] [blame] | 1 | # Copyright (C) 2020 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") |
Lalit Maganti | 2939c08 | 2021-03-11 17:25:44 +0000 | [diff] [blame^] | 16 | import("../../../gn/perfetto_cc_proto_descriptor.gni") |
Lalit Maganti | ccdcbae | 2020-04-15 14:31:40 +0100 | [diff] [blame] | 17 | |
| 18 | source_set("common") { |
| 19 | sources = [ |
| 20 | "common/args_tracker.cc", |
| 21 | "common/args_tracker.h", |
| 22 | "common/clock_tracker.cc", |
| 23 | "common/clock_tracker.h", |
| 24 | "common/event_tracker.cc", |
| 25 | "common/event_tracker.h", |
AndrewB330 | c879ea4 | 2020-07-29 14:12:39 +0300 | [diff] [blame] | 26 | "common/flow_tracker.cc", |
| 27 | "common/flow_tracker.h", |
Lalit Maganti | ccdcbae | 2020-04-15 14:31:40 +0100 | [diff] [blame] | 28 | "common/global_args_tracker.cc", |
| 29 | "common/global_args_tracker.h", |
| 30 | "common/process_tracker.cc", |
| 31 | "common/process_tracker.h", |
| 32 | "common/slice_tracker.cc", |
| 33 | "common/slice_tracker.h", |
Isabelle Taylor | e908fe8 | 2020-06-01 01:52:17 +0100 | [diff] [blame] | 34 | "common/system_info_tracker.cc", |
| 35 | "common/system_info_tracker.h", |
Lalit Maganti | ccdcbae | 2020-04-15 14:31:40 +0100 | [diff] [blame] | 36 | "common/track_tracker.cc", |
| 37 | "common/track_tracker.h", |
| 38 | ] |
Hector Dearman | a1d7524 | 2020-10-02 09:47:24 +0100 | [diff] [blame] | 39 | public_deps = [ |
| 40 | ":gen_cc_config_descriptor", |
| 41 | "../util:protozero_to_text", |
| 42 | ] |
Lalit Maganti | ccdcbae | 2020-04-15 14:31:40 +0100 | [diff] [blame] | 43 | deps = [ |
| 44 | "../../../gn:default_deps", |
Eric Seckler | dc45452 | 2020-05-20 19:40:23 +0100 | [diff] [blame] | 45 | "../../../protos/perfetto/common:zero", |
Lalit Maganti | ccdcbae | 2020-04-15 14:31:40 +0100 | [diff] [blame] | 46 | "../../../protos/perfetto/trace:zero", |
| 47 | "../../../protos/perfetto/trace/profiling:zero", |
| 48 | "../../base", |
| 49 | "../storage", |
| 50 | "../types", |
| 51 | ] |
| 52 | } |
| 53 | |
| 54 | source_set("unittests") { |
| 55 | sources = [ |
| 56 | "common/clock_tracker_unittest.cc", |
| 57 | "common/event_tracker_unittest.cc", |
AndrewB330 | c879ea4 | 2020-07-29 14:12:39 +0300 | [diff] [blame] | 58 | "common/flow_tracker_unittest.cc", |
Lalit Maganti | ccdcbae | 2020-04-15 14:31:40 +0100 | [diff] [blame] | 59 | "common/process_tracker_unittest.cc", |
| 60 | "common/slice_tracker_unittest.cc", |
| 61 | ] |
| 62 | testonly = true |
| 63 | deps = [ |
| 64 | ":common", |
| 65 | "../../../gn:default_deps", |
| 66 | "../../../gn:gtest_and_gmock", |
Eric Seckler | dc45452 | 2020-05-20 19:40:23 +0100 | [diff] [blame] | 67 | "../../../protos/perfetto/common:zero", |
Lalit Maganti | ccdcbae | 2020-04-15 14:31:40 +0100 | [diff] [blame] | 68 | "../../../protos/perfetto/trace:zero", |
| 69 | "../../base", |
| 70 | "../storage", |
| 71 | "../types", |
| 72 | ] |
| 73 | } |
Hector Dearman | a1d7524 | 2020-10-02 09:47:24 +0100 | [diff] [blame] | 74 | |
Lalit Maganti | 2939c08 | 2021-03-11 17:25:44 +0000 | [diff] [blame^] | 75 | perfetto_cc_proto_descriptor("gen_cc_config_descriptor") { |
| 76 | descriptor_name = "config.descriptor" |
ssid | 5d209cf | 2020-10-06 17:58:53 -0700 | [diff] [blame] | 77 | descriptor_target = "../../../protos/perfetto/config:descriptor" |
Hector Dearman | a1d7524 | 2020-10-02 09:47:24 +0100 | [diff] [blame] | 78 | } |
Andrew Shulaev | ba0a5d1 | 2021-01-07 08:44:50 +0000 | [diff] [blame] | 79 | |
Lalit Maganti | 2939c08 | 2021-03-11 17:25:44 +0000 | [diff] [blame^] | 80 | perfetto_cc_proto_descriptor("gen_cc_chrome_track_event_descriptor") { |
| 81 | descriptor_name = "chrome_track_event.descriptor" |
Andrew Shulaev | ba0a5d1 | 2021-01-07 08:44:50 +0000 | [diff] [blame] | 82 | descriptor_target = |
| 83 | "../../../protos/third_party/chromium:chrome_track_event_descriptor" |
Andrew Shulaev | ba0a5d1 | 2021-01-07 08:44:50 +0000 | [diff] [blame] | 84 | } |
Andrew Shulaev | e72d1a3 | 2021-01-13 12:59:55 +0000 | [diff] [blame] | 85 | |
Lalit Maganti | 2939c08 | 2021-03-11 17:25:44 +0000 | [diff] [blame^] | 86 | perfetto_cc_proto_descriptor("gen_cc_track_event_descriptor") { |
| 87 | descriptor_name = "track_event.descriptor" |
Andrew Shulaev | e72d1a3 | 2021-01-13 12:59:55 +0000 | [diff] [blame] | 88 | descriptor_target = |
| 89 | "../../../protos/perfetto/trace/track_event:track_event_descriptor" |
Andrew Shulaev | e72d1a3 | 2021-01-13 12:59:55 +0000 | [diff] [blame] | 90 | } |