blob: 749b7afdf52ae20948bcbcb8109785625e4479c3 [file] [log] [blame]
Sami Kyostilab27619f2017-12-13 19:22:16 +00001// Copyright (C) 2017 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// This file is automatically generated by tools/gen_android_bp. Do not edit.
Sami Kyostila2357b032017-12-06 18:38:17 +000016
Florian Mayerb6a921f2018-10-18 18:55:23 +010017// GN target: //:heapprofd
18cc_binary {
19 name: "heapprofd",
20 srcs: [
Florian Mayer8e7eac42018-11-05 16:04:11 +000021 ":perfetto_protos_perfetto_common_lite_gen",
22 ":perfetto_protos_perfetto_common_zero_gen",
23 ":perfetto_protos_perfetto_config_lite_gen",
24 ":perfetto_protos_perfetto_config_zero_gen",
25 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +000026 ":perfetto_protos_perfetto_trace_android_zero_gen",
Florian Mayer8e7eac42018-11-05 16:04:11 +000027 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
28 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
29 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
30 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +010031 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +000032 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Florian Mayer8e7eac42018-11-05 16:04:11 +000033 ":perfetto_protos_perfetto_trace_ps_zero_gen",
34 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
35 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
36 ":perfetto_protos_perfetto_trace_zero_gen",
37 ":perfetto_src_ipc_wire_protocol_gen",
Florian Mayerb6a921f2018-10-18 18:55:23 +010038 "src/base/event.cc",
39 "src/base/file_utils.cc",
40 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +010041 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +010042 "src/base/pipe.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010043 "src/base/string_splitter.cc",
44 "src/base/string_utils.cc",
45 "src/base/temp_file.cc",
46 "src/base/thread_checker.cc",
47 "src/base/time.cc",
48 "src/base/unix_socket.cc",
49 "src/base/unix_task_runner.cc",
50 "src/base/virtual_destructors.cc",
51 "src/base/watchdog_posix.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +000052 "src/ipc/buffered_frame_deserializer.cc",
53 "src/ipc/client_impl.cc",
54 "src/ipc/deferred.cc",
55 "src/ipc/host_impl.cc",
56 "src/ipc/service_proxy.cc",
57 "src/ipc/virtual_destructors.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010058 "src/profiling/memory/bookkeeping.cc",
Florian Mayere9f46862018-11-07 20:20:37 +000059 "src/profiling/memory/heapprofd_producer.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010060 "src/profiling/memory/main.cc",
Florian Mayer745aaf22018-12-13 14:53:07 +000061 "src/profiling/memory/proc_utils.cc",
Florian Mayer895efd92018-12-04 19:21:22 +000062 "src/profiling/memory/process_matcher.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010063 "src/profiling/memory/record_reader.cc",
64 "src/profiling/memory/socket_listener.cc",
Florian Mayer78cb5622018-11-27 17:17:10 +000065 "src/profiling/memory/system_property.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010066 "src/profiling/memory/unwinding.cc",
67 "src/profiling/memory/wire_protocol.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +000068 "src/protozero/message.cc",
69 "src/protozero/message_handle.cc",
70 "src/protozero/proto_decoder.cc",
71 "src/protozero/proto_field_descriptor.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +000072 "src/protozero/scattered_stream_memory_delegate.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +000073 "src/protozero/scattered_stream_null_delegate.cc",
74 "src/protozero/scattered_stream_writer.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +000075 "src/tracing/core/android_log_config.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +010076 "src/tracing/core/android_power_config.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +000077 "src/tracing/core/chrome_config.cc",
78 "src/tracing/core/commit_data_request.cc",
79 "src/tracing/core/data_source_config.cc",
80 "src/tracing/core/data_source_descriptor.cc",
81 "src/tracing/core/ftrace_config.cc",
82 "src/tracing/core/heapprofd_config.cc",
83 "src/tracing/core/id_allocator.cc",
84 "src/tracing/core/inode_file_config.cc",
85 "src/tracing/core/null_trace_writer.cc",
86 "src/tracing/core/packet_stream_validator.cc",
87 "src/tracing/core/process_stats_config.cc",
88 "src/tracing/core/shared_memory_abi.cc",
89 "src/tracing/core/shared_memory_arbiter_impl.cc",
90 "src/tracing/core/sliced_protobuf_input_stream.cc",
91 "src/tracing/core/sys_stats_config.cc",
92 "src/tracing/core/test_config.cc",
93 "src/tracing/core/trace_buffer.cc",
94 "src/tracing/core/trace_config.cc",
95 "src/tracing/core/trace_packet.cc",
96 "src/tracing/core/trace_writer_impl.cc",
97 "src/tracing/core/tracing_service_impl.cc",
98 "src/tracing/core/virtual_destructors.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010099 ],
100 shared_libs: [
101 "libbase",
102 "liblog",
103 "libprocinfo",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000104 "libprotobuf-cpp-lite",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100105 "libunwindstack",
106 ],
Eric Seckler57c89d92018-10-26 15:11:55 +0100107 static_libs: [
108 "libgtest_prod",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000109 "perfetto_src_tracing_ipc",
Eric Seckler57c89d92018-10-26 15:11:55 +0100110 ],
Florian Mayer7a5d83b2018-10-18 18:57:02 +0100111 init_rc: [
112 "heapprofd.rc",
113 ],
Florian Mayer8e7eac42018-11-05 16:04:11 +0000114 generated_headers: [
115 "perfetto_protos_perfetto_common_lite_gen_headers",
116 "perfetto_protos_perfetto_common_zero_gen_headers",
117 "perfetto_protos_perfetto_config_lite_gen_headers",
118 "perfetto_protos_perfetto_config_zero_gen_headers",
119 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000120 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000121 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
122 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
123 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
124 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100125 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +0000126 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000127 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
128 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
129 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
130 "perfetto_protos_perfetto_trace_zero_gen_headers",
131 "perfetto_src_ipc_wire_protocol_gen_headers",
132 ],
Florian Mayerb6a921f2018-10-18 18:55:23 +0100133 defaults: [
134 "perfetto_defaults",
135 ],
Florian Mayer8e7eac42018-11-05 16:04:11 +0000136 cflags: [
137 "-DGOOGLE_PROTOBUF_NO_RTTI",
138 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
139 ],
Florian Mayerb6a921f2018-10-18 18:55:23 +0100140}
141
142// GN target: //:heapprofd_client
143cc_library_shared {
144 name: "heapprofd_client",
145 srcs: [
146 "src/base/event.cc",
147 "src/base/file_utils.cc",
148 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +0100149 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +0100150 "src/base/pipe.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100151 "src/base/string_splitter.cc",
152 "src/base/string_utils.cc",
153 "src/base/temp_file.cc",
154 "src/base/thread_checker.cc",
155 "src/base/time.cc",
156 "src/base/unix_socket.cc",
157 "src/base/unix_task_runner.cc",
158 "src/base/virtual_destructors.cc",
159 "src/base/watchdog_posix.cc",
160 "src/profiling/memory/client.cc",
161 "src/profiling/memory/malloc_hooks.cc",
162 "src/profiling/memory/sampler.cc",
163 "src/profiling/memory/wire_protocol.cc",
164 ],
165 shared_libs: [
166 "libbase",
167 "liblog",
168 "libprocinfo",
169 "libunwindstack",
170 ],
Eric Seckler57c89d92018-10-26 15:11:55 +0100171 static_libs: [
172 "libgtest_prod",
173 ],
Florian Mayerb6a921f2018-10-18 18:55:23 +0100174 defaults: [
175 "perfetto_defaults",
176 ],
177 include_dirs: [
178 "bionic/libc",
179 ],
180}
181
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100182// GN target: //:libperfetto
Primiano Tucci6067e732018-01-08 16:19:40 +0000183cc_library_shared {
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100184 name: "libperfetto",
Primiano Tucci6067e732018-01-08 16:19:40 +0000185 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100186 ":perfetto_protos_perfetto_common_lite_gen",
187 ":perfetto_protos_perfetto_common_zero_gen",
188 ":perfetto_protos_perfetto_config_lite_gen",
189 ":perfetto_protos_perfetto_config_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000190 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000191 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800192 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000193 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000194 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200195 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100196 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +0000197 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000198 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100199 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700200 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000201 ":perfetto_protos_perfetto_trace_zero_gen",
Primiano Tucci6067e732018-01-08 16:19:40 +0000202 ":perfetto_src_ipc_wire_protocol_gen",
Primiano Tucci9f7189c2018-10-05 00:42:12 +0100203 "src/base/event.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +0000204 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +0100205 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +0100206 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +0100207 "src/base/pipe.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +0000208 "src/base/string_splitter.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +0100209 "src/base/string_utils.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +0000210 "src/base/temp_file.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000211 "src/base/thread_checker.cc",
Florian Mayer75905df2018-05-08 17:44:08 +0100212 "src/base/time.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +0100213 "src/base/unix_socket.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000214 "src/base/unix_task_runner.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100215 "src/base/virtual_destructors.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +0100216 "src/base/watchdog_posix.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000217 "src/ipc/buffered_frame_deserializer.cc",
218 "src/ipc/client_impl.cc",
219 "src/ipc/deferred.cc",
220 "src/ipc/host_impl.cc",
221 "src/ipc/service_proxy.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100222 "src/ipc/virtual_destructors.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +0000223 "src/protozero/message.cc",
224 "src/protozero/message_handle.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +0100225 "src/protozero/proto_decoder.cc",
Primiano Tuccieb117352018-07-16 10:53:59 +0100226 "src/protozero/proto_field_descriptor.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +0000227 "src/protozero/scattered_stream_memory_delegate.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100228 "src/protozero/scattered_stream_null_delegate.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000229 "src/protozero/scattered_stream_writer.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000230 "src/traced/probes/android_log/android_log_data_source.cc",
Florian Mayer6f9c3422018-03-29 10:37:41 +0100231 "src/traced/probes/filesystem/file_scanner.cc",
Anna Zappone2a6f9042018-03-14 13:26:07 +0000232 "src/traced/probes/filesystem/fs_mount.cc",
233 "src/traced/probes/filesystem/inode_file_data_source.cc",
234 "src/traced/probes/filesystem/lru_inode_cache.cc",
Florian Mayerb21f4fb2018-03-22 15:24:56 +0000235 "src/traced/probes/filesystem/prefix_finder.cc",
236 "src/traced/probes/filesystem/range_tree.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200237 "src/traced/probes/ftrace/atrace_wrapper.cc",
238 "src/traced/probes/ftrace/cpu_reader.cc",
239 "src/traced/probes/ftrace/cpu_stats_parser.cc",
240 "src/traced/probes/ftrace/event_info.cc",
241 "src/traced/probes/ftrace/event_info_constants.cc",
242 "src/traced/probes/ftrace/format_parser.cc",
243 "src/traced/probes/ftrace/ftrace_config.cc",
244 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
245 "src/traced/probes/ftrace/ftrace_controller.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100246 "src/traced/probes/ftrace/ftrace_data_source.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +0100247 "src/traced/probes/ftrace/ftrace_metadata.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200248 "src/traced/probes/ftrace/ftrace_procfs.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100249 "src/traced/probes/ftrace/ftrace_stats.cc",
Primiano Tuccic20ee512018-11-29 16:40:55 +0000250 "src/traced/probes/ftrace/page_pool.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200251 "src/traced/probes/ftrace/proto_translation_table.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100252 "src/traced/probes/power/android_power_data_source.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000253 "src/traced/probes/probes.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100254 "src/traced/probes/probes_data_source.cc",
Isabelle Taylord404ea12018-02-19 17:28:01 +0000255 "src/traced/probes/probes_producer.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +0100256 "src/traced/probes/ps/process_stats_data_source.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100257 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000258 "src/traced/service/service.cc",
Primiano Tucci3cd31322018-10-11 20:06:56 +0100259 "src/tracing/api_impl/consumer_api.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000260 "src/tracing/core/android_log_config.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100261 "src/tracing/core/android_power_config.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800262 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +0000263 "src/tracing/core/commit_data_request.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000264 "src/tracing/core/data_source_config.cc",
265 "src/tracing/core/data_source_descriptor.cc",
Hector Dearmana89cc572018-02-23 12:02:58 +0000266 "src/tracing/core/ftrace_config.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000267 "src/tracing/core/heapprofd_config.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000268 "src/tracing/core/id_allocator.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +0100269 "src/tracing/core/inode_file_config.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100270 "src/tracing/core/null_trace_writer.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +0000271 "src/tracing/core/packet_stream_validator.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100272 "src/tracing/core/process_stats_config.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000273 "src/tracing/core/shared_memory_abi.cc",
Oystein Eftevaag6d0bc7f2018-01-13 12:21:55 -0800274 "src/tracing/core/shared_memory_arbiter_impl.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +0000275 "src/tracing/core/sliced_protobuf_input_stream.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100276 "src/tracing/core/sys_stats_config.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000277 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +0000278 "src/tracing/core/trace_buffer.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000279 "src/tracing/core/trace_config.cc",
280 "src/tracing/core/trace_packet.cc",
281 "src/tracing/core/trace_writer_impl.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +0100282 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100283 "src/tracing/core/virtual_destructors.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000284 ],
285 shared_libs: [
Primiano Tucci6d848532018-01-17 10:32:33 +0000286 "liblog",
287 "libprotobuf-cpp-lite",
288 ],
289 static_libs: [
290 "libgtest_prod",
291 "perfetto_src_tracing_ipc",
292 ],
293 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100294 "perfetto_protos_perfetto_common_lite_gen_headers",
295 "perfetto_protos_perfetto_common_zero_gen_headers",
296 "perfetto_protos_perfetto_config_lite_gen_headers",
297 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000298 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000299 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800300 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000301 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000302 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200303 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100304 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +0000305 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000306 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100307 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700308 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000309 "perfetto_protos_perfetto_trace_zero_gen_headers",
Primiano Tucci6d848532018-01-17 10:32:33 +0000310 "perfetto_src_ipc_wire_protocol_gen_headers",
311 ],
312 defaults: [
313 "perfetto_defaults",
314 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +0000315 cflags: [
316 "-DGOOGLE_PROTOBUF_NO_RTTI",
317 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
318 ],
Primiano Tucci6d848532018-01-17 10:32:33 +0000319}
320
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100321// GN target: //:libperfetto_android_internal
322cc_library_shared {
323 name: "libperfetto_android_internal",
324 srcs: [
325 "src/android_internal/health_hal.cc",
326 ],
327 shared_libs: [
328 "android.hardware.health@2.0",
329 "libbase",
330 "libhidlbase",
331 "libhidltransport",
332 "libhwbinder",
333 "liblog",
334 "libutils",
335 ],
336 defaults: [
337 "perfetto_defaults",
338 ],
339 static_libs: [
340 "libhealthhalutils",
341 ],
342}
343
Primiano Tucci6d848532018-01-17 10:32:33 +0000344// GN target: //:perfetto
345cc_binary {
346 name: "perfetto",
347 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100348 ":perfetto_protos_perfetto_common_lite_gen",
349 ":perfetto_protos_perfetto_common_zero_gen",
350 ":perfetto_protos_perfetto_config_lite_gen",
351 ":perfetto_protos_perfetto_config_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000352 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000353 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800354 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000355 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000356 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200357 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100358 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +0000359 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000360 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100361 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700362 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000363 ":perfetto_protos_perfetto_trace_zero_gen",
Primiano Tucci6d848532018-01-17 10:32:33 +0000364 ":perfetto_src_ipc_wire_protocol_gen",
Hector Dearman86cfbe12018-03-22 11:58:42 +0000365 ":perfetto_src_perfetto_cmd_protos_gen",
Primiano Tucci6d848532018-01-17 10:32:33 +0000366 "src/base/android_task_runner.cc",
Primiano Tucci9f7189c2018-10-05 00:42:12 +0100367 "src/base/event.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +0000368 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +0100369 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +0100370 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +0100371 "src/base/pipe.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +0000372 "src/base/string_splitter.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +0100373 "src/base/string_utils.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +0000374 "src/base/temp_file.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000375 "src/base/thread_checker.cc",
Florian Mayer75905df2018-05-08 17:44:08 +0100376 "src/base/time.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +0100377 "src/base/unix_socket.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000378 "src/base/unix_task_runner.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100379 "src/base/virtual_destructors.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +0100380 "src/base/watchdog_posix.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000381 "src/ipc/buffered_frame_deserializer.cc",
382 "src/ipc/client_impl.cc",
383 "src/ipc/deferred.cc",
384 "src/ipc/host_impl.cc",
385 "src/ipc/service_proxy.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100386 "src/ipc/virtual_destructors.cc",
Hector Dearman5edeafc2018-11-29 13:27:33 +0000387 "src/perfetto_cmd/config.cc",
Hector Dearmanc443a362018-02-28 16:03:56 +0000388 "src/perfetto_cmd/main.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +0000389 "src/perfetto_cmd/pbtxt_to_pb.cc",
Hector Dearmanc443a362018-02-28 16:03:56 +0000390 "src/perfetto_cmd/perfetto_cmd.cc",
Hector Dearman86cfbe12018-03-22 11:58:42 +0000391 "src/perfetto_cmd/rate_limiter.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +0000392 "src/protozero/message.cc",
393 "src/protozero/message_handle.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +0100394 "src/protozero/proto_decoder.cc",
Primiano Tuccieb117352018-07-16 10:53:59 +0100395 "src/protozero/proto_field_descriptor.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +0000396 "src/protozero/scattered_stream_memory_delegate.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100397 "src/protozero/scattered_stream_null_delegate.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000398 "src/protozero/scattered_stream_writer.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000399 "src/tracing/core/android_log_config.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100400 "src/tracing/core/android_power_config.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800401 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +0000402 "src/tracing/core/commit_data_request.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000403 "src/tracing/core/data_source_config.cc",
404 "src/tracing/core/data_source_descriptor.cc",
Hector Dearmana89cc572018-02-23 12:02:58 +0000405 "src/tracing/core/ftrace_config.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000406 "src/tracing/core/heapprofd_config.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000407 "src/tracing/core/id_allocator.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +0100408 "src/tracing/core/inode_file_config.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100409 "src/tracing/core/null_trace_writer.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +0000410 "src/tracing/core/packet_stream_validator.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100411 "src/tracing/core/process_stats_config.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000412 "src/tracing/core/shared_memory_abi.cc",
413 "src/tracing/core/shared_memory_arbiter_impl.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +0000414 "src/tracing/core/sliced_protobuf_input_stream.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100415 "src/tracing/core/sys_stats_config.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000416 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +0000417 "src/tracing/core/trace_buffer.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000418 "src/tracing/core/trace_config.cc",
419 "src/tracing/core/trace_packet.cc",
420 "src/tracing/core/trace_writer_impl.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +0100421 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100422 "src/tracing/core/virtual_destructors.cc",
Florian Mayer35ddfe22018-01-23 15:30:33 +0000423 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
Florian Mayerc29e0d32018-04-04 15:55:46 +0100424 "src/tracing/ipc/default_socket.cc",
Florian Mayer35ddfe22018-01-23 15:30:33 +0000425 "src/tracing/ipc/posix_shared_memory.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000426 ],
427 shared_libs: [
Primiano Tucci6067e732018-01-08 16:19:40 +0000428 "libandroid",
Sami Kyostilab5b71692018-01-12 12:16:44 +0000429 "libbinder",
Primiano Tucci6067e732018-01-08 16:19:40 +0000430 "liblog",
431 "libprotobuf-cpp-lite",
Sami Kyostilab5b71692018-01-12 12:16:44 +0000432 "libservices",
Primiano Tucciedf099c2018-01-08 18:27:56 +0000433 "libutils",
Primiano Tucci6067e732018-01-08 16:19:40 +0000434 ],
435 static_libs: [
436 "libgtest_prod",
Primiano Tucci6067e732018-01-08 16:19:40 +0000437 ],
438 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100439 "perfetto_protos_perfetto_common_lite_gen_headers",
440 "perfetto_protos_perfetto_common_zero_gen_headers",
441 "perfetto_protos_perfetto_config_lite_gen_headers",
442 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000443 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000444 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800445 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000446 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000447 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200448 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100449 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +0000450 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000451 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100452 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700453 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000454 "perfetto_protos_perfetto_trace_zero_gen_headers",
Primiano Tucci6067e732018-01-08 16:19:40 +0000455 "perfetto_src_ipc_wire_protocol_gen_headers",
Hector Dearman86cfbe12018-03-22 11:58:42 +0000456 "perfetto_src_perfetto_cmd_protos_gen_headers",
Primiano Tucci6067e732018-01-08 16:19:40 +0000457 ],
458 defaults: [
459 "perfetto_defaults",
460 ],
Primiano Tucciedf099c2018-01-08 18:27:56 +0000461 cflags: [
Florian Mayer3d5e7e62018-01-19 15:22:46 +0000462 "-DGOOGLE_PROTOBUF_NO_RTTI",
463 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Primiano Tucciedf099c2018-01-08 18:27:56 +0000464 "-DPERFETTO_BUILD_WITH_ANDROID",
465 ],
Logan Chien9bfaaf92018-02-13 18:49:24 +0800466 product_variables: {
467 pdk: {
468 enabled: false,
469 },
470 },
Primiano Tucci6067e732018-01-08 16:19:40 +0000471}
472
Sami Kyostilab27619f2017-12-13 19:22:16 +0000473cc_defaults {
474 name: "perfetto_defaults",
475 cflags: [
Florian Mayerc2a38ea2018-01-19 11:48:43 +0000476 "-Oz",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000477 "-Wno-error=return-type",
478 "-Wno-sign-compare",
479 "-Wno-sign-promo",
480 "-Wno-unused-parameter",
Florian Mayercc424fd2018-01-15 11:19:01 +0000481 "-fvisibility=hidden",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000482 ],
483 local_include_dirs: [
484 "include",
485 ],
Lalit Magantid8b1a1d2018-05-23 14:41:43 +0100486 product_variables: {
487 debuggable: {
488 cflags: ["-DPERFETTO_BUILD_WITH_ANDROID_USERDEBUG"],
489 },
490 },
Sami Kyostilab27619f2017-12-13 19:22:16 +0000491}
Sami Kyostila2357b032017-12-06 18:38:17 +0000492
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000493// GN target: //:perfetto_integrationtests
494cc_test {
495 name: "perfetto_integrationtests",
496 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100497 ":perfetto_protos_perfetto_common_lite_gen",
498 ":perfetto_protos_perfetto_common_zero_gen",
499 ":perfetto_protos_perfetto_config_lite_gen",
500 ":perfetto_protos_perfetto_config_zero_gen",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000501 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000502 ":perfetto_protos_perfetto_trace_android_lite_gen",
503 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800504 ":perfetto_protos_perfetto_trace_chrome_lite_gen",
505 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000506 ":perfetto_protos_perfetto_trace_filesystem_lite_gen",
507 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000508 ":perfetto_protos_perfetto_trace_ftrace_lite_gen",
509 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
510 ":perfetto_protos_perfetto_trace_lite_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200511 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100512 ":perfetto_protos_perfetto_trace_power_lite_gen",
513 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +0000514 ":perfetto_protos_perfetto_trace_profiling_lite_gen",
515 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000516 ":perfetto_protos_perfetto_trace_ps_lite_gen",
517 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100518 ":perfetto_protos_perfetto_trace_sys_stats_lite_gen",
519 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700520 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000521 ":perfetto_protos_perfetto_trace_zero_gen",
522 ":perfetto_src_ipc_wire_protocol_gen",
523 "src/base/android_task_runner.cc",
Primiano Tucci9f7189c2018-10-05 00:42:12 +0100524 "src/base/event.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +0000525 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +0100526 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +0100527 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +0100528 "src/base/pipe.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +0000529 "src/base/string_splitter.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +0100530 "src/base/string_utils.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +0000531 "src/base/temp_file.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000532 "src/base/test/test_task_runner.cc",
Hector Dearman7f71d0e2018-08-09 11:26:10 +0100533 "src/base/test/utils.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000534 "src/base/test/vm_test_utils.cc",
535 "src/base/thread_checker.cc",
Florian Mayer75905df2018-05-08 17:44:08 +0100536 "src/base/time.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +0100537 "src/base/unix_socket.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000538 "src/base/unix_task_runner.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100539 "src/base/virtual_destructors.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +0100540 "src/base/watchdog_posix.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000541 "src/ipc/buffered_frame_deserializer.cc",
542 "src/ipc/client_impl.cc",
543 "src/ipc/deferred.cc",
544 "src/ipc/host_impl.cc",
545 "src/ipc/service_proxy.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100546 "src/ipc/virtual_destructors.cc",
Florian Mayer42802492018-12-13 11:00:16 +0000547 "src/profiling/memory/bookkeeping.cc",
548 "src/profiling/memory/client.cc",
549 "src/profiling/memory/heapprofd_end_to_end_test.cc",
550 "src/profiling/memory/heapprofd_producer.cc",
Florian Mayerc4b196e2018-12-14 20:05:50 +0000551 "src/profiling/memory/proc_utils.cc",
Florian Mayer42802492018-12-13 11:00:16 +0000552 "src/profiling/memory/process_matcher.cc",
553 "src/profiling/memory/record_reader.cc",
554 "src/profiling/memory/sampler.cc",
555 "src/profiling/memory/socket_listener.cc",
556 "src/profiling/memory/system_property.cc",
557 "src/profiling/memory/unwinding.cc",
558 "src/profiling/memory/wire_protocol.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +0000559 "src/protozero/message.cc",
560 "src/protozero/message_handle.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +0100561 "src/protozero/proto_decoder.cc",
Primiano Tuccieb117352018-07-16 10:53:59 +0100562 "src/protozero/proto_field_descriptor.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +0000563 "src/protozero/scattered_stream_memory_delegate.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100564 "src/protozero/scattered_stream_null_delegate.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000565 "src/protozero/scattered_stream_writer.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000566 "src/traced/probes/android_log/android_log_data_source.cc",
Florian Mayer6f9c3422018-03-29 10:37:41 +0100567 "src/traced/probes/filesystem/file_scanner.cc",
Anna Zappone2a6f9042018-03-14 13:26:07 +0000568 "src/traced/probes/filesystem/fs_mount.cc",
569 "src/traced/probes/filesystem/inode_file_data_source.cc",
570 "src/traced/probes/filesystem/lru_inode_cache.cc",
Florian Mayerb21f4fb2018-03-22 15:24:56 +0000571 "src/traced/probes/filesystem/prefix_finder.cc",
572 "src/traced/probes/filesystem/range_tree.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200573 "src/traced/probes/ftrace/atrace_wrapper.cc",
574 "src/traced/probes/ftrace/cpu_reader.cc",
575 "src/traced/probes/ftrace/cpu_stats_parser.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200576 "src/traced/probes/ftrace/event_info.cc",
577 "src/traced/probes/ftrace/event_info_constants.cc",
578 "src/traced/probes/ftrace/format_parser.cc",
579 "src/traced/probes/ftrace/ftrace_config.cc",
580 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
581 "src/traced/probes/ftrace/ftrace_controller.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100582 "src/traced/probes/ftrace/ftrace_data_source.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +0100583 "src/traced/probes/ftrace/ftrace_metadata.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200584 "src/traced/probes/ftrace/ftrace_procfs.cc",
585 "src/traced/probes/ftrace/ftrace_procfs_integrationtest.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100586 "src/traced/probes/ftrace/ftrace_stats.cc",
Primiano Tuccic20ee512018-11-29 16:40:55 +0000587 "src/traced/probes/ftrace/page_pool.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200588 "src/traced/probes/ftrace/proto_translation_table.cc",
589 "src/traced/probes/ftrace/test/cpu_reader_support.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100590 "src/traced/probes/power/android_power_data_source.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100591 "src/traced/probes/probes_data_source.cc",
Isabelle Taylord404ea12018-02-19 17:28:01 +0000592 "src/traced/probes/probes_producer.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +0100593 "src/traced/probes/ps/process_stats_data_source.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100594 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000595 "src/tracing/core/android_log_config.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100596 "src/tracing/core/android_power_config.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800597 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +0000598 "src/tracing/core/commit_data_request.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000599 "src/tracing/core/data_source_config.cc",
600 "src/tracing/core/data_source_descriptor.cc",
Hector Dearmana89cc572018-02-23 12:02:58 +0000601 "src/tracing/core/ftrace_config.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000602 "src/tracing/core/heapprofd_config.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000603 "src/tracing/core/id_allocator.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +0100604 "src/tracing/core/inode_file_config.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100605 "src/tracing/core/null_trace_writer.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +0000606 "src/tracing/core/packet_stream_validator.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100607 "src/tracing/core/process_stats_config.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000608 "src/tracing/core/shared_memory_abi.cc",
609 "src/tracing/core/shared_memory_arbiter_impl.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +0000610 "src/tracing/core/sliced_protobuf_input_stream.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100611 "src/tracing/core/sys_stats_config.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000612 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +0000613 "src/tracing/core/trace_buffer.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000614 "src/tracing/core/trace_config.cc",
615 "src/tracing/core/trace_packet.cc",
616 "src/tracing/core/trace_writer_impl.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +0100617 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100618 "src/tracing/core/virtual_destructors.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000619 "test/end_to_end_integrationtest.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000620 "test/fake_producer.cc",
Florian Mayerc7255fd2018-01-25 10:29:24 +0000621 "test/task_runner_thread.cc",
Lalit Magantic4c3ceb2018-03-29 20:38:13 +0100622 "test/test_helper.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000623 ],
624 shared_libs: [
625 "libandroid",
Florian Mayer42802492018-12-13 11:00:16 +0000626 "libbase",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000627 "liblog",
Florian Mayer42802492018-12-13 11:00:16 +0000628 "libprocinfo",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000629 "libprotobuf-cpp-lite",
Florian Mayer42802492018-12-13 11:00:16 +0000630 "libunwindstack",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000631 ],
632 static_libs: [
633 "libgmock",
634 "libgtest_prod",
635 "perfetto_src_tracing_ipc",
636 ],
637 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100638 "perfetto_protos_perfetto_common_lite_gen_headers",
639 "perfetto_protos_perfetto_common_zero_gen_headers",
640 "perfetto_protos_perfetto_config_lite_gen_headers",
641 "perfetto_protos_perfetto_config_zero_gen_headers",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000642 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000643 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
644 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800645 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
646 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000647 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
648 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000649 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
650 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
651 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200652 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100653 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
654 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +0000655 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
656 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000657 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
658 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100659 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
660 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700661 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000662 "perfetto_protos_perfetto_trace_zero_gen_headers",
663 "perfetto_src_ipc_wire_protocol_gen_headers",
664 ],
665 defaults: [
666 "perfetto_defaults",
667 ],
668 cflags: [
669 "-DGOOGLE_PROTOBUF_NO_RTTI",
670 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Lalit Maganti0b9a6ac2018-02-16 18:05:06 +0000671 "-DPERFETTO_BUILD_WITH_ANDROID",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000672 ],
Logan Chien9bfaaf92018-02-13 18:49:24 +0800673 product_variables: {
674 pdk: {
675 enabled: false,
676 },
677 },
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000678}
679
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100680// GN target: //protos/perfetto/common:lite_gen
Primiano Tucci6aa75572018-03-21 05:33:14 -0700681genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100682 name: "perfetto_protos_perfetto_common_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700683 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000684 "protos/perfetto/common/android_log_constants.proto",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700685 "protos/perfetto/common/commit_data_request.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100686 "protos/perfetto/common/sys_stats_counters.proto",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700687 ],
688 tools: [
689 "aprotoc",
690 ],
691 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
692 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000693 "external/perfetto/protos/perfetto/common/android_log_constants.pb.cc",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700694 "external/perfetto/protos/perfetto/common/commit_data_request.pb.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100695 "external/perfetto/protos/perfetto/common/sys_stats_counters.pb.cc",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700696 ],
697}
698
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100699// GN target: //protos/perfetto/common:lite_gen
Primiano Tucci6aa75572018-03-21 05:33:14 -0700700genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100701 name: "perfetto_protos_perfetto_common_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700702 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000703 "protos/perfetto/common/android_log_constants.proto",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700704 "protos/perfetto/common/commit_data_request.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100705 "protos/perfetto/common/sys_stats_counters.proto",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700706 ],
707 tools: [
708 "aprotoc",
709 ],
710 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
711 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000712 "external/perfetto/protos/perfetto/common/android_log_constants.pb.h",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700713 "external/perfetto/protos/perfetto/common/commit_data_request.pb.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100714 "external/perfetto/protos/perfetto/common/sys_stats_counters.pb.h",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700715 ],
716 export_include_dirs: [
717 "protos",
718 ],
719}
720
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100721// GN target: //protos/perfetto/common:zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000722genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100723 name: "perfetto_protos_perfetto_common_zero_gen",
724 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000725 "protos/perfetto/common/android_log_constants.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100726 "protos/perfetto/common/commit_data_request.proto",
727 "protos/perfetto/common/sys_stats_counters.proto",
728 ],
729 tools: [
730 "aprotoc",
731 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
732 ],
733 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
734 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000735 "external/perfetto/protos/perfetto/common/android_log_constants.pbzero.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100736 "external/perfetto/protos/perfetto/common/commit_data_request.pbzero.cc",
737 "external/perfetto/protos/perfetto/common/sys_stats_counters.pbzero.cc",
738 ],
739}
740
741// GN target: //protos/perfetto/common:zero_gen
742genrule {
743 name: "perfetto_protos_perfetto_common_zero_gen_headers",
744 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000745 "protos/perfetto/common/android_log_constants.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100746 "protos/perfetto/common/commit_data_request.proto",
747 "protos/perfetto/common/sys_stats_counters.proto",
748 ],
749 tools: [
750 "aprotoc",
751 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
752 ],
753 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
754 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000755 "external/perfetto/protos/perfetto/common/android_log_constants.pbzero.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100756 "external/perfetto/protos/perfetto/common/commit_data_request.pbzero.h",
757 "external/perfetto/protos/perfetto/common/sys_stats_counters.pbzero.h",
758 ],
759 export_include_dirs: [
760 "protos",
761 ],
762}
763
764// GN target: //protos/perfetto/config:lite_gen
765genrule {
766 name: "perfetto_protos_perfetto_config_lite_gen",
Sami Kyostila2357b032017-12-06 18:38:17 +0000767 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000768 "protos/perfetto/config/android/android_log_config.proto",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800769 "protos/perfetto/config/chrome/chrome_config.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000770 "protos/perfetto/config/data_source_config.proto",
771 "protos/perfetto/config/data_source_descriptor.proto",
Hector Dearmana89cc572018-02-23 12:02:58 +0000772 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +0100773 "protos/perfetto/config/inode_file/inode_file_config.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100774 "protos/perfetto/config/power/android_power_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100775 "protos/perfetto/config/process_stats/process_stats_config.proto",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000776 "protos/perfetto/config/profiling/heapprofd_config.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100777 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000778 "protos/perfetto/config/test_config.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000779 "protos/perfetto/config/trace_config.proto",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000780 ],
781 tools: [
782 "aprotoc",
783 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +0000784 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000785 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000786 "external/perfetto/protos/perfetto/config/android/android_log_config.pb.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800787 "external/perfetto/protos/perfetto/config/chrome/chrome_config.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000788 "external/perfetto/protos/perfetto/config/data_source_config.pb.cc",
789 "external/perfetto/protos/perfetto/config/data_source_descriptor.pb.cc",
Hector Dearmana89cc572018-02-23 12:02:58 +0000790 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pb.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +0100791 "external/perfetto/protos/perfetto/config/inode_file/inode_file_config.pb.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100792 "external/perfetto/protos/perfetto/config/power/android_power_config.pb.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100793 "external/perfetto/protos/perfetto/config/process_stats/process_stats_config.pb.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000794 "external/perfetto/protos/perfetto/config/profiling/heapprofd_config.pb.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100795 "external/perfetto/protos/perfetto/config/sys_stats/sys_stats_config.pb.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000796 "external/perfetto/protos/perfetto/config/test_config.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000797 "external/perfetto/protos/perfetto/config/trace_config.pb.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000798 ],
799}
800
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100801// GN target: //protos/perfetto/config:lite_gen
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100802genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100803 name: "perfetto_protos_perfetto_config_lite_gen_headers",
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100804 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000805 "protos/perfetto/config/android/android_log_config.proto",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800806 "protos/perfetto/config/chrome/chrome_config.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000807 "protos/perfetto/config/data_source_config.proto",
808 "protos/perfetto/config/data_source_descriptor.proto",
Hector Dearmana89cc572018-02-23 12:02:58 +0000809 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +0100810 "protos/perfetto/config/inode_file/inode_file_config.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100811 "protos/perfetto/config/power/android_power_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100812 "protos/perfetto/config/process_stats/process_stats_config.proto",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000813 "protos/perfetto/config/profiling/heapprofd_config.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100814 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000815 "protos/perfetto/config/test_config.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000816 "protos/perfetto/config/trace_config.proto",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000817 ],
818 tools: [
819 "aprotoc",
820 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +0000821 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000822 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000823 "external/perfetto/protos/perfetto/config/android/android_log_config.pb.h",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800824 "external/perfetto/protos/perfetto/config/chrome/chrome_config.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000825 "external/perfetto/protos/perfetto/config/data_source_config.pb.h",
826 "external/perfetto/protos/perfetto/config/data_source_descriptor.pb.h",
Hector Dearmana89cc572018-02-23 12:02:58 +0000827 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pb.h",
Primiano Tuccidae35652018-03-29 18:32:02 +0100828 "external/perfetto/protos/perfetto/config/inode_file/inode_file_config.pb.h",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100829 "external/perfetto/protos/perfetto/config/power/android_power_config.pb.h",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100830 "external/perfetto/protos/perfetto/config/process_stats/process_stats_config.pb.h",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000831 "external/perfetto/protos/perfetto/config/profiling/heapprofd_config.pb.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100832 "external/perfetto/protos/perfetto/config/sys_stats/sys_stats_config.pb.h",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000833 "external/perfetto/protos/perfetto/config/test_config.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000834 "external/perfetto/protos/perfetto/config/trace_config.pb.h",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000835 ],
836 export_include_dirs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +0000837 "protos",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000838 ],
839}
840
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100841// GN target: //protos/perfetto/config:zero_gen
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100842genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100843 name: "perfetto_protos_perfetto_config_zero_gen",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100844 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000845 "protos/perfetto/config/android/android_log_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100846 "protos/perfetto/config/chrome/chrome_config.proto",
847 "protos/perfetto/config/data_source_config.proto",
848 "protos/perfetto/config/data_source_descriptor.proto",
849 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +0100850 "protos/perfetto/config/inode_file/inode_file_config.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100851 "protos/perfetto/config/power/android_power_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100852 "protos/perfetto/config/process_stats/process_stats_config.proto",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000853 "protos/perfetto/config/profiling/heapprofd_config.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100854 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100855 "protos/perfetto/config/test_config.proto",
856 "protos/perfetto/config/trace_config.proto",
857 ],
858 tools: [
859 "aprotoc",
860 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
861 ],
862 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
863 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000864 "external/perfetto/protos/perfetto/config/android/android_log_config.pbzero.cc",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100865 "external/perfetto/protos/perfetto/config/chrome/chrome_config.pbzero.cc",
866 "external/perfetto/protos/perfetto/config/data_source_config.pbzero.cc",
867 "external/perfetto/protos/perfetto/config/data_source_descriptor.pbzero.cc",
868 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pbzero.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +0100869 "external/perfetto/protos/perfetto/config/inode_file/inode_file_config.pbzero.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100870 "external/perfetto/protos/perfetto/config/power/android_power_config.pbzero.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100871 "external/perfetto/protos/perfetto/config/process_stats/process_stats_config.pbzero.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000872 "external/perfetto/protos/perfetto/config/profiling/heapprofd_config.pbzero.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100873 "external/perfetto/protos/perfetto/config/sys_stats/sys_stats_config.pbzero.cc",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100874 "external/perfetto/protos/perfetto/config/test_config.pbzero.cc",
875 "external/perfetto/protos/perfetto/config/trace_config.pbzero.cc",
876 ],
877}
878
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100879// GN target: //protos/perfetto/config:zero_gen
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100880genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100881 name: "perfetto_protos_perfetto_config_zero_gen_headers",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100882 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000883 "protos/perfetto/config/android/android_log_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100884 "protos/perfetto/config/chrome/chrome_config.proto",
885 "protos/perfetto/config/data_source_config.proto",
886 "protos/perfetto/config/data_source_descriptor.proto",
887 "protos/perfetto/config/ftrace/ftrace_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +0100888 "protos/perfetto/config/inode_file/inode_file_config.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100889 "protos/perfetto/config/power/android_power_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100890 "protos/perfetto/config/process_stats/process_stats_config.proto",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000891 "protos/perfetto/config/profiling/heapprofd_config.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100892 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100893 "protos/perfetto/config/test_config.proto",
894 "protos/perfetto/config/trace_config.proto",
895 ],
896 tools: [
897 "aprotoc",
898 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
899 ],
900 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
901 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000902 "external/perfetto/protos/perfetto/config/android/android_log_config.pbzero.h",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100903 "external/perfetto/protos/perfetto/config/chrome/chrome_config.pbzero.h",
904 "external/perfetto/protos/perfetto/config/data_source_config.pbzero.h",
905 "external/perfetto/protos/perfetto/config/data_source_descriptor.pbzero.h",
906 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pbzero.h",
Primiano Tuccidae35652018-03-29 18:32:02 +0100907 "external/perfetto/protos/perfetto/config/inode_file/inode_file_config.pbzero.h",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100908 "external/perfetto/protos/perfetto/config/power/android_power_config.pbzero.h",
Hector Dearman1b9c58a2018-03-29 18:45:06 +0100909 "external/perfetto/protos/perfetto/config/process_stats/process_stats_config.pbzero.h",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000910 "external/perfetto/protos/perfetto/config/profiling/heapprofd_config.pbzero.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100911 "external/perfetto/protos/perfetto/config/sys_stats/sys_stats_config.pbzero.h",
Sami Kyostila200bd2e2018-03-26 12:24:10 +0100912 "external/perfetto/protos/perfetto/config/test_config.pbzero.h",
913 "external/perfetto/protos/perfetto/config/trace_config.pbzero.h",
914 ],
915 export_include_dirs: [
916 "protos",
917 ],
918}
919
Primiano Tucci20b760c2018-01-19 12:36:12 +0000920// GN target: //protos/perfetto/ipc:ipc_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000921genrule {
Primiano Tucci20b760c2018-01-19 12:36:12 +0000922 name: "perfetto_protos_perfetto_ipc_ipc_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000923 srcs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +0000924 "protos/perfetto/ipc/consumer_port.proto",
925 "protos/perfetto/ipc/producer_port.proto",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000926 ],
927 tools: [
928 "aprotoc",
929 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
930 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +0000931 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=:$(genDir)/external/perfetto/protos $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000932 out: [
Primiano Tucci20b760c2018-01-19 12:36:12 +0000933 "external/perfetto/protos/perfetto/ipc/consumer_port.ipc.cc",
934 "external/perfetto/protos/perfetto/ipc/consumer_port.pb.cc",
935 "external/perfetto/protos/perfetto/ipc/producer_port.ipc.cc",
936 "external/perfetto/protos/perfetto/ipc/producer_port.pb.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000937 ],
938}
939
Primiano Tucci20b760c2018-01-19 12:36:12 +0000940// GN target: //protos/perfetto/ipc:ipc_gen
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000941genrule {
Primiano Tucci20b760c2018-01-19 12:36:12 +0000942 name: "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000943 srcs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +0000944 "protos/perfetto/ipc/consumer_port.proto",
945 "protos/perfetto/ipc/producer_port.proto",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000946 ],
947 tools: [
948 "aprotoc",
949 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
950 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +0000951 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=:$(genDir)/external/perfetto/protos $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000952 out: [
Primiano Tucci20b760c2018-01-19 12:36:12 +0000953 "external/perfetto/protos/perfetto/ipc/consumer_port.ipc.h",
954 "external/perfetto/protos/perfetto/ipc/consumer_port.pb.h",
955 "external/perfetto/protos/perfetto/ipc/producer_port.ipc.h",
956 "external/perfetto/protos/perfetto/ipc/producer_port.pb.h",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000957 ],
958 export_include_dirs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +0000959 "protos",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +0000960 ],
961}
962
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000963// GN target: //protos/perfetto/trace/android:lite_gen
964genrule {
965 name: "perfetto_protos_perfetto_trace_android_lite_gen",
966 srcs: [
967 "protos/perfetto/trace/android/android_log.proto",
968 ],
969 tools: [
970 "aprotoc",
971 ],
972 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
973 out: [
974 "external/perfetto/protos/perfetto/trace/android/android_log.pb.cc",
975 ],
976}
977
978// GN target: //protos/perfetto/trace/android:lite_gen
979genrule {
980 name: "perfetto_protos_perfetto_trace_android_lite_gen_headers",
981 srcs: [
982 "protos/perfetto/trace/android/android_log.proto",
983 ],
984 tools: [
985 "aprotoc",
986 ],
987 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
988 out: [
989 "external/perfetto/protos/perfetto/trace/android/android_log.pb.h",
990 ],
991 export_include_dirs: [
992 "protos",
993 ],
994}
995
996// GN target: //protos/perfetto/trace/android:zero_gen
997genrule {
998 name: "perfetto_protos_perfetto_trace_android_zero_gen",
999 srcs: [
1000 "protos/perfetto/trace/android/android_log.proto",
1001 ],
1002 tools: [
1003 "aprotoc",
1004 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1005 ],
1006 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1007 out: [
1008 "external/perfetto/protos/perfetto/trace/android/android_log.pbzero.cc",
1009 ],
1010}
1011
1012// GN target: //protos/perfetto/trace/android:zero_gen
1013genrule {
1014 name: "perfetto_protos_perfetto_trace_android_zero_gen_headers",
1015 srcs: [
1016 "protos/perfetto/trace/android/android_log.proto",
1017 ],
1018 tools: [
1019 "aprotoc",
1020 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1021 ],
1022 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1023 out: [
1024 "external/perfetto/protos/perfetto/trace/android/android_log.pbzero.h",
1025 ],
1026 export_include_dirs: [
1027 "protos",
1028 ],
1029}
1030
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001031// GN target: //protos/perfetto/trace/chrome:lite_gen
1032genrule {
1033 name: "perfetto_protos_perfetto_trace_chrome_lite_gen",
1034 srcs: [
1035 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
1036 ],
1037 tools: [
1038 "aprotoc",
1039 ],
1040 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1041 out: [
1042 "external/perfetto/protos/perfetto/trace/chrome/chrome_trace_event.pb.cc",
1043 ],
1044}
1045
1046// GN target: //protos/perfetto/trace/chrome:lite_gen
1047genrule {
1048 name: "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
1049 srcs: [
1050 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
1051 ],
1052 tools: [
1053 "aprotoc",
1054 ],
1055 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1056 out: [
1057 "external/perfetto/protos/perfetto/trace/chrome/chrome_trace_event.pb.h",
1058 ],
1059 export_include_dirs: [
1060 "protos",
1061 ],
1062}
1063
1064// GN target: //protos/perfetto/trace/chrome:zero_gen
1065genrule {
1066 name: "perfetto_protos_perfetto_trace_chrome_zero_gen",
1067 srcs: [
1068 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
1069 ],
1070 tools: [
1071 "aprotoc",
1072 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1073 ],
1074 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1075 out: [
1076 "external/perfetto/protos/perfetto/trace/chrome/chrome_trace_event.pbzero.cc",
1077 ],
1078}
1079
1080// GN target: //protos/perfetto/trace/chrome:zero_gen
1081genrule {
1082 name: "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
1083 srcs: [
1084 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
1085 ],
1086 tools: [
1087 "aprotoc",
1088 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1089 ],
1090 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1091 out: [
1092 "external/perfetto/protos/perfetto/trace/chrome/chrome_trace_event.pbzero.h",
1093 ],
1094 export_include_dirs: [
1095 "protos",
1096 ],
1097}
1098
Anna Zapponeed55ebf2018-03-02 12:12:15 +00001099// GN target: //protos/perfetto/trace/filesystem:lite_gen
1100genrule {
1101 name: "perfetto_protos_perfetto_trace_filesystem_lite_gen",
1102 srcs: [
1103 "protos/perfetto/trace/filesystem/inode_file_map.proto",
1104 ],
1105 tools: [
1106 "aprotoc",
1107 ],
1108 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1109 out: [
1110 "external/perfetto/protos/perfetto/trace/filesystem/inode_file_map.pb.cc",
1111 ],
1112}
1113
1114// GN target: //protos/perfetto/trace/filesystem:lite_gen
1115genrule {
1116 name: "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
1117 srcs: [
1118 "protos/perfetto/trace/filesystem/inode_file_map.proto",
1119 ],
1120 tools: [
1121 "aprotoc",
1122 ],
1123 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1124 out: [
1125 "external/perfetto/protos/perfetto/trace/filesystem/inode_file_map.pb.h",
1126 ],
1127 export_include_dirs: [
1128 "protos",
1129 ],
1130}
1131
1132// GN target: //protos/perfetto/trace/filesystem:zero_gen
1133genrule {
1134 name: "perfetto_protos_perfetto_trace_filesystem_zero_gen",
1135 srcs: [
1136 "protos/perfetto/trace/filesystem/inode_file_map.proto",
1137 ],
1138 tools: [
1139 "aprotoc",
1140 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1141 ],
1142 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1143 out: [
1144 "external/perfetto/protos/perfetto/trace/filesystem/inode_file_map.pbzero.cc",
1145 ],
1146}
1147
1148// GN target: //protos/perfetto/trace/filesystem:zero_gen
1149genrule {
1150 name: "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
1151 srcs: [
1152 "protos/perfetto/trace/filesystem/inode_file_map.proto",
1153 ],
1154 tools: [
1155 "aprotoc",
1156 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1157 ],
1158 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1159 out: [
1160 "external/perfetto/protos/perfetto/trace/filesystem/inode_file_map.pbzero.h",
1161 ],
1162 export_include_dirs: [
1163 "protos",
1164 ],
1165}
1166
Primiano Tucci20b760c2018-01-19 12:36:12 +00001167// GN target: //protos/perfetto/trace/ftrace:lite_gen
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001168genrule {
Primiano Tucci20b760c2018-01-19 12:36:12 +00001169 name: "perfetto_protos_perfetto_trace_ftrace_lite_gen",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001170 srcs: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001171 "protos/perfetto/trace/ftrace/binder.proto",
1172 "protos/perfetto/trace/ftrace/block.proto",
1173 "protos/perfetto/trace/ftrace/cgroup.proto",
1174 "protos/perfetto/trace/ftrace/clk.proto",
1175 "protos/perfetto/trace/ftrace/compaction.proto",
1176 "protos/perfetto/trace/ftrace/ext4.proto",
1177 "protos/perfetto/trace/ftrace/f2fs.proto",
1178 "protos/perfetto/trace/ftrace/fence.proto",
1179 "protos/perfetto/trace/ftrace/filemap.proto",
1180 "protos/perfetto/trace/ftrace/ftrace.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001181 "protos/perfetto/trace/ftrace/ftrace_event.proto",
1182 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001183 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001184 "protos/perfetto/trace/ftrace/generic.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001185 "protos/perfetto/trace/ftrace/i2c.proto",
1186 "protos/perfetto/trace/ftrace/ipi.proto",
1187 "protos/perfetto/trace/ftrace/irq.proto",
1188 "protos/perfetto/trace/ftrace/kmem.proto",
1189 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
1190 "protos/perfetto/trace/ftrace/mdss.proto",
1191 "protos/perfetto/trace/ftrace/oom.proto",
1192 "protos/perfetto/trace/ftrace/power.proto",
1193 "protos/perfetto/trace/ftrace/regulator.proto",
1194 "protos/perfetto/trace/ftrace/sched.proto",
1195 "protos/perfetto/trace/ftrace/signal.proto",
1196 "protos/perfetto/trace/ftrace/sync.proto",
1197 "protos/perfetto/trace/ftrace/task.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001198 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001199 "protos/perfetto/trace/ftrace/vmscan.proto",
1200 "protos/perfetto/trace/ftrace/workqueue.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001201 ],
1202 tools: [
1203 "aprotoc",
1204 ],
1205 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1206 out: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001207 "external/perfetto/protos/perfetto/trace/ftrace/binder.pb.cc",
1208 "external/perfetto/protos/perfetto/trace/ftrace/block.pb.cc",
1209 "external/perfetto/protos/perfetto/trace/ftrace/cgroup.pb.cc",
1210 "external/perfetto/protos/perfetto/trace/ftrace/clk.pb.cc",
1211 "external/perfetto/protos/perfetto/trace/ftrace/compaction.pb.cc",
1212 "external/perfetto/protos/perfetto/trace/ftrace/ext4.pb.cc",
1213 "external/perfetto/protos/perfetto/trace/ftrace/f2fs.pb.cc",
1214 "external/perfetto/protos/perfetto/trace/ftrace/fence.pb.cc",
1215 "external/perfetto/protos/perfetto/trace/ftrace/filemap.pb.cc",
1216 "external/perfetto/protos/perfetto/trace/ftrace/ftrace.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001217 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event.pb.cc",
1218 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle.pb.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001219 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_stats.pb.cc",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001220 "external/perfetto/protos/perfetto/trace/ftrace/generic.pb.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001221 "external/perfetto/protos/perfetto/trace/ftrace/i2c.pb.cc",
1222 "external/perfetto/protos/perfetto/trace/ftrace/ipi.pb.cc",
1223 "external/perfetto/protos/perfetto/trace/ftrace/irq.pb.cc",
1224 "external/perfetto/protos/perfetto/trace/ftrace/kmem.pb.cc",
1225 "external/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller.pb.cc",
1226 "external/perfetto/protos/perfetto/trace/ftrace/mdss.pb.cc",
1227 "external/perfetto/protos/perfetto/trace/ftrace/oom.pb.cc",
1228 "external/perfetto/protos/perfetto/trace/ftrace/power.pb.cc",
1229 "external/perfetto/protos/perfetto/trace/ftrace/regulator.pb.cc",
1230 "external/perfetto/protos/perfetto/trace/ftrace/sched.pb.cc",
1231 "external/perfetto/protos/perfetto/trace/ftrace/signal.pb.cc",
1232 "external/perfetto/protos/perfetto/trace/ftrace/sync.pb.cc",
1233 "external/perfetto/protos/perfetto/trace/ftrace/task.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001234 "external/perfetto/protos/perfetto/trace/ftrace/test_bundle_wrapper.pb.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001235 "external/perfetto/protos/perfetto/trace/ftrace/vmscan.pb.cc",
1236 "external/perfetto/protos/perfetto/trace/ftrace/workqueue.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001237 ],
1238}
1239
1240// GN target: //protos/perfetto/trace/ftrace:lite_gen
1241genrule {
1242 name: "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
1243 srcs: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001244 "protos/perfetto/trace/ftrace/binder.proto",
1245 "protos/perfetto/trace/ftrace/block.proto",
1246 "protos/perfetto/trace/ftrace/cgroup.proto",
1247 "protos/perfetto/trace/ftrace/clk.proto",
1248 "protos/perfetto/trace/ftrace/compaction.proto",
1249 "protos/perfetto/trace/ftrace/ext4.proto",
1250 "protos/perfetto/trace/ftrace/f2fs.proto",
1251 "protos/perfetto/trace/ftrace/fence.proto",
1252 "protos/perfetto/trace/ftrace/filemap.proto",
1253 "protos/perfetto/trace/ftrace/ftrace.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001254 "protos/perfetto/trace/ftrace/ftrace_event.proto",
1255 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001256 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001257 "protos/perfetto/trace/ftrace/generic.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001258 "protos/perfetto/trace/ftrace/i2c.proto",
1259 "protos/perfetto/trace/ftrace/ipi.proto",
1260 "protos/perfetto/trace/ftrace/irq.proto",
1261 "protos/perfetto/trace/ftrace/kmem.proto",
1262 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
1263 "protos/perfetto/trace/ftrace/mdss.proto",
1264 "protos/perfetto/trace/ftrace/oom.proto",
1265 "protos/perfetto/trace/ftrace/power.proto",
1266 "protos/perfetto/trace/ftrace/regulator.proto",
1267 "protos/perfetto/trace/ftrace/sched.proto",
1268 "protos/perfetto/trace/ftrace/signal.proto",
1269 "protos/perfetto/trace/ftrace/sync.proto",
1270 "protos/perfetto/trace/ftrace/task.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001271 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001272 "protos/perfetto/trace/ftrace/vmscan.proto",
1273 "protos/perfetto/trace/ftrace/workqueue.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001274 ],
1275 tools: [
1276 "aprotoc",
1277 ],
1278 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1279 out: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001280 "external/perfetto/protos/perfetto/trace/ftrace/binder.pb.h",
1281 "external/perfetto/protos/perfetto/trace/ftrace/block.pb.h",
1282 "external/perfetto/protos/perfetto/trace/ftrace/cgroup.pb.h",
1283 "external/perfetto/protos/perfetto/trace/ftrace/clk.pb.h",
1284 "external/perfetto/protos/perfetto/trace/ftrace/compaction.pb.h",
1285 "external/perfetto/protos/perfetto/trace/ftrace/ext4.pb.h",
1286 "external/perfetto/protos/perfetto/trace/ftrace/f2fs.pb.h",
1287 "external/perfetto/protos/perfetto/trace/ftrace/fence.pb.h",
1288 "external/perfetto/protos/perfetto/trace/ftrace/filemap.pb.h",
1289 "external/perfetto/protos/perfetto/trace/ftrace/ftrace.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001290 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event.pb.h",
1291 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle.pb.h",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001292 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_stats.pb.h",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001293 "external/perfetto/protos/perfetto/trace/ftrace/generic.pb.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001294 "external/perfetto/protos/perfetto/trace/ftrace/i2c.pb.h",
1295 "external/perfetto/protos/perfetto/trace/ftrace/ipi.pb.h",
1296 "external/perfetto/protos/perfetto/trace/ftrace/irq.pb.h",
1297 "external/perfetto/protos/perfetto/trace/ftrace/kmem.pb.h",
1298 "external/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller.pb.h",
1299 "external/perfetto/protos/perfetto/trace/ftrace/mdss.pb.h",
1300 "external/perfetto/protos/perfetto/trace/ftrace/oom.pb.h",
1301 "external/perfetto/protos/perfetto/trace/ftrace/power.pb.h",
1302 "external/perfetto/protos/perfetto/trace/ftrace/regulator.pb.h",
1303 "external/perfetto/protos/perfetto/trace/ftrace/sched.pb.h",
1304 "external/perfetto/protos/perfetto/trace/ftrace/signal.pb.h",
1305 "external/perfetto/protos/perfetto/trace/ftrace/sync.pb.h",
1306 "external/perfetto/protos/perfetto/trace/ftrace/task.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001307 "external/perfetto/protos/perfetto/trace/ftrace/test_bundle_wrapper.pb.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001308 "external/perfetto/protos/perfetto/trace/ftrace/vmscan.pb.h",
1309 "external/perfetto/protos/perfetto/trace/ftrace/workqueue.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001310 ],
1311 export_include_dirs: [
1312 "protos",
1313 ],
1314}
1315
1316// GN target: //protos/perfetto/trace/ftrace:zero_gen
1317genrule {
1318 name: "perfetto_protos_perfetto_trace_ftrace_zero_gen",
1319 srcs: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001320 "protos/perfetto/trace/ftrace/binder.proto",
1321 "protos/perfetto/trace/ftrace/block.proto",
1322 "protos/perfetto/trace/ftrace/cgroup.proto",
1323 "protos/perfetto/trace/ftrace/clk.proto",
1324 "protos/perfetto/trace/ftrace/compaction.proto",
1325 "protos/perfetto/trace/ftrace/ext4.proto",
1326 "protos/perfetto/trace/ftrace/f2fs.proto",
1327 "protos/perfetto/trace/ftrace/fence.proto",
1328 "protos/perfetto/trace/ftrace/filemap.proto",
1329 "protos/perfetto/trace/ftrace/ftrace.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001330 "protos/perfetto/trace/ftrace/ftrace_event.proto",
1331 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001332 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001333 "protos/perfetto/trace/ftrace/generic.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001334 "protos/perfetto/trace/ftrace/i2c.proto",
1335 "protos/perfetto/trace/ftrace/ipi.proto",
1336 "protos/perfetto/trace/ftrace/irq.proto",
1337 "protos/perfetto/trace/ftrace/kmem.proto",
1338 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
1339 "protos/perfetto/trace/ftrace/mdss.proto",
1340 "protos/perfetto/trace/ftrace/oom.proto",
1341 "protos/perfetto/trace/ftrace/power.proto",
1342 "protos/perfetto/trace/ftrace/regulator.proto",
1343 "protos/perfetto/trace/ftrace/sched.proto",
1344 "protos/perfetto/trace/ftrace/signal.proto",
1345 "protos/perfetto/trace/ftrace/sync.proto",
1346 "protos/perfetto/trace/ftrace/task.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001347 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001348 "protos/perfetto/trace/ftrace/vmscan.proto",
1349 "protos/perfetto/trace/ftrace/workqueue.proto",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001350 ],
1351 tools: [
1352 "aprotoc",
1353 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1354 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00001355 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001356 out: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001357 "external/perfetto/protos/perfetto/trace/ftrace/binder.pbzero.cc",
1358 "external/perfetto/protos/perfetto/trace/ftrace/block.pbzero.cc",
1359 "external/perfetto/protos/perfetto/trace/ftrace/cgroup.pbzero.cc",
1360 "external/perfetto/protos/perfetto/trace/ftrace/clk.pbzero.cc",
1361 "external/perfetto/protos/perfetto/trace/ftrace/compaction.pbzero.cc",
1362 "external/perfetto/protos/perfetto/trace/ftrace/ext4.pbzero.cc",
1363 "external/perfetto/protos/perfetto/trace/ftrace/f2fs.pbzero.cc",
1364 "external/perfetto/protos/perfetto/trace/ftrace/fence.pbzero.cc",
1365 "external/perfetto/protos/perfetto/trace/ftrace/filemap.pbzero.cc",
1366 "external/perfetto/protos/perfetto/trace/ftrace/ftrace.pbzero.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001367 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event.pbzero.cc",
1368 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle.pbzero.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001369 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_stats.pbzero.cc",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001370 "external/perfetto/protos/perfetto/trace/ftrace/generic.pbzero.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001371 "external/perfetto/protos/perfetto/trace/ftrace/i2c.pbzero.cc",
1372 "external/perfetto/protos/perfetto/trace/ftrace/ipi.pbzero.cc",
1373 "external/perfetto/protos/perfetto/trace/ftrace/irq.pbzero.cc",
1374 "external/perfetto/protos/perfetto/trace/ftrace/kmem.pbzero.cc",
1375 "external/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller.pbzero.cc",
1376 "external/perfetto/protos/perfetto/trace/ftrace/mdss.pbzero.cc",
1377 "external/perfetto/protos/perfetto/trace/ftrace/oom.pbzero.cc",
1378 "external/perfetto/protos/perfetto/trace/ftrace/power.pbzero.cc",
1379 "external/perfetto/protos/perfetto/trace/ftrace/regulator.pbzero.cc",
1380 "external/perfetto/protos/perfetto/trace/ftrace/sched.pbzero.cc",
1381 "external/perfetto/protos/perfetto/trace/ftrace/signal.pbzero.cc",
1382 "external/perfetto/protos/perfetto/trace/ftrace/sync.pbzero.cc",
1383 "external/perfetto/protos/perfetto/trace/ftrace/task.pbzero.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001384 "external/perfetto/protos/perfetto/trace/ftrace/test_bundle_wrapper.pbzero.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001385 "external/perfetto/protos/perfetto/trace/ftrace/vmscan.pbzero.cc",
1386 "external/perfetto/protos/perfetto/trace/ftrace/workqueue.pbzero.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001387 ],
1388}
1389
Primiano Tucci20b760c2018-01-19 12:36:12 +00001390// GN target: //protos/perfetto/trace/ftrace:zero_gen
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001391genrule {
Primiano Tucci20b760c2018-01-19 12:36:12 +00001392 name: "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001393 srcs: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001394 "protos/perfetto/trace/ftrace/binder.proto",
1395 "protos/perfetto/trace/ftrace/block.proto",
1396 "protos/perfetto/trace/ftrace/cgroup.proto",
1397 "protos/perfetto/trace/ftrace/clk.proto",
1398 "protos/perfetto/trace/ftrace/compaction.proto",
1399 "protos/perfetto/trace/ftrace/ext4.proto",
1400 "protos/perfetto/trace/ftrace/f2fs.proto",
1401 "protos/perfetto/trace/ftrace/fence.proto",
1402 "protos/perfetto/trace/ftrace/filemap.proto",
1403 "protos/perfetto/trace/ftrace/ftrace.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001404 "protos/perfetto/trace/ftrace/ftrace_event.proto",
1405 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001406 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001407 "protos/perfetto/trace/ftrace/generic.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001408 "protos/perfetto/trace/ftrace/i2c.proto",
1409 "protos/perfetto/trace/ftrace/ipi.proto",
1410 "protos/perfetto/trace/ftrace/irq.proto",
1411 "protos/perfetto/trace/ftrace/kmem.proto",
1412 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
1413 "protos/perfetto/trace/ftrace/mdss.proto",
1414 "protos/perfetto/trace/ftrace/oom.proto",
1415 "protos/perfetto/trace/ftrace/power.proto",
1416 "protos/perfetto/trace/ftrace/regulator.proto",
1417 "protos/perfetto/trace/ftrace/sched.proto",
1418 "protos/perfetto/trace/ftrace/signal.proto",
1419 "protos/perfetto/trace/ftrace/sync.proto",
1420 "protos/perfetto/trace/ftrace/task.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001421 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001422 "protos/perfetto/trace/ftrace/vmscan.proto",
1423 "protos/perfetto/trace/ftrace/workqueue.proto",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001424 ],
1425 tools: [
1426 "aprotoc",
1427 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1428 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00001429 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001430 out: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001431 "external/perfetto/protos/perfetto/trace/ftrace/binder.pbzero.h",
1432 "external/perfetto/protos/perfetto/trace/ftrace/block.pbzero.h",
1433 "external/perfetto/protos/perfetto/trace/ftrace/cgroup.pbzero.h",
1434 "external/perfetto/protos/perfetto/trace/ftrace/clk.pbzero.h",
1435 "external/perfetto/protos/perfetto/trace/ftrace/compaction.pbzero.h",
1436 "external/perfetto/protos/perfetto/trace/ftrace/ext4.pbzero.h",
1437 "external/perfetto/protos/perfetto/trace/ftrace/f2fs.pbzero.h",
1438 "external/perfetto/protos/perfetto/trace/ftrace/fence.pbzero.h",
1439 "external/perfetto/protos/perfetto/trace/ftrace/filemap.pbzero.h",
1440 "external/perfetto/protos/perfetto/trace/ftrace/ftrace.pbzero.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001441 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event.pbzero.h",
1442 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle.pbzero.h",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001443 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_stats.pbzero.h",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001444 "external/perfetto/protos/perfetto/trace/ftrace/generic.pbzero.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001445 "external/perfetto/protos/perfetto/trace/ftrace/i2c.pbzero.h",
1446 "external/perfetto/protos/perfetto/trace/ftrace/ipi.pbzero.h",
1447 "external/perfetto/protos/perfetto/trace/ftrace/irq.pbzero.h",
1448 "external/perfetto/protos/perfetto/trace/ftrace/kmem.pbzero.h",
1449 "external/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller.pbzero.h",
1450 "external/perfetto/protos/perfetto/trace/ftrace/mdss.pbzero.h",
1451 "external/perfetto/protos/perfetto/trace/ftrace/oom.pbzero.h",
1452 "external/perfetto/protos/perfetto/trace/ftrace/power.pbzero.h",
1453 "external/perfetto/protos/perfetto/trace/ftrace/regulator.pbzero.h",
1454 "external/perfetto/protos/perfetto/trace/ftrace/sched.pbzero.h",
1455 "external/perfetto/protos/perfetto/trace/ftrace/signal.pbzero.h",
1456 "external/perfetto/protos/perfetto/trace/ftrace/sync.pbzero.h",
1457 "external/perfetto/protos/perfetto/trace/ftrace/task.pbzero.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001458 "external/perfetto/protos/perfetto/trace/ftrace/test_bundle_wrapper.pbzero.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001459 "external/perfetto/protos/perfetto/trace/ftrace/vmscan.pbzero.h",
1460 "external/perfetto/protos/perfetto/trace/ftrace/workqueue.pbzero.h",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001461 ],
1462 export_include_dirs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +00001463 "protos",
1464 ],
1465}
1466
1467// GN target: //protos/perfetto/trace:lite_gen
1468genrule {
1469 name: "perfetto_protos_perfetto_trace_lite_gen",
1470 srcs: [
1471 "protos/perfetto/trace/test_event.proto",
1472 "protos/perfetto/trace/trace.proto",
1473 "protos/perfetto/trace/trace_packet.proto",
Primiano Tucci07e104d2018-04-03 20:45:35 +02001474 ],
1475 tools: [
1476 "aprotoc",
1477 ],
1478 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1479 out: [
1480 "external/perfetto/protos/perfetto/trace/test_event.pb.cc",
1481 "external/perfetto/protos/perfetto/trace/trace.pb.cc",
1482 "external/perfetto/protos/perfetto/trace/trace_packet.pb.cc",
1483 ],
1484}
1485
1486// GN target: //protos/perfetto/trace:lite_gen
1487genrule {
1488 name: "perfetto_protos_perfetto_trace_lite_gen_headers",
1489 srcs: [
1490 "protos/perfetto/trace/test_event.proto",
1491 "protos/perfetto/trace/trace.proto",
1492 "protos/perfetto/trace/trace_packet.proto",
1493 ],
1494 tools: [
1495 "aprotoc",
1496 ],
1497 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1498 out: [
1499 "external/perfetto/protos/perfetto/trace/test_event.pb.h",
1500 "external/perfetto/protos/perfetto/trace/trace.pb.h",
1501 "external/perfetto/protos/perfetto/trace/trace_packet.pb.h",
1502 ],
1503 export_include_dirs: [
1504 "protos",
1505 ],
1506}
1507
1508// GN target: //protos/perfetto/trace:minimal_lite_gen
1509genrule {
1510 name: "perfetto_protos_perfetto_trace_minimal_lite_gen",
1511 srcs: [
1512 "protos/perfetto/trace/clock_snapshot.proto",
Primiano Tucci5e33cad2018-04-30 14:41:25 +01001513 "protos/perfetto/trace/trace_stats.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001514 ],
1515 tools: [
1516 "aprotoc",
1517 ],
1518 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1519 out: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00001520 "external/perfetto/protos/perfetto/trace/clock_snapshot.pb.cc",
Primiano Tucci5e33cad2018-04-30 14:41:25 +01001521 "external/perfetto/protos/perfetto/trace/trace_stats.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001522 ],
1523}
1524
Primiano Tucci07e104d2018-04-03 20:45:35 +02001525// GN target: //protos/perfetto/trace:minimal_lite_gen
Primiano Tucci20b760c2018-01-19 12:36:12 +00001526genrule {
Primiano Tucci07e104d2018-04-03 20:45:35 +02001527 name: "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001528 srcs: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00001529 "protos/perfetto/trace/clock_snapshot.proto",
Primiano Tucci5e33cad2018-04-30 14:41:25 +01001530 "protos/perfetto/trace/trace_stats.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001531 ],
1532 tools: [
1533 "aprotoc",
1534 ],
1535 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1536 out: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00001537 "external/perfetto/protos/perfetto/trace/clock_snapshot.pb.h",
Primiano Tucci5e33cad2018-04-30 14:41:25 +01001538 "external/perfetto/protos/perfetto/trace/trace_stats.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001539 ],
1540 export_include_dirs: [
1541 "protos",
1542 ],
1543}
1544
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001545// GN target: //protos/perfetto/trace/power:lite_gen
1546genrule {
1547 name: "perfetto_protos_perfetto_trace_power_lite_gen",
1548 srcs: [
1549 "protos/perfetto/trace/power/battery_counters.proto",
1550 ],
1551 tools: [
1552 "aprotoc",
1553 ],
1554 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1555 out: [
1556 "external/perfetto/protos/perfetto/trace/power/battery_counters.pb.cc",
1557 ],
1558}
1559
1560// GN target: //protos/perfetto/trace/power:lite_gen
1561genrule {
1562 name: "perfetto_protos_perfetto_trace_power_lite_gen_headers",
1563 srcs: [
1564 "protos/perfetto/trace/power/battery_counters.proto",
1565 ],
1566 tools: [
1567 "aprotoc",
1568 ],
1569 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1570 out: [
1571 "external/perfetto/protos/perfetto/trace/power/battery_counters.pb.h",
1572 ],
1573 export_include_dirs: [
1574 "protos",
1575 ],
1576}
1577
1578// GN target: //protos/perfetto/trace/power:zero_gen
1579genrule {
1580 name: "perfetto_protos_perfetto_trace_power_zero_gen",
1581 srcs: [
1582 "protos/perfetto/trace/power/battery_counters.proto",
1583 ],
1584 tools: [
1585 "aprotoc",
1586 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1587 ],
1588 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1589 out: [
1590 "external/perfetto/protos/perfetto/trace/power/battery_counters.pbzero.cc",
1591 ],
1592}
1593
1594// GN target: //protos/perfetto/trace/power:zero_gen
1595genrule {
1596 name: "perfetto_protos_perfetto_trace_power_zero_gen_headers",
1597 srcs: [
1598 "protos/perfetto/trace/power/battery_counters.proto",
1599 ],
1600 tools: [
1601 "aprotoc",
1602 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1603 ],
1604 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1605 out: [
1606 "external/perfetto/protos/perfetto/trace/power/battery_counters.pbzero.h",
1607 ],
1608 export_include_dirs: [
1609 "protos",
1610 ],
1611}
1612
Florian Mayer4afdd642018-11-13 11:11:04 +00001613// GN target: //protos/perfetto/trace/profiling:lite_gen
1614genrule {
1615 name: "perfetto_protos_perfetto_trace_profiling_lite_gen",
1616 srcs: [
1617 "protos/perfetto/trace/profiling/profile_packet.proto",
1618 ],
1619 tools: [
1620 "aprotoc",
1621 ],
1622 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1623 out: [
1624 "external/perfetto/protos/perfetto/trace/profiling/profile_packet.pb.cc",
1625 ],
1626}
1627
1628// GN target: //protos/perfetto/trace/profiling:lite_gen
1629genrule {
1630 name: "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
1631 srcs: [
1632 "protos/perfetto/trace/profiling/profile_packet.proto",
1633 ],
1634 tools: [
1635 "aprotoc",
1636 ],
1637 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1638 out: [
1639 "external/perfetto/protos/perfetto/trace/profiling/profile_packet.pb.h",
1640 ],
1641 export_include_dirs: [
1642 "protos",
1643 ],
1644}
1645
1646// GN target: //protos/perfetto/trace/profiling:zero_gen
1647genrule {
1648 name: "perfetto_protos_perfetto_trace_profiling_zero_gen",
1649 srcs: [
1650 "protos/perfetto/trace/profiling/profile_packet.proto",
1651 ],
1652 tools: [
1653 "aprotoc",
1654 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1655 ],
1656 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1657 out: [
1658 "external/perfetto/protos/perfetto/trace/profiling/profile_packet.pbzero.cc",
1659 ],
1660}
1661
1662// GN target: //protos/perfetto/trace/profiling:zero_gen
1663genrule {
1664 name: "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
1665 srcs: [
1666 "protos/perfetto/trace/profiling/profile_packet.proto",
1667 ],
1668 tools: [
1669 "aprotoc",
1670 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1671 ],
1672 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1673 out: [
1674 "external/perfetto/protos/perfetto/trace/profiling/profile_packet.pbzero.h",
1675 ],
1676 export_include_dirs: [
1677 "protos",
1678 ],
1679}
1680
Lalit Maganti65b28a12018-02-14 18:27:14 +00001681// GN target: //protos/perfetto/trace/ps:lite_gen
1682genrule {
1683 name: "perfetto_protos_perfetto_trace_ps_lite_gen",
1684 srcs: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07001685 "protos/perfetto/trace/ps/process_stats.proto",
Lalit Maganti65b28a12018-02-14 18:27:14 +00001686 "protos/perfetto/trace/ps/process_tree.proto",
1687 ],
1688 tools: [
1689 "aprotoc",
1690 ],
1691 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1692 out: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07001693 "external/perfetto/protos/perfetto/trace/ps/process_stats.pb.cc",
Lalit Maganti65b28a12018-02-14 18:27:14 +00001694 "external/perfetto/protos/perfetto/trace/ps/process_tree.pb.cc",
1695 ],
1696}
1697
1698// GN target: //protos/perfetto/trace/ps:lite_gen
1699genrule {
1700 name: "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
1701 srcs: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07001702 "protos/perfetto/trace/ps/process_stats.proto",
Lalit Maganti65b28a12018-02-14 18:27:14 +00001703 "protos/perfetto/trace/ps/process_tree.proto",
1704 ],
1705 tools: [
1706 "aprotoc",
1707 ],
1708 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1709 out: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07001710 "external/perfetto/protos/perfetto/trace/ps/process_stats.pb.h",
Lalit Maganti65b28a12018-02-14 18:27:14 +00001711 "external/perfetto/protos/perfetto/trace/ps/process_tree.pb.h",
1712 ],
1713 export_include_dirs: [
1714 "protos",
1715 ],
1716}
1717
1718// GN target: //protos/perfetto/trace/ps:zero_gen
1719genrule {
1720 name: "perfetto_protos_perfetto_trace_ps_zero_gen",
1721 srcs: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07001722 "protos/perfetto/trace/ps/process_stats.proto",
Lalit Maganti65b28a12018-02-14 18:27:14 +00001723 "protos/perfetto/trace/ps/process_tree.proto",
1724 ],
1725 tools: [
1726 "aprotoc",
1727 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1728 ],
1729 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1730 out: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07001731 "external/perfetto/protos/perfetto/trace/ps/process_stats.pbzero.cc",
Lalit Maganti65b28a12018-02-14 18:27:14 +00001732 "external/perfetto/protos/perfetto/trace/ps/process_tree.pbzero.cc",
1733 ],
1734}
1735
1736// GN target: //protos/perfetto/trace/ps:zero_gen
1737genrule {
1738 name: "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
1739 srcs: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07001740 "protos/perfetto/trace/ps/process_stats.proto",
Lalit Maganti65b28a12018-02-14 18:27:14 +00001741 "protos/perfetto/trace/ps/process_tree.proto",
1742 ],
1743 tools: [
1744 "aprotoc",
1745 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1746 ],
1747 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1748 out: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07001749 "external/perfetto/protos/perfetto/trace/ps/process_stats.pbzero.h",
Lalit Maganti65b28a12018-02-14 18:27:14 +00001750 "external/perfetto/protos/perfetto/trace/ps/process_tree.pbzero.h",
1751 ],
1752 export_include_dirs: [
1753 "protos",
1754 ],
1755}
1756
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001757// GN target: //protos/perfetto/trace/sys_stats:lite_gen
1758genrule {
1759 name: "perfetto_protos_perfetto_trace_sys_stats_lite_gen",
1760 srcs: [
1761 "protos/perfetto/trace/sys_stats/sys_stats.proto",
1762 ],
1763 tools: [
1764 "aprotoc",
1765 ],
1766 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1767 out: [
1768 "external/perfetto/protos/perfetto/trace/sys_stats/sys_stats.pb.cc",
1769 ],
1770}
1771
1772// GN target: //protos/perfetto/trace/sys_stats:lite_gen
1773genrule {
1774 name: "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
1775 srcs: [
1776 "protos/perfetto/trace/sys_stats/sys_stats.proto",
1777 ],
1778 tools: [
1779 "aprotoc",
1780 ],
1781 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1782 out: [
1783 "external/perfetto/protos/perfetto/trace/sys_stats/sys_stats.pb.h",
1784 ],
1785 export_include_dirs: [
1786 "protos",
1787 ],
1788}
1789
1790// GN target: //protos/perfetto/trace/sys_stats:zero_gen
1791genrule {
1792 name: "perfetto_protos_perfetto_trace_sys_stats_zero_gen",
1793 srcs: [
1794 "protos/perfetto/trace/sys_stats/sys_stats.proto",
1795 ],
1796 tools: [
1797 "aprotoc",
1798 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1799 ],
1800 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1801 out: [
1802 "external/perfetto/protos/perfetto/trace/sys_stats/sys_stats.pbzero.cc",
1803 ],
1804}
1805
1806// GN target: //protos/perfetto/trace/sys_stats:zero_gen
1807genrule {
1808 name: "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
1809 srcs: [
1810 "protos/perfetto/trace/sys_stats/sys_stats.proto",
1811 ],
1812 tools: [
1813 "aprotoc",
1814 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1815 ],
1816 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1817 out: [
1818 "external/perfetto/protos/perfetto/trace/sys_stats/sys_stats.pbzero.h",
1819 ],
1820 export_include_dirs: [
1821 "protos",
1822 ],
1823}
1824
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07001825// GN target: //protos/perfetto/trace:trusted_lite_gen
1826genrule {
1827 name: "perfetto_protos_perfetto_trace_trusted_lite_gen",
1828 srcs: [
1829 "protos/perfetto/trace/trusted_packet.proto",
1830 ],
1831 tools: [
1832 "aprotoc",
1833 ],
1834 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1835 out: [
1836 "external/perfetto/protos/perfetto/trace/trusted_packet.pb.cc",
1837 ],
1838}
1839
1840// GN target: //protos/perfetto/trace:trusted_lite_gen
1841genrule {
1842 name: "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
1843 srcs: [
1844 "protos/perfetto/trace/trusted_packet.proto",
1845 ],
1846 tools: [
1847 "aprotoc",
1848 ],
1849 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1850 out: [
1851 "external/perfetto/protos/perfetto/trace/trusted_packet.pb.h",
1852 ],
1853 export_include_dirs: [
1854 "protos",
1855 ],
1856}
1857
Primiano Tucci20b760c2018-01-19 12:36:12 +00001858// GN target: //protos/perfetto/trace:zero_gen
1859genrule {
1860 name: "perfetto_protos_perfetto_trace_zero_gen",
1861 srcs: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00001862 "protos/perfetto/trace/clock_snapshot.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001863 "protos/perfetto/trace/test_event.proto",
1864 "protos/perfetto/trace/trace.proto",
1865 "protos/perfetto/trace/trace_packet.proto",
Primiano Tucci5e33cad2018-04-30 14:41:25 +01001866 "protos/perfetto/trace/trace_stats.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001867 ],
1868 tools: [
1869 "aprotoc",
1870 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1871 ],
1872 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1873 out: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00001874 "external/perfetto/protos/perfetto/trace/clock_snapshot.pbzero.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001875 "external/perfetto/protos/perfetto/trace/test_event.pbzero.cc",
1876 "external/perfetto/protos/perfetto/trace/trace.pbzero.cc",
1877 "external/perfetto/protos/perfetto/trace/trace_packet.pbzero.cc",
Primiano Tucci5e33cad2018-04-30 14:41:25 +01001878 "external/perfetto/protos/perfetto/trace/trace_stats.pbzero.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001879 ],
1880}
1881
1882// GN target: //protos/perfetto/trace:zero_gen
1883genrule {
1884 name: "perfetto_protos_perfetto_trace_zero_gen_headers",
1885 srcs: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00001886 "protos/perfetto/trace/clock_snapshot.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001887 "protos/perfetto/trace/test_event.proto",
1888 "protos/perfetto/trace/trace.proto",
1889 "protos/perfetto/trace/trace_packet.proto",
Primiano Tucci5e33cad2018-04-30 14:41:25 +01001890 "protos/perfetto/trace/trace_stats.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001891 ],
1892 tools: [
1893 "aprotoc",
1894 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
1895 ],
1896 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
1897 out: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00001898 "external/perfetto/protos/perfetto/trace/clock_snapshot.pbzero.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001899 "external/perfetto/protos/perfetto/trace/test_event.pbzero.h",
1900 "external/perfetto/protos/perfetto/trace/trace.pbzero.h",
1901 "external/perfetto/protos/perfetto/trace/trace_packet.pbzero.h",
Primiano Tucci5e33cad2018-04-30 14:41:25 +01001902 "external/perfetto/protos/perfetto/trace/trace_stats.pbzero.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001903 ],
1904 export_include_dirs: [
1905 "protos",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001906 ],
1907}
1908
Florian Mayer0ca7fb42018-11-15 21:13:42 +00001909// GN target: //protos/third_party/pprof:lite_gen
1910genrule {
1911 name: "perfetto_protos_third_party_pprof_lite_gen",
1912 srcs: [
1913 "protos/third_party/pprof/profile.proto",
1914 ],
1915 tools: [
1916 "aprotoc",
1917 ],
1918 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1919 out: [
1920 "external/perfetto/protos/third_party/pprof/profile.pb.cc",
1921 ],
1922}
1923
1924// GN target: //protos/third_party/pprof:lite_gen
1925genrule {
1926 name: "perfetto_protos_third_party_pprof_lite_gen_headers",
1927 srcs: [
1928 "protos/third_party/pprof/profile.proto",
1929 ],
1930 tools: [
1931 "aprotoc",
1932 ],
1933 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1934 out: [
1935 "external/perfetto/protos/third_party/pprof/profile.pb.h",
1936 ],
1937 export_include_dirs: [
1938 "protos",
1939 ],
1940}
1941
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001942// GN target: //src/ipc/protoc_plugin:ipc_plugin(//gn/standalone/toolchain:gcc_like_host)
1943cc_binary_host {
1944 name: "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
1945 srcs: [
1946 "src/ipc/protoc_plugin/ipc_generator.cc",
1947 "src/ipc/protoc_plugin/ipc_plugin.cc",
1948 ],
1949 shared_libs: [
1950 "libprotoc",
1951 ],
1952 defaults: [
1953 "perfetto_defaults",
1954 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +00001955 cflags: [
1956 "-DGOOGLE_PROTOBUF_NO_RTTI",
1957 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
1958 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001959}
1960
1961// GN target: //src/ipc:test_messages_gen
1962genrule {
1963 name: "perfetto_src_ipc_test_messages_gen",
1964 srcs: [
1965 "src/ipc/test/client_unittest_messages.proto",
1966 "src/ipc/test/deferred_unittest_messages.proto",
1967 "src/ipc/test/greeter_service.proto",
1968 ],
1969 tools: [
1970 "aprotoc",
1971 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
1972 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00001973 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ --plugin=protoc-gen-plugin=$(location perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=:$(genDir)/external/perfetto $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001974 out: [
1975 "external/perfetto/src/ipc/test/client_unittest_messages.ipc.cc",
1976 "external/perfetto/src/ipc/test/client_unittest_messages.pb.cc",
1977 "external/perfetto/src/ipc/test/deferred_unittest_messages.ipc.cc",
1978 "external/perfetto/src/ipc/test/deferred_unittest_messages.pb.cc",
1979 "external/perfetto/src/ipc/test/greeter_service.ipc.cc",
1980 "external/perfetto/src/ipc/test/greeter_service.pb.cc",
1981 ],
1982}
1983
1984// GN target: //src/ipc:test_messages_gen
1985genrule {
1986 name: "perfetto_src_ipc_test_messages_gen_headers",
1987 srcs: [
1988 "src/ipc/test/client_unittest_messages.proto",
1989 "src/ipc/test/deferred_unittest_messages.proto",
1990 "src/ipc/test/greeter_service.proto",
1991 ],
1992 tools: [
1993 "aprotoc",
1994 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
1995 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00001996 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ --plugin=protoc-gen-plugin=$(location perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=:$(genDir)/external/perfetto $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001997 out: [
1998 "external/perfetto/src/ipc/test/client_unittest_messages.ipc.h",
1999 "external/perfetto/src/ipc/test/client_unittest_messages.pb.h",
2000 "external/perfetto/src/ipc/test/deferred_unittest_messages.ipc.h",
2001 "external/perfetto/src/ipc/test/deferred_unittest_messages.pb.h",
2002 "external/perfetto/src/ipc/test/greeter_service.ipc.h",
2003 "external/perfetto/src/ipc/test/greeter_service.pb.h",
2004 ],
2005 export_include_dirs: [
2006 ".",
2007 ],
2008}
2009
Sami Kyostilab27619f2017-12-13 19:22:16 +00002010// GN target: //src/ipc:wire_protocol_gen
Sami Kyostila71625d72017-12-18 10:29:49 +00002011genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +00002012 name: "perfetto_src_ipc_wire_protocol_gen",
2013 srcs: [
2014 "src/ipc/wire_protocol.proto",
2015 ],
2016 tools: [
2017 "aprotoc",
2018 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002019 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002020 out: [
2021 "external/perfetto/src/ipc/wire_protocol.pb.cc",
2022 ],
2023}
2024
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002025// GN target: //src/ipc:wire_protocol_gen
2026genrule {
2027 name: "perfetto_src_ipc_wire_protocol_gen_headers",
2028 srcs: [
2029 "src/ipc/wire_protocol.proto",
2030 ],
2031 tools: [
2032 "aprotoc",
2033 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002034 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002035 out: [
2036 "external/perfetto/src/ipc/wire_protocol.pb.h",
2037 ],
2038 export_include_dirs: [
2039 ".",
2040 ],
2041}
2042
Hector Dearman86cfbe12018-03-22 11:58:42 +00002043// GN target: //src/perfetto_cmd:protos_gen
2044genrule {
2045 name: "perfetto_src_perfetto_cmd_protos_gen",
2046 srcs: [
Hector Dearmanb7fa5442018-11-08 18:39:32 +00002047 "src/perfetto_cmd/descriptor.proto",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002048 "src/perfetto_cmd/perfetto_cmd_state.proto",
2049 ],
2050 tools: [
2051 "aprotoc",
2052 ],
2053 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
2054 out: [
Hector Dearmanb7fa5442018-11-08 18:39:32 +00002055 "external/perfetto/src/perfetto_cmd/descriptor.pb.cc",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002056 "external/perfetto/src/perfetto_cmd/perfetto_cmd_state.pb.cc",
2057 ],
2058}
2059
2060// GN target: //src/perfetto_cmd:protos_gen
2061genrule {
2062 name: "perfetto_src_perfetto_cmd_protos_gen_headers",
2063 srcs: [
Hector Dearmanb7fa5442018-11-08 18:39:32 +00002064 "src/perfetto_cmd/descriptor.proto",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002065 "src/perfetto_cmd/perfetto_cmd_state.proto",
2066 ],
2067 tools: [
2068 "aprotoc",
2069 ],
2070 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
2071 out: [
Hector Dearmanb7fa5442018-11-08 18:39:32 +00002072 "external/perfetto/src/perfetto_cmd/descriptor.pb.h",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002073 "external/perfetto/src/perfetto_cmd/perfetto_cmd_state.pb.h",
2074 ],
2075 export_include_dirs: [
2076 ".",
2077 ],
2078}
2079
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002080// GN target: //src/protozero/protoc_plugin:protoc_plugin(//gn/standalone/toolchain:gcc_like_host)
2081cc_binary_host {
2082 name: "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
2083 srcs: [
2084 "src/protozero/protoc_plugin/protozero_generator.cc",
2085 "src/protozero/protoc_plugin/protozero_plugin.cc",
2086 ],
2087 shared_libs: [
2088 "libprotoc",
2089 ],
2090 defaults: [
2091 "perfetto_defaults",
2092 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +00002093 cflags: [
2094 "-DGOOGLE_PROTOBUF_NO_RTTI",
2095 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
2096 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002097}
2098
Sami Kyostilab27619f2017-12-13 19:22:16 +00002099// GN target: //src/protozero:testing_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +00002100genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +00002101 name: "perfetto_src_protozero_testing_messages_lite_gen",
2102 srcs: [
2103 "src/protozero/test/example_proto/library.proto",
2104 "src/protozero/test/example_proto/library_internals/galaxies.proto",
2105 "src/protozero/test/example_proto/test_messages.proto",
2106 "src/protozero/test/example_proto/upper_import.proto",
2107 ],
2108 tools: [
2109 "aprotoc",
2110 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002111 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002112 out: [
2113 "external/perfetto/src/protozero/test/example_proto/library.pb.cc",
2114 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pb.cc",
2115 "external/perfetto/src/protozero/test/example_proto/test_messages.pb.cc",
2116 "external/perfetto/src/protozero/test/example_proto/upper_import.pb.cc",
2117 ],
2118}
2119
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002120// GN target: //src/protozero:testing_messages_lite_gen
2121genrule {
2122 name: "perfetto_src_protozero_testing_messages_lite_gen_headers",
2123 srcs: [
2124 "src/protozero/test/example_proto/library.proto",
2125 "src/protozero/test/example_proto/library_internals/galaxies.proto",
2126 "src/protozero/test/example_proto/test_messages.proto",
2127 "src/protozero/test/example_proto/upper_import.proto",
2128 ],
2129 tools: [
2130 "aprotoc",
2131 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002132 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002133 out: [
2134 "external/perfetto/src/protozero/test/example_proto/library.pb.h",
2135 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pb.h",
2136 "external/perfetto/src/protozero/test/example_proto/test_messages.pb.h",
2137 "external/perfetto/src/protozero/test/example_proto/upper_import.pb.h",
2138 ],
2139 export_include_dirs: [
2140 ".",
2141 ],
2142}
2143
2144// GN target: //src/protozero:testing_messages_zero_gen
2145genrule {
2146 name: "perfetto_src_protozero_testing_messages_zero_gen",
2147 srcs: [
2148 "src/protozero/test/example_proto/library.proto",
2149 "src/protozero/test/example_proto/library_internals/galaxies.proto",
2150 "src/protozero/test/example_proto/test_messages.proto",
2151 "src/protozero/test/example_proto/upper_import.proto",
2152 ],
2153 tools: [
2154 "aprotoc",
2155 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
2156 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002157 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002158 out: [
2159 "external/perfetto/src/protozero/test/example_proto/library.pbzero.cc",
2160 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.cc",
2161 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.cc",
2162 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.cc",
2163 ],
2164}
2165
2166// GN target: //src/protozero:testing_messages_zero_gen
2167genrule {
2168 name: "perfetto_src_protozero_testing_messages_zero_gen_headers",
2169 srcs: [
2170 "src/protozero/test/example_proto/library.proto",
2171 "src/protozero/test/example_proto/library_internals/galaxies.proto",
2172 "src/protozero/test/example_proto/test_messages.proto",
2173 "src/protozero/test/example_proto/upper_import.proto",
2174 ],
2175 tools: [
2176 "aprotoc",
2177 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
2178 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002179 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002180 out: [
2181 "external/perfetto/src/protozero/test/example_proto/library.pbzero.h",
2182 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.h",
2183 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.h",
2184 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.h",
2185 ],
2186 export_include_dirs: [
2187 ".",
2188 ],
2189}
2190
Primiano Tuccide82dae2018-06-04 16:17:49 +02002191// GN target: //src/traced/probes/ftrace:test_messages_lite_gen
2192genrule {
2193 name: "perfetto_src_traced_probes_ftrace_test_messages_lite_gen",
2194 srcs: [
2195 "src/traced/probes/ftrace/test/test_messages.proto",
2196 ],
2197 tools: [
2198 "aprotoc",
2199 ],
2200 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
2201 out: [
2202 "external/perfetto/src/traced/probes/ftrace/test/test_messages.pb.cc",
2203 ],
2204}
2205
2206// GN target: //src/traced/probes/ftrace:test_messages_lite_gen
2207genrule {
2208 name: "perfetto_src_traced_probes_ftrace_test_messages_lite_gen_headers",
2209 srcs: [
2210 "src/traced/probes/ftrace/test/test_messages.proto",
2211 ],
2212 tools: [
2213 "aprotoc",
2214 ],
2215 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
2216 out: [
2217 "external/perfetto/src/traced/probes/ftrace/test/test_messages.pb.h",
2218 ],
2219 export_include_dirs: [
2220 ".",
2221 ],
2222}
2223
2224// GN target: //src/traced/probes/ftrace:test_messages_zero_gen
2225genrule {
2226 name: "perfetto_src_traced_probes_ftrace_test_messages_zero_gen",
2227 srcs: [
2228 "src/traced/probes/ftrace/test/test_messages.proto",
2229 ],
2230 tools: [
2231 "aprotoc",
2232 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
2233 ],
2234 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
2235 out: [
2236 "external/perfetto/src/traced/probes/ftrace/test/test_messages.pbzero.cc",
2237 ],
2238}
2239
2240// GN target: //src/traced/probes/ftrace:test_messages_zero_gen
2241genrule {
2242 name: "perfetto_src_traced_probes_ftrace_test_messages_zero_gen_headers",
2243 srcs: [
2244 "src/traced/probes/ftrace/test/test_messages.proto",
2245 ],
2246 tools: [
2247 "aprotoc",
2248 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
2249 ],
2250 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
2251 out: [
2252 "external/perfetto/src/traced/probes/ftrace/test/test_messages.pbzero.h",
2253 ],
2254 export_include_dirs: [
2255 ".",
2256 ],
2257}
2258
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002259// GN target: //src/tracing:ipc
2260cc_library_static {
2261 name: "perfetto_src_tracing_ipc",
2262 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002263 ":perfetto_protos_perfetto_common_lite_gen",
2264 ":perfetto_protos_perfetto_common_zero_gen",
2265 ":perfetto_protos_perfetto_config_lite_gen",
2266 ":perfetto_protos_perfetto_config_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002267 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002268 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08002269 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00002270 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002271 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002272 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002273 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +00002274 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002275 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002276 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07002277 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002278 ":perfetto_protos_perfetto_trace_zero_gen",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002279 ":perfetto_src_ipc_wire_protocol_gen",
Primiano Tucci9f7189c2018-10-05 00:42:12 +01002280 "src/base/event.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +00002281 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +01002282 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +01002283 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +01002284 "src/base/pipe.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +00002285 "src/base/string_splitter.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +01002286 "src/base/string_utils.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +00002287 "src/base/temp_file.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002288 "src/base/thread_checker.cc",
Florian Mayer75905df2018-05-08 17:44:08 +01002289 "src/base/time.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +01002290 "src/base/unix_socket.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002291 "src/base/unix_task_runner.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01002292 "src/base/virtual_destructors.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +01002293 "src/base/watchdog_posix.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002294 "src/ipc/buffered_frame_deserializer.cc",
2295 "src/ipc/client_impl.cc",
2296 "src/ipc/deferred.cc",
2297 "src/ipc/host_impl.cc",
2298 "src/ipc/service_proxy.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01002299 "src/ipc/virtual_destructors.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +00002300 "src/protozero/message.cc",
2301 "src/protozero/message_handle.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +01002302 "src/protozero/proto_decoder.cc",
Primiano Tuccieb117352018-07-16 10:53:59 +01002303 "src/protozero/proto_field_descriptor.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +00002304 "src/protozero/scattered_stream_memory_delegate.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +01002305 "src/protozero/scattered_stream_null_delegate.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002306 "src/protozero/scattered_stream_writer.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002307 "src/tracing/core/android_log_config.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002308 "src/tracing/core/android_power_config.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08002309 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +00002310 "src/tracing/core/commit_data_request.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002311 "src/tracing/core/data_source_config.cc",
2312 "src/tracing/core/data_source_descriptor.cc",
Hector Dearmana89cc572018-02-23 12:02:58 +00002313 "src/tracing/core/ftrace_config.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +00002314 "src/tracing/core/heapprofd_config.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002315 "src/tracing/core/id_allocator.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +01002316 "src/tracing/core/inode_file_config.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +01002317 "src/tracing/core/null_trace_writer.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +00002318 "src/tracing/core/packet_stream_validator.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01002319 "src/tracing/core/process_stats_config.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002320 "src/tracing/core/shared_memory_abi.cc",
Oystein Eftevaag6d0bc7f2018-01-13 12:21:55 -08002321 "src/tracing/core/shared_memory_arbiter_impl.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +00002322 "src/tracing/core/sliced_protobuf_input_stream.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002323 "src/tracing/core/sys_stats_config.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +00002324 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +00002325 "src/tracing/core/trace_buffer.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002326 "src/tracing/core/trace_config.cc",
2327 "src/tracing/core/trace_packet.cc",
2328 "src/tracing/core/trace_writer_impl.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +01002329 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01002330 "src/tracing/core/virtual_destructors.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002331 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
Florian Mayerc29e0d32018-04-04 15:55:46 +01002332 "src/tracing/ipc/default_socket.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002333 "src/tracing/ipc/posix_shared_memory.cc",
2334 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
2335 "src/tracing/ipc/service/consumer_ipc_service.cc",
2336 "src/tracing/ipc/service/producer_ipc_service.cc",
2337 "src/tracing/ipc/service/service_ipc_host_impl.cc",
2338 ],
2339 shared_libs: [
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002340 "liblog",
2341 "libprotobuf-cpp-lite",
2342 ],
Hector Dearman3e712a02017-12-19 16:39:59 +00002343 static_libs: [
2344 "libgtest_prod",
2345 ],
Lalit Magantic5bcd792018-01-12 18:38:11 +00002346 export_include_dirs: [
2347 "include",
2348 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002349 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002350 "perfetto_protos_perfetto_common_lite_gen_headers",
2351 "perfetto_protos_perfetto_common_zero_gen_headers",
2352 "perfetto_protos_perfetto_config_lite_gen_headers",
2353 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002354 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002355 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08002356 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00002357 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002358 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002359 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002360 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00002361 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002362 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002363 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07002364 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002365 "perfetto_protos_perfetto_trace_zero_gen_headers",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002366 "perfetto_src_ipc_wire_protocol_gen_headers",
2367 ],
Lalit Magantic5bcd792018-01-12 18:38:11 +00002368 export_generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002369 "perfetto_protos_perfetto_common_lite_gen_headers",
2370 "perfetto_protos_perfetto_common_zero_gen_headers",
2371 "perfetto_protos_perfetto_config_lite_gen_headers",
2372 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002373 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002374 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08002375 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00002376 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002377 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002378 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002379 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00002380 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002381 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002382 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07002383 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002384 "perfetto_protos_perfetto_trace_zero_gen_headers",
Lalit Magantic5bcd792018-01-12 18:38:11 +00002385 "perfetto_src_ipc_wire_protocol_gen_headers",
2386 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002387 defaults: [
2388 "perfetto_defaults",
2389 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +00002390 cflags: [
2391 "-DGOOGLE_PROTOBUF_NO_RTTI",
2392 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
2393 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002394}
2395
Primiano Tucci6aa75572018-03-21 05:33:14 -07002396// GN target: //:perfetto_trace_protos
2397cc_library_static {
2398 name: "perfetto_trace_protos",
2399 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002400 ":perfetto_protos_perfetto_common_lite_gen",
2401 ":perfetto_protos_perfetto_config_lite_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002402 ":perfetto_protos_perfetto_trace_android_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002403 ":perfetto_protos_perfetto_trace_chrome_lite_gen",
2404 ":perfetto_protos_perfetto_trace_filesystem_lite_gen",
2405 ":perfetto_protos_perfetto_trace_ftrace_lite_gen",
2406 ":perfetto_protos_perfetto_trace_lite_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002407 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002408 ":perfetto_protos_perfetto_trace_power_lite_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +00002409 ":perfetto_protos_perfetto_trace_profiling_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002410 ":perfetto_protos_perfetto_trace_ps_lite_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002411 ":perfetto_protos_perfetto_trace_sys_stats_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002412 ],
2413 shared_libs: [
2414 "liblog",
2415 "libprotobuf-cpp-lite",
2416 ],
2417 host_supported: true,
2418 export_include_dirs: [
2419 "include",
2420 ],
2421 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002422 "perfetto_protos_perfetto_common_lite_gen_headers",
2423 "perfetto_protos_perfetto_config_lite_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002424 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002425 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
2426 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
2427 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
2428 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002429 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002430 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00002431 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002432 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002433 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002434 ],
2435 export_generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002436 "perfetto_protos_perfetto_common_lite_gen_headers",
2437 "perfetto_protos_perfetto_config_lite_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002438 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002439 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
2440 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
2441 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
2442 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002443 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002444 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00002445 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002446 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002447 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07002448 ],
2449 defaults: [
2450 "perfetto_defaults",
2451 ],
2452 cflags: [
2453 "-DGOOGLE_PROTOBUF_NO_RTTI",
2454 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
2455 ],
2456}
2457
Lalit Maganti79f2d7b2018-01-23 18:27:33 +00002458// GN target: //:perfetto_unittests
Sami Kyostilab27619f2017-12-13 19:22:16 +00002459cc_test {
Lalit Maganti79f2d7b2018-01-23 18:27:33 +00002460 name: "perfetto_unittests",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002461 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002462 ":perfetto_protos_perfetto_common_lite_gen",
2463 ":perfetto_protos_perfetto_common_zero_gen",
2464 ":perfetto_protos_perfetto_config_lite_gen",
2465 ":perfetto_protos_perfetto_config_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002466 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002467 ":perfetto_protos_perfetto_trace_android_lite_gen",
2468 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08002469 ":perfetto_protos_perfetto_trace_chrome_lite_gen",
2470 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00002471 ":perfetto_protos_perfetto_trace_filesystem_lite_gen",
2472 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002473 ":perfetto_protos_perfetto_trace_ftrace_lite_gen",
2474 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
2475 ":perfetto_protos_perfetto_trace_lite_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002476 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002477 ":perfetto_protos_perfetto_trace_power_lite_gen",
2478 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +00002479 ":perfetto_protos_perfetto_trace_profiling_lite_gen",
2480 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002481 ":perfetto_protos_perfetto_trace_ps_lite_gen",
2482 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002483 ":perfetto_protos_perfetto_trace_sys_stats_lite_gen",
2484 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07002485 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002486 ":perfetto_protos_perfetto_trace_zero_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002487 ":perfetto_src_ipc_test_messages_gen",
2488 ":perfetto_src_ipc_wire_protocol_gen",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002489 ":perfetto_src_perfetto_cmd_protos_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002490 ":perfetto_src_protozero_testing_messages_lite_gen",
2491 ":perfetto_src_protozero_testing_messages_zero_gen",
Primiano Tuccide82dae2018-06-04 16:17:49 +02002492 ":perfetto_src_traced_probes_ftrace_test_messages_lite_gen",
2493 ":perfetto_src_traced_probes_ftrace_test_messages_zero_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002494 "src/base/android_task_runner.cc",
Primiano Tucci9f7189c2018-10-05 00:42:12 +01002495 "src/base/event.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +00002496 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +01002497 "src/base/metatrace.cc",
Lalit Magantif3e5b072018-11-19 21:51:47 +00002498 "src/base/optional_unittest.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +01002499 "src/base/paged_memory.cc",
2500 "src/base/paged_memory_unittest.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +01002501 "src/base/pipe.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002502 "src/base/scoped_file_unittest.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +00002503 "src/base/string_splitter.cc",
2504 "src/base/string_splitter_unittest.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +01002505 "src/base/string_utils.cc",
2506 "src/base/string_utils_unittest.cc",
Primiano Tucci2da5d2e2018-08-10 14:23:31 +01002507 "src/base/string_view_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002508 "src/base/task_runner_unittest.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +00002509 "src/base/temp_file.cc",
2510 "src/base/temp_file_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002511 "src/base/test/test_task_runner.cc",
Hector Dearman7f71d0e2018-08-09 11:26:10 +01002512 "src/base/test/utils.cc",
Primiano Tuccibbaa58c2017-12-20 13:48:20 +01002513 "src/base/test/vm_test_utils.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002514 "src/base/thread_checker.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002515 "src/base/thread_checker_unittest.cc",
Florian Mayer75905df2018-05-08 17:44:08 +01002516 "src/base/time.cc",
Primiano Tucci8934c6c2018-03-15 11:39:27 +00002517 "src/base/time_unittest.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +01002518 "src/base/unix_socket.cc",
2519 "src/base/unix_socket_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002520 "src/base/unix_task_runner.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002521 "src/base/utils_unittest.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01002522 "src/base/virtual_destructors.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +01002523 "src/base/watchdog_posix.cc",
Florian Mayerb4334002018-02-01 11:10:36 +00002524 "src/base/watchdog_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002525 "src/base/weak_ptr_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002526 "src/ipc/buffered_frame_deserializer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002527 "src/ipc/buffered_frame_deserializer_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002528 "src/ipc/client_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002529 "src/ipc/client_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002530 "src/ipc/deferred.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002531 "src/ipc/deferred_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002532 "src/ipc/host_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002533 "src/ipc/host_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002534 "src/ipc/service_proxy.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002535 "src/ipc/test/ipc_integrationtest.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01002536 "src/ipc/virtual_destructors.cc",
Hector Dearman5edeafc2018-11-29 13:27:33 +00002537 "src/perfetto_cmd/config.cc",
2538 "src/perfetto_cmd/config_unittest.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +00002539 "src/perfetto_cmd/pbtxt_to_pb.cc",
2540 "src/perfetto_cmd/pbtxt_to_pb_unittest.cc",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002541 "src/perfetto_cmd/perfetto_cmd.cc",
2542 "src/perfetto_cmd/rate_limiter.cc",
2543 "src/perfetto_cmd/rate_limiter_unittest.cc",
Florian Mayer824274d2018-09-17 11:33:45 +01002544 "src/profiling/memory/bookkeeping.cc",
2545 "src/profiling/memory/bookkeeping_unittest.cc",
Florian Mayerb85a9382018-09-27 13:59:01 +01002546 "src/profiling/memory/bounded_queue_unittest.cc",
Florian Mayer824274d2018-09-17 11:33:45 +01002547 "src/profiling/memory/client.cc",
2548 "src/profiling/memory/client_unittest.cc",
Florian Mayerb85a9382018-09-27 13:59:01 +01002549 "src/profiling/memory/heapprofd_integrationtest.cc",
Florian Mayere9f46862018-11-07 20:20:37 +00002550 "src/profiling/memory/heapprofd_producer.cc",
Florian Mayer4afdd642018-11-13 11:11:04 +00002551 "src/profiling/memory/interner_unittest.cc",
Florian Mayer745aaf22018-12-13 14:53:07 +00002552 "src/profiling/memory/proc_utils.cc",
Florian Mayer895efd92018-12-04 19:21:22 +00002553 "src/profiling/memory/process_matcher.cc",
2554 "src/profiling/memory/process_matcher_unittest.cc",
Florian Mayera2fae262018-08-31 12:10:01 -07002555 "src/profiling/memory/record_reader.cc",
2556 "src/profiling/memory/record_reader_unittest.cc",
Florian Mayerc6be21f2018-10-02 11:33:59 +01002557 "src/profiling/memory/sampler.cc",
2558 "src/profiling/memory/sampler_unittest.cc",
Florian Mayera2fae262018-08-31 12:10:01 -07002559 "src/profiling/memory/socket_listener.cc",
2560 "src/profiling/memory/socket_listener_unittest.cc",
Florian Mayer78cb5622018-11-27 17:17:10 +00002561 "src/profiling/memory/system_property.cc",
2562 "src/profiling/memory/system_property_unittest.cc",
Florian Mayera2fae262018-08-31 12:10:01 -07002563 "src/profiling/memory/unwinding.cc",
2564 "src/profiling/memory/unwinding_unittest.cc",
Florian Mayerb85a9382018-09-27 13:59:01 +01002565 "src/profiling/memory/wire_protocol.cc",
Florian Mayer7ad12752018-10-02 16:48:44 +01002566 "src/profiling/memory/wire_protocol_unittest.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +00002567 "src/protozero/message.cc",
2568 "src/protozero/message_handle.cc",
2569 "src/protozero/message_handle_unittest.cc",
2570 "src/protozero/message_unittest.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +01002571 "src/protozero/proto_decoder.cc",
2572 "src/protozero/proto_decoder_unittest.cc",
Primiano Tuccieb117352018-07-16 10:53:59 +01002573 "src/protozero/proto_field_descriptor.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002574 "src/protozero/proto_utils_unittest.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +00002575 "src/protozero/scattered_stream_memory_delegate.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +01002576 "src/protozero/scattered_stream_null_delegate.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002577 "src/protozero/scattered_stream_writer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002578 "src/protozero/scattered_stream_writer_unittest.cc",
2579 "src/protozero/test/fake_scattered_buffer.cc",
2580 "src/protozero/test/protozero_conformance_unittest.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002581 "src/traced/probes/android_log/android_log_data_source.cc",
2582 "src/traced/probes/android_log/android_log_data_source_unittest.cc",
Florian Mayer6f9c3422018-03-29 10:37:41 +01002583 "src/traced/probes/filesystem/file_scanner.cc",
Florian Mayeraef0c532018-04-04 10:34:08 +01002584 "src/traced/probes/filesystem/file_scanner_unittest.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +00002585 "src/traced/probes/filesystem/fs_mount.cc",
2586 "src/traced/probes/filesystem/fs_mount_unittest.cc",
Anna Zappone2a6f9042018-03-14 13:26:07 +00002587 "src/traced/probes/filesystem/inode_file_data_source.cc",
Florian Mayerdd889142018-04-05 16:19:37 +01002588 "src/traced/probes/filesystem/inode_file_data_source_unittest.cc",
Florian Mayer8a56b702018-03-14 11:01:17 +00002589 "src/traced/probes/filesystem/lru_inode_cache.cc",
2590 "src/traced/probes/filesystem/lru_inode_cache_unittest.cc",
Florian Mayerb21f4fb2018-03-22 15:24:56 +00002591 "src/traced/probes/filesystem/prefix_finder.cc",
2592 "src/traced/probes/filesystem/prefix_finder_unittest.cc",
2593 "src/traced/probes/filesystem/range_tree.cc",
2594 "src/traced/probes/filesystem/range_tree_unittest.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02002595 "src/traced/probes/ftrace/atrace_wrapper.cc",
2596 "src/traced/probes/ftrace/cpu_reader.cc",
2597 "src/traced/probes/ftrace/cpu_reader_unittest.cc",
2598 "src/traced/probes/ftrace/cpu_stats_parser.cc",
2599 "src/traced/probes/ftrace/cpu_stats_parser_unittest.cc",
2600 "src/traced/probes/ftrace/event_info.cc",
2601 "src/traced/probes/ftrace/event_info_constants.cc",
2602 "src/traced/probes/ftrace/event_info_unittest.cc",
2603 "src/traced/probes/ftrace/format_parser.cc",
2604 "src/traced/probes/ftrace/format_parser_unittest.cc",
2605 "src/traced/probes/ftrace/ftrace_config.cc",
2606 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
2607 "src/traced/probes/ftrace/ftrace_config_muxer_unittest.cc",
2608 "src/traced/probes/ftrace/ftrace_config_unittest.cc",
2609 "src/traced/probes/ftrace/ftrace_controller.cc",
2610 "src/traced/probes/ftrace/ftrace_controller_unittest.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +01002611 "src/traced/probes/ftrace/ftrace_data_source.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +01002612 "src/traced/probes/ftrace/ftrace_metadata.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02002613 "src/traced/probes/ftrace/ftrace_procfs.cc",
2614 "src/traced/probes/ftrace/ftrace_procfs_unittest.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +01002615 "src/traced/probes/ftrace/ftrace_stats.cc",
Primiano Tuccic20ee512018-11-29 16:40:55 +00002616 "src/traced/probes/ftrace/page_pool.cc",
2617 "src/traced/probes/ftrace/page_pool_unittest.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02002618 "src/traced/probes/ftrace/proto_translation_table.cc",
2619 "src/traced/probes/ftrace/proto_translation_table_unittest.cc",
2620 "src/traced/probes/ftrace/test/cpu_reader_support.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002621 "src/traced/probes/power/android_power_data_source.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +01002622 "src/traced/probes/probes_data_source.cc",
Hector Dearmanebf07c72018-03-13 10:31:05 +00002623 "src/traced/probes/probes_producer.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +01002624 "src/traced/probes/ps/process_stats_data_source.cc",
2625 "src/traced/probes/ps/process_stats_data_source_unittest.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002626 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
2627 "src/traced/probes/sys_stats/sys_stats_data_source_unittest.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002628 "src/tracing/core/android_log_config.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002629 "src/tracing/core/android_power_config.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08002630 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +00002631 "src/tracing/core/commit_data_request.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002632 "src/tracing/core/data_source_config.cc",
2633 "src/tracing/core/data_source_descriptor.cc",
Hector Dearmana89cc572018-02-23 12:02:58 +00002634 "src/tracing/core/ftrace_config.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +00002635 "src/tracing/core/heapprofd_config.cc",
Primiano Tucci422caff2017-12-18 23:58:52 +01002636 "src/tracing/core/id_allocator.cc",
2637 "src/tracing/core/id_allocator_unittest.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +01002638 "src/tracing/core/inode_file_config.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +01002639 "src/tracing/core/null_trace_writer.cc",
2640 "src/tracing/core/null_trace_writer_unittest.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +00002641 "src/tracing/core/packet_stream_validator.cc",
2642 "src/tracing/core/packet_stream_validator_unittest.cc",
Primiano Tucci09db8272018-03-08 17:47:47 +00002643 "src/tracing/core/patch_list_unittest.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01002644 "src/tracing/core/process_stats_config.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002645 "src/tracing/core/service_impl_unittest.cc",
Primiano Tuccif5d6d532017-12-19 00:59:34 +01002646 "src/tracing/core/shared_memory_abi.cc",
2647 "src/tracing/core/shared_memory_abi_unittest.cc",
Oystein Eftevaag6d0bc7f2018-01-13 12:21:55 -08002648 "src/tracing/core/shared_memory_arbiter_impl.cc",
2649 "src/tracing/core/shared_memory_arbiter_impl_unittest.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +00002650 "src/tracing/core/sliced_protobuf_input_stream.cc",
2651 "src/tracing/core/sliced_protobuf_input_stream_unittest.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002652 "src/tracing/core/sys_stats_config.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +00002653 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +00002654 "src/tracing/core/trace_buffer.cc",
2655 "src/tracing/core/trace_buffer_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002656 "src/tracing/core/trace_config.cc",
2657 "src/tracing/core/trace_packet.cc",
2658 "src/tracing/core/trace_packet_unittest.cc",
Isabelle Taylor16848562018-04-12 13:30:58 +01002659 "src/tracing/core/trace_writer_for_testing.cc",
Primiano Tuccid7b59c42017-12-19 01:43:07 +01002660 "src/tracing/core/trace_writer_impl.cc",
2661 "src/tracing/core/trace_writer_impl_unittest.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +01002662 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01002663 "src/tracing/core/virtual_destructors.cc",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002664 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
Florian Mayerc29e0d32018-04-04 15:55:46 +01002665 "src/tracing/ipc/default_socket.cc",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002666 "src/tracing/ipc/posix_shared_memory.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002667 "src/tracing/ipc/posix_shared_memory_unittest.cc",
Primiano Tuccid7b59c42017-12-19 01:43:07 +01002668 "src/tracing/test/aligned_buffer_test.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +00002669 "src/tracing/test/fake_packet.cc",
Primiano Tuccidca727d2018-04-04 11:31:55 +02002670 "src/tracing/test/mock_consumer.cc",
2671 "src/tracing/test/mock_producer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002672 "src/tracing/test/test_shared_memory.cc",
Primiano Tucci53589332017-12-19 11:31:13 +01002673 "src/tracing/test/tracing_integration_test.cc",
Isabelle Taylorcfc8eba2018-12-16 21:02:56 +00002674 "tools/ftrace_proto_gen/ftrace_descriptor_gen.cc",
Hector Dearman39071ba2018-01-16 13:58:50 +00002675 "tools/ftrace_proto_gen/ftrace_proto_gen.cc",
2676 "tools/ftrace_proto_gen/ftrace_proto_gen_unittest.cc",
Isabelle Tayloraa45fe02018-12-16 21:02:20 +00002677 "tools/ftrace_proto_gen/proto_gen_utils.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002678 "tools/sanitizers_unittests/sanitizers_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00002679 ],
2680 shared_libs: [
2681 "libandroid",
Florian Mayera2fae262018-08-31 12:10:01 -07002682 "libbase",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002683 "liblog",
Florian Mayera2fae262018-08-31 12:10:01 -07002684 "libprocinfo",
Florian Mayer7c9e3b22018-04-26 11:55:15 +01002685 "libprotobuf-cpp-full",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002686 "libprotobuf-cpp-lite",
Florian Mayera2fae262018-08-31 12:10:01 -07002687 "libunwindstack",
Sami Kyostila2357b032017-12-06 18:38:17 +00002688 ],
2689 static_libs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +00002690 "libgmock",
Hector Dearman3e712a02017-12-19 16:39:59 +00002691 "libgtest_prod",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002692 "perfetto_src_tracing_ipc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002693 ],
2694 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002695 "perfetto_protos_perfetto_common_lite_gen_headers",
2696 "perfetto_protos_perfetto_common_zero_gen_headers",
2697 "perfetto_protos_perfetto_config_lite_gen_headers",
2698 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002699 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002700 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
2701 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08002702 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
2703 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00002704 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
2705 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002706 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
2707 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
2708 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002709 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002710 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
2711 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00002712 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
2713 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002714 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
2715 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002716 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
2717 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07002718 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002719 "perfetto_protos_perfetto_trace_zero_gen_headers",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002720 "perfetto_src_ipc_test_messages_gen_headers",
2721 "perfetto_src_ipc_wire_protocol_gen_headers",
Hector Dearman86cfbe12018-03-22 11:58:42 +00002722 "perfetto_src_perfetto_cmd_protos_gen_headers",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002723 "perfetto_src_protozero_testing_messages_lite_gen_headers",
2724 "perfetto_src_protozero_testing_messages_zero_gen_headers",
Primiano Tuccide82dae2018-06-04 16:17:49 +02002725 "perfetto_src_traced_probes_ftrace_test_messages_lite_gen_headers",
2726 "perfetto_src_traced_probes_ftrace_test_messages_zero_gen_headers",
Sami Kyostilab27619f2017-12-13 19:22:16 +00002727 ],
2728 defaults: [
2729 "perfetto_defaults",
Sami Kyostila2357b032017-12-06 18:38:17 +00002730 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +00002731 cflags: [
2732 "-DGOOGLE_PROTOBUF_NO_RTTI",
2733 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
2734 ],
Logan Chien9bfaaf92018-02-13 18:49:24 +08002735 product_variables: {
2736 pdk: {
2737 enabled: false,
2738 },
2739 },
Sami Kyostila2357b032017-12-06 18:38:17 +00002740}
Primiano Tucci4e49c022017-12-21 18:22:44 +01002741
Primiano Tucci21c19d82018-03-29 12:35:08 +01002742// GN target: //:trace_to_text
2743cc_binary_host {
2744 name: "trace_to_text",
2745 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002746 ":perfetto_protos_perfetto_common_lite_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002747 ":perfetto_protos_perfetto_config_lite_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002748 ":perfetto_protos_perfetto_trace_android_lite_gen",
Primiano Tucci21c19d82018-03-29 12:35:08 +01002749 ":perfetto_protos_perfetto_trace_chrome_lite_gen",
2750 ":perfetto_protos_perfetto_trace_filesystem_lite_gen",
2751 ":perfetto_protos_perfetto_trace_ftrace_lite_gen",
2752 ":perfetto_protos_perfetto_trace_lite_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002753 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002754 ":perfetto_protos_perfetto_trace_power_lite_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +00002755 ":perfetto_protos_perfetto_trace_profiling_lite_gen",
Primiano Tucci21c19d82018-03-29 12:35:08 +01002756 ":perfetto_protos_perfetto_trace_ps_lite_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002757 ":perfetto_protos_perfetto_trace_sys_stats_lite_gen",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00002758 ":perfetto_protos_third_party_pprof_lite_gen",
2759 "src/base/event.cc",
2760 "src/base/file_utils.cc",
2761 "src/base/metatrace.cc",
2762 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +01002763 "src/base/pipe.cc",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00002764 "src/base/string_splitter.cc",
2765 "src/base/string_utils.cc",
2766 "src/base/temp_file.cc",
2767 "src/base/thread_checker.cc",
2768 "src/base/time.cc",
2769 "src/base/unix_task_runner.cc",
2770 "src/base/virtual_destructors.cc",
2771 "src/base/watchdog_posix.cc",
Primiano Tucci21c19d82018-03-29 12:35:08 +01002772 "tools/trace_to_text/ftrace_event_formatter.cc",
2773 "tools/trace_to_text/ftrace_inode_handler.cc",
2774 "tools/trace_to_text/main.cc",
Primiano Tucci20dc8f72018-10-23 12:28:29 +01002775 "tools/trace_to_text/proto_full_utils.cc",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00002776 "tools/trace_to_text/trace_to_profile.cc",
Primiano Tucci20dc8f72018-10-23 12:28:29 +01002777 "tools/trace_to_text/trace_to_systrace.cc",
2778 "tools/trace_to_text/trace_to_text.cc",
2779 "tools/trace_to_text/utils.cc",
Primiano Tucci21c19d82018-03-29 12:35:08 +01002780 ],
2781 shared_libs: [
2782 "liblog",
2783 "libprotobuf-cpp-full",
2784 "libprotobuf-cpp-lite",
2785 ],
Eric Seckler57c89d92018-10-26 15:11:55 +01002786 static_libs: [
2787 "libgtest_prod",
2788 ],
Primiano Tucci21c19d82018-03-29 12:35:08 +01002789 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002790 "perfetto_protos_perfetto_common_lite_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002791 "perfetto_protos_perfetto_config_lite_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00002792 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01002793 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
2794 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
2795 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
2796 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002797 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002798 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00002799 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01002800 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002801 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00002802 "perfetto_protos_third_party_pprof_lite_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01002803 ],
2804 defaults: [
2805 "perfetto_defaults",
2806 ],
2807 cflags: [
2808 "-DGOOGLE_PROTOBUF_NO_RTTI",
2809 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
2810 ],
2811}
2812
Primiano Tucci4e49c022017-12-21 18:22:44 +01002813// GN target: //:traced
2814cc_binary {
2815 name: "traced",
2816 srcs: [
Primiano Tucci6067e732018-01-08 16:19:40 +00002817 "src/traced/service/main.cc",
Primiano Tucci4e49c022017-12-21 18:22:44 +01002818 ],
2819 shared_libs: [
Primiano Tucci4e49c022017-12-21 18:22:44 +01002820 "liblog",
Primiano Tuccibdb2a592018-10-11 15:59:29 +01002821 "libperfetto",
Primiano Tucci4e49c022017-12-21 18:22:44 +01002822 ],
Primiano Tucci5a304532018-01-09 14:15:43 +00002823 init_rc: [
2824 "perfetto.rc",
2825 ],
Primiano Tucci6067e732018-01-08 16:19:40 +00002826 defaults: [
2827 "perfetto_defaults",
Primiano Tucci4e49c022017-12-21 18:22:44 +01002828 ],
Primiano Tucci6067e732018-01-08 16:19:40 +00002829}
2830
2831// GN target: //:traced_probes
2832cc_binary {
2833 name: "traced_probes",
2834 srcs: [
2835 "src/traced/probes/main.cc",
2836 ],
2837 shared_libs: [
Primiano Tucci6067e732018-01-08 16:19:40 +00002838 "liblog",
Primiano Tuccibdb2a592018-10-11 15:59:29 +01002839 "libperfetto",
Primiano Tucci4e49c022017-12-21 18:22:44 +01002840 ],
2841 defaults: [
2842 "perfetto_defaults",
2843 ],
Primiano Tucci676f0cc2018-12-03 20:03:26 +01002844 required: [
2845 "libperfetto_android_internal",
2846 ],
Primiano Tucci4e49c022017-12-21 18:22:44 +01002847}
Lalit Maganti83e712a2018-02-05 15:48:00 +00002848
2849// These targets are appended to the autogenerated Android.bp by tools/gen_android_bp.
Lalit Magantia88807d2018-03-05 18:21:38 +00002850cc_library_static {
2851 name: "perfetto_cts_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002852 srcs: [
2853 "src/base/android_task_runner.cc",
2854 "src/base/test/test_task_runner.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02002855 "src/traced/probes/ftrace/cpu_reader.cc",
2856 "src/traced/probes/ftrace/event_info.cc",
2857 "src/traced/probes/ftrace/format_parser.cc",
2858 "src/traced/probes/ftrace/ftrace_controller.cc",
2859 "src/traced/probes/ftrace/ftrace_procfs.cc",
2860 "src/traced/probes/ftrace/proto_translation_table.cc",
Isabelle Taylord404ea12018-02-19 17:28:01 +00002861 "src/traced/probes/probes_producer.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002862 "test/end_to_end_integrationtest.cc",
Lalit Magantic4c3ceb2018-03-29 20:38:13 +01002863 "test/fake_producer.cc",
2864 "test/task_runner_thread.cc",
2865 "test/test_helper.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002866 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00002867 export_include_dirs: [
2868 ".",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002869 ],
2870 shared_libs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +00002871 "libprotobuf-cpp-lite",
2872 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00002873 static_libs: [
Lalit Maganti61681882018-03-14 15:29:01 +00002874 "libgtest",
Lalit Magantia88807d2018-03-05 18:21:38 +00002875 "perfetto_src_tracing_ipc",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002876 "perfetto_trace_protos",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002877 ],
Lalit Magantib34c7a22018-03-07 11:53:20 +00002878 cflags: [
2879 "-DPERFETTO_BUILD_WITH_ANDROID",
2880 ],
Lalit Maganti83e712a2018-02-05 15:48:00 +00002881}
2882
Lalit Magantia88807d2018-03-05 18:21:38 +00002883cc_library_static {
2884 name: "perfetto_cts_jni_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002885 srcs: [
2886 "src/base/android_task_runner.cc",
2887 "src/base/test/test_task_runner.cc",
2888 "test/fake_producer.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002889 ],
2890 shared_libs: [
Lalit Magantia88807d2018-03-05 18:21:38 +00002891 "libprotobuf-cpp-lite",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002892 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00002893 export_include_dirs: [
2894 ".",
Lalit Maganti83e712a2018-02-05 15:48:00 +00002895 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00002896 static_libs: [
Lalit Maganti61681882018-03-14 15:29:01 +00002897 "libgtest",
Lalit Magantia88807d2018-03-05 18:21:38 +00002898 "perfetto_src_tracing_ipc",
2899 ],
Lalit Magantib34c7a22018-03-07 11:53:20 +00002900 cflags: [
2901 "-DPERFETTO_BUILD_WITH_ANDROID",
2902 ],
Lalit Maganti6820cb62018-10-05 13:34:22 +01002903}
2904
Lalit Magantif5d666d2018-10-23 14:23:24 +01002905java_library_host {
2906 name: "perfetto_config-full",
Lalit Maganti6820cb62018-10-05 13:34:22 +01002907 proto: {
Lalit Magantif5d666d2018-10-23 14:23:24 +01002908 type: "full",
Lalit Maganti6820cb62018-10-05 13:34:22 +01002909 },
2910 srcs: [
2911 "protos/perfetto/config/perfetto_config.proto",
2912 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00002913}