blob: 15e84a4064cd1c194db757e5b14d6f94d7e0eb38 [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
Lalit Maganti26f69bd2019-04-29 18:23:47 +010017genrule {
18 name: "gen_merged_sql_metrics",
19 srcs: [
Silvia Vinyesb39c77f2019-06-04 10:46:12 +010020 "src/trace_processor/metrics/android/android_batt.sql",
Silvia Vinyes2e6a7312019-06-04 11:15:59 +010021 "src/trace_processor/metrics/android/android_cpu.sql",
22 "src/trace_processor/metrics/android/android_cpu_agg.sql",
Ioannis Ilkosdb8b1cb2019-06-25 17:05:32 +010023 "src/trace_processor/metrics/android/android_ion.sql",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +010024 "src/trace_processor/metrics/android/android_lmk.sql",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010025 "src/trace_processor/metrics/android/android_mem.sql",
Lalit Magantia316d6e2019-07-09 19:01:01 +010026 "src/trace_processor/metrics/android/android_mem_unagg.sql",
Ioannis Ilkosf1835e32019-07-11 14:11:48 +010027 "src/trace_processor/metrics/android/android_package_list.sql",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +010028 "src/trace_processor/metrics/android/android_powrails.sql",
Ioannis Ilkos96bec012019-06-27 15:21:57 +010029 "src/trace_processor/metrics/android/android_process_growth.sql",
Ioannis Ilkos20d5e8b2019-05-16 15:43:26 +010030 "src/trace_processor/metrics/android/android_startup.sql",
Ioannis Ilkos1cbd2282019-05-29 23:41:57 +010031 "src/trace_processor/metrics/android/android_startup_cpu.sql",
Ioannis Ilkos20d5e8b2019-05-16 15:43:26 +010032 "src/trace_processor/metrics/android/android_startup_launches.sql",
33 "src/trace_processor/metrics/android/android_task_state.sql",
Ioannis Ilkos05e211f2019-05-28 15:21:00 +010034 "src/trace_processor/metrics/android/heap_profile.sql",
Ioannis Ilkos79b511c2019-07-09 14:45:07 +010035 "src/trace_processor/metrics/android/mem_stats_priority_breakdown.sql",
Ioannis Ilkos96bec012019-06-27 15:21:57 +010036 "src/trace_processor/metrics/android/process_mem.sql",
Lalit Magantia316d6e2019-07-09 19:01:01 +010037 "src/trace_processor/metrics/android/process_unagg_mem_view.sql",
Ioannis Ilkos96bec012019-06-27 15:21:57 +010038 "src/trace_processor/metrics/android/span_view_stats.sql",
39 "src/trace_processor/metrics/android/upid_span_view.sql",
Ioannis Ilkos5e79b8a2019-05-23 18:09:54 +010040 "src/trace_processor/metrics/error_statistics.sql",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010041 ],
Lalit Maganti697cc482019-05-01 14:39:11 +010042 cmd: "$(location tools/gen_merged_sql_metrics.py) --cpp_out=$(out) $(in)",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010043 out: [
44 "src/trace_processor/metrics/sql_metrics.h",
45 ],
46 tool_files: [
Lalit Maganti697cc482019-05-01 14:39:11 +010047 "tools/gen_merged_sql_metrics.py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010048 ],
49}
50
Florian Mayerb6a921f2018-10-18 18:55:23 +010051// GN target: //:heapprofd
52cc_binary {
53 name: "heapprofd",
54 srcs: [
Florian Mayer8e7eac42018-11-05 16:04:11 +000055 ":perfetto_protos_perfetto_common_lite_gen",
56 ":perfetto_protos_perfetto_common_zero_gen",
57 ":perfetto_protos_perfetto_config_lite_gen",
58 ":perfetto_protos_perfetto_config_zero_gen",
59 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +000060 ":perfetto_protos_perfetto_trace_android_zero_gen",
Florian Mayer8e7eac42018-11-05 16:04:11 +000061 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
62 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
63 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -070064 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +000065 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
Florian Mayer8e7eac42018-11-05 16:04:11 +000066 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +010067 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +010068 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +000069 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Florian Mayer8e7eac42018-11-05 16:04:11 +000070 ":perfetto_protos_perfetto_trace_ps_zero_gen",
71 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +000072 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
Florian Mayer8e7eac42018-11-05 16:04:11 +000073 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
74 ":perfetto_protos_perfetto_trace_zero_gen",
75 ":perfetto_src_ipc_wire_protocol_gen",
Sami Kyostila389861f2019-07-09 20:52:43 +010076 "src/base/event_fd.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010077 "src/base/file_utils.cc",
78 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +010079 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +010080 "src/base/pipe.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010081 "src/base/string_splitter.cc",
82 "src/base/string_utils.cc",
Primiano Tucci60c4a2b2019-03-02 17:11:18 +000083 "src/base/string_view.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010084 "src/base/temp_file.cc",
85 "src/base/thread_checker.cc",
Ryan Savitski29885792019-03-14 12:10:13 +000086 "src/base/thread_task_runner.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010087 "src/base/time.cc",
88 "src/base/unix_socket.cc",
89 "src/base/unix_task_runner.cc",
90 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +010091 "src/base/waitable_event.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010092 "src/base/watchdog_posix.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +000093 "src/ipc/buffered_frame_deserializer.cc",
94 "src/ipc/client_impl.cc",
95 "src/ipc/deferred.cc",
96 "src/ipc/host_impl.cc",
97 "src/ipc/service_proxy.cc",
98 "src/ipc/virtual_destructors.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +010099 "src/profiling/memory/bookkeeping.cc",
Florian Mayer7791fce2019-05-16 18:04:20 +0100100 "src/profiling/memory/bookkeeping_dump.cc",
Primiano Tucci0f2f3b42019-05-21 19:37:01 +0100101 "src/profiling/memory/heapprofd_config.cc",
Florian Mayere9f46862018-11-07 20:20:37 +0000102 "src/profiling/memory/heapprofd_producer.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100103 "src/profiling/memory/main.cc",
Florian Mayer7142c7c2019-05-20 18:11:41 +0100104 "src/profiling/memory/page_idle_checker.cc",
Florian Mayer745aaf22018-12-13 14:53:07 +0000105 "src/profiling/memory/proc_utils.cc",
Florian Mayer51950592019-03-06 20:05:15 +0000106 "src/profiling/memory/scoped_spinlock.cc",
107 "src/profiling/memory/shared_ring_buffer.cc",
Florian Mayer78cb5622018-11-27 17:17:10 +0000108 "src/profiling/memory/system_property.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100109 "src/profiling/memory/unwinding.cc",
Florian Mayer7142c7c2019-05-20 18:11:41 +0100110 "src/profiling/memory/utils.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100111 "src/profiling/memory/wire_protocol.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000112 "src/protozero/message.cc",
113 "src/protozero/message_handle.cc",
114 "src/protozero/proto_decoder.cc",
Eric Seckler76311202019-01-07 12:20:25 +0000115 "src/protozero/scattered_heap_buffer.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000116 "src/protozero/scattered_stream_null_delegate.cc",
117 "src/protozero/scattered_stream_writer.cc",
118 "src/tracing/core/chrome_config.cc",
119 "src/tracing/core/commit_data_request.cc",
120 "src/tracing/core/data_source_config.cc",
121 "src/tracing/core/data_source_descriptor.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000122 "src/tracing/core/id_allocator.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100123 "src/tracing/core/metatrace_writer.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000124 "src/tracing/core/null_trace_writer.cc",
Eric Seckler7b0c9452019-03-18 13:14:36 +0000125 "src/tracing/core/observable_events.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000126 "src/tracing/core/packet_stream_validator.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000127 "src/tracing/core/shared_memory_abi.cc",
128 "src/tracing/core/shared_memory_arbiter_impl.cc",
129 "src/tracing/core/sliced_protobuf_input_stream.cc",
Eric Secklerc65693d2019-01-11 15:12:48 +0000130 "src/tracing/core/startup_trace_writer.cc",
Eric Seckler42777e52019-01-23 10:13:22 +0000131 "src/tracing/core/startup_trace_writer_registry.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000132 "src/tracing/core/test_config.cc",
133 "src/tracing/core/trace_buffer.cc",
134 "src/tracing/core/trace_config.cc",
135 "src/tracing/core/trace_packet.cc",
Eric Secklereaf29ed2019-01-23 09:53:55 +0000136 "src/tracing/core/trace_stats.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000137 "src/tracing/core/trace_writer_impl.cc",
138 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100139 "src/tracing/core/tracing_service_state.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000140 "src/tracing/core/virtual_destructors.cc",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100141 "src/tracing/trace_writer_base.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100142 ],
143 shared_libs: [
144 "libbase",
145 "liblog",
146 "libprocinfo",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000147 "libprotobuf-cpp-lite",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100148 "libunwindstack",
149 ],
Eric Seckler57c89d92018-10-26 15:11:55 +0100150 static_libs: [
Florian Mayer8e7eac42018-11-05 16:04:11 +0000151 "perfetto_src_tracing_ipc",
Eric Seckler57c89d92018-10-26 15:11:55 +0100152 ],
Florian Mayer7a5d83b2018-10-18 18:57:02 +0100153 init_rc: [
154 "heapprofd.rc",
155 ],
Florian Mayer8e7eac42018-11-05 16:04:11 +0000156 generated_headers: [
157 "perfetto_protos_perfetto_common_lite_gen_headers",
158 "perfetto_protos_perfetto_common_zero_gen_headers",
159 "perfetto_protos_perfetto_config_lite_gen_headers",
160 "perfetto_protos_perfetto_config_zero_gen_headers",
161 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000162 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000163 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
164 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
165 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700166 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +0000167 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000168 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100169 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100170 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +0000171 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000172 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
173 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +0000174 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000175 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
176 "perfetto_protos_perfetto_trace_zero_gen_headers",
177 "perfetto_src_ipc_wire_protocol_gen_headers",
178 ],
Florian Mayerb6a921f2018-10-18 18:55:23 +0100179 defaults: [
180 "perfetto_defaults",
181 ],
Florian Mayer8e7eac42018-11-05 16:04:11 +0000182 cflags: [
183 "-DGOOGLE_PROTOBUF_NO_RTTI",
184 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Primiano Tucci7c7f5f52019-01-15 21:47:04 +0000185 "-DPERFETTO_BUILD_WITH_ANDROID",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000186 ],
Florian Mayerb6a921f2018-10-18 18:55:23 +0100187}
188
189// GN target: //:heapprofd_client
190cc_library_shared {
191 name: "heapprofd_client",
192 srcs: [
Sami Kyostila389861f2019-07-09 20:52:43 +0100193 "src/base/event_fd.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100194 "src/base/file_utils.cc",
195 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +0100196 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +0100197 "src/base/pipe.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100198 "src/base/string_splitter.cc",
199 "src/base/string_utils.cc",
Primiano Tucci60c4a2b2019-03-02 17:11:18 +0000200 "src/base/string_view.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100201 "src/base/temp_file.cc",
202 "src/base/thread_checker.cc",
Ryan Savitski29885792019-03-14 12:10:13 +0000203 "src/base/thread_task_runner.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100204 "src/base/time.cc",
205 "src/base/unix_socket.cc",
206 "src/base/unix_task_runner.cc",
207 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100208 "src/base/waitable_event.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100209 "src/base/watchdog_posix.cc",
210 "src/profiling/memory/client.cc",
211 "src/profiling/memory/malloc_hooks.cc",
Ryan Savitski10c19fb2019-01-22 14:44:15 +0000212 "src/profiling/memory/proc_utils.cc",
Ryan Savitskia502bde2019-02-26 21:34:03 +0000213 "src/profiling/memory/scoped_spinlock.cc",
Florian Mayer51950592019-03-06 20:05:15 +0000214 "src/profiling/memory/shared_ring_buffer.cc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100215 "src/profiling/memory/wire_protocol.cc",
216 ],
217 shared_libs: [
218 "libbase",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100219 "libprocinfo",
220 "libunwindstack",
221 ],
Eric Seckler57c89d92018-10-26 15:11:55 +0100222 static_libs: [
Ryan Savitskie65beca2019-01-29 18:29:13 +0000223 "libasync_safe",
Eric Seckler57c89d92018-10-26 15:11:55 +0100224 ],
Florian Mayerb6a921f2018-10-18 18:55:23 +0100225 defaults: [
226 "perfetto_defaults",
227 ],
Primiano Tucci7c7f5f52019-01-15 21:47:04 +0000228 cflags: [
Ryan Savitskie65beca2019-01-29 18:29:13 +0000229 "-DPERFETTO_ANDROID_ASYNC_SAFE_LOG",
Primiano Tucci7c7f5f52019-01-15 21:47:04 +0000230 "-DPERFETTO_BUILD_WITH_ANDROID",
231 ],
Florian Mayerb6a921f2018-10-18 18:55:23 +0100232 include_dirs: [
233 "bionic/libc",
234 ],
235}
236
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100237// GN target: //:libperfetto
Primiano Tucci6067e732018-01-08 16:19:40 +0000238cc_library_shared {
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100239 name: "libperfetto",
Primiano Tucci6067e732018-01-08 16:19:40 +0000240 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100241 ":perfetto_protos_perfetto_common_lite_gen",
242 ":perfetto_protos_perfetto_common_zero_gen",
243 ":perfetto_protos_perfetto_config_lite_gen",
244 ":perfetto_protos_perfetto_config_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000245 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000246 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800247 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000248 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000249 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700250 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +0000251 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200252 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100253 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100254 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +0000255 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000256 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100257 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +0000258 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700259 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000260 ":perfetto_protos_perfetto_trace_zero_gen",
Primiano Tucci6067e732018-01-08 16:19:40 +0000261 ":perfetto_src_ipc_wire_protocol_gen",
Sami Kyostila389861f2019-07-09 20:52:43 +0100262 "src/base/event_fd.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +0000263 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +0100264 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +0100265 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +0100266 "src/base/pipe.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +0000267 "src/base/string_splitter.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +0100268 "src/base/string_utils.cc",
Primiano Tucci60c4a2b2019-03-02 17:11:18 +0000269 "src/base/string_view.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +0000270 "src/base/temp_file.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000271 "src/base/thread_checker.cc",
Ryan Savitski29885792019-03-14 12:10:13 +0000272 "src/base/thread_task_runner.cc",
Florian Mayer75905df2018-05-08 17:44:08 +0100273 "src/base/time.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +0100274 "src/base/unix_socket.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000275 "src/base/unix_task_runner.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100276 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100277 "src/base/waitable_event.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +0100278 "src/base/watchdog_posix.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000279 "src/ipc/buffered_frame_deserializer.cc",
280 "src/ipc/client_impl.cc",
281 "src/ipc/deferred.cc",
282 "src/ipc/host_impl.cc",
283 "src/ipc/service_proxy.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100284 "src/ipc/virtual_destructors.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +0000285 "src/protozero/message.cc",
286 "src/protozero/message_handle.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +0100287 "src/protozero/proto_decoder.cc",
Eric Seckler76311202019-01-07 12:20:25 +0000288 "src/protozero/scattered_heap_buffer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100289 "src/protozero/scattered_stream_null_delegate.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000290 "src/protozero/scattered_stream_writer.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000291 "src/traced/probes/android_log/android_log_data_source.cc",
Florian Mayer6f9c3422018-03-29 10:37:41 +0100292 "src/traced/probes/filesystem/file_scanner.cc",
Anna Zappone2a6f9042018-03-14 13:26:07 +0000293 "src/traced/probes/filesystem/fs_mount.cc",
294 "src/traced/probes/filesystem/inode_file_data_source.cc",
295 "src/traced/probes/filesystem/lru_inode_cache.cc",
Florian Mayerb21f4fb2018-03-22 15:24:56 +0000296 "src/traced/probes/filesystem/prefix_finder.cc",
297 "src/traced/probes/filesystem/range_tree.cc",
Isabelle Taylorf3edbfa2019-03-26 11:07:19 +0000298 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200299 "src/traced/probes/ftrace/atrace_wrapper.cc",
300 "src/traced/probes/ftrace/cpu_reader.cc",
301 "src/traced/probes/ftrace/cpu_stats_parser.cc",
302 "src/traced/probes/ftrace/event_info.cc",
303 "src/traced/probes/ftrace/event_info_constants.cc",
304 "src/traced/probes/ftrace/format_parser.cc",
305 "src/traced/probes/ftrace/ftrace_config.cc",
306 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
Primiano Tucci0f2f3b42019-05-21 19:37:01 +0100307 "src/traced/probes/ftrace/ftrace_config_utils.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200308 "src/traced/probes/ftrace/ftrace_controller.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100309 "src/traced/probes/ftrace/ftrace_data_source.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +0100310 "src/traced/probes/ftrace/ftrace_metadata.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200311 "src/traced/probes/ftrace/ftrace_procfs.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100312 "src/traced/probes/ftrace/ftrace_stats.cc",
Primiano Tuccic20ee512018-11-29 16:40:55 +0000313 "src/traced/probes/ftrace/page_pool.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200314 "src/traced/probes/ftrace/proto_translation_table.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100315 "src/traced/probes/metatrace/metatrace_data_source.cc",
Florian Mayer12f0f8e2019-04-02 12:31:13 +0100316 "src/traced/probes/packages_list/packages_list_data_source.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100317 "src/traced/probes/power/android_power_data_source.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000318 "src/traced/probes/probes.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100319 "src/traced/probes/probes_data_source.cc",
Isabelle Taylord404ea12018-02-19 17:28:01 +0000320 "src/traced/probes/probes_producer.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +0100321 "src/traced/probes/ps/process_stats_data_source.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100322 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
Florian Mayer3077d182019-03-15 14:30:04 -0700323 "src/traced/service/lazy_producer.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000324 "src/traced/service/service.cc",
Primiano Tucci3cd31322018-10-11 20:06:56 +0100325 "src/tracing/api_impl/consumer_api.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800326 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +0000327 "src/tracing/core/commit_data_request.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000328 "src/tracing/core/data_source_config.cc",
329 "src/tracing/core/data_source_descriptor.cc",
330 "src/tracing/core/id_allocator.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100331 "src/tracing/core/metatrace_writer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100332 "src/tracing/core/null_trace_writer.cc",
Eric Seckler7b0c9452019-03-18 13:14:36 +0000333 "src/tracing/core/observable_events.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +0000334 "src/tracing/core/packet_stream_validator.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000335 "src/tracing/core/shared_memory_abi.cc",
Oystein Eftevaag6d0bc7f2018-01-13 12:21:55 -0800336 "src/tracing/core/shared_memory_arbiter_impl.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +0000337 "src/tracing/core/sliced_protobuf_input_stream.cc",
Eric Secklerc65693d2019-01-11 15:12:48 +0000338 "src/tracing/core/startup_trace_writer.cc",
Eric Seckler42777e52019-01-23 10:13:22 +0000339 "src/tracing/core/startup_trace_writer_registry.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000340 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +0000341 "src/tracing/core/trace_buffer.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000342 "src/tracing/core/trace_config.cc",
343 "src/tracing/core/trace_packet.cc",
Eric Secklereaf29ed2019-01-23 09:53:55 +0000344 "src/tracing/core/trace_stats.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000345 "src/tracing/core/trace_writer_impl.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +0100346 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100347 "src/tracing/core/tracing_service_state.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100348 "src/tracing/core/virtual_destructors.cc",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100349 "src/tracing/trace_writer_base.cc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000350 ],
351 shared_libs: [
Primiano Tucci6d848532018-01-17 10:32:33 +0000352 "liblog",
353 "libprotobuf-cpp-lite",
354 ],
355 static_libs: [
Primiano Tucci6d848532018-01-17 10:32:33 +0000356 "perfetto_src_tracing_ipc",
357 ],
358 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100359 "perfetto_protos_perfetto_common_lite_gen_headers",
360 "perfetto_protos_perfetto_common_zero_gen_headers",
361 "perfetto_protos_perfetto_config_lite_gen_headers",
362 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000363 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000364 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800365 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000366 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000367 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700368 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +0000369 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200370 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100371 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100372 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +0000373 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000374 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100375 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +0000376 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700377 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000378 "perfetto_protos_perfetto_trace_zero_gen_headers",
Primiano Tucci6d848532018-01-17 10:32:33 +0000379 "perfetto_src_ipc_wire_protocol_gen_headers",
380 ],
381 defaults: [
382 "perfetto_defaults",
383 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +0000384 cflags: [
385 "-DGOOGLE_PROTOBUF_NO_RTTI",
386 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Primiano Tucci7c7f5f52019-01-15 21:47:04 +0000387 "-DPERFETTO_BUILD_WITH_ANDROID",
Florian Mayer3d5e7e62018-01-19 15:22:46 +0000388 ],
Primiano Tucci6d848532018-01-17 10:32:33 +0000389}
390
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100391// GN target: //:libperfetto_android_internal
392cc_library_shared {
393 name: "libperfetto_android_internal",
394 srcs: [
Isabelle Taylorf3edbfa2019-03-26 11:07:19 +0000395 "src/android_internal/atrace_hal.cc",
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100396 "src/android_internal/health_hal.cc",
Ryan Savitski53ca60b2019-06-03 13:04:40 +0100397 "src/android_internal/incident_service.cc",
Esteban Talavera1fecac92019-01-09 16:06:29 +0000398 "src/android_internal/power_stats_hal.cc",
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100399 ],
400 shared_libs: [
Isabelle Taylorf3edbfa2019-03-26 11:07:19 +0000401 "android.hardware.atrace@1.0",
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100402 "android.hardware.health@2.0",
Esteban Talavera1fecac92019-01-09 16:06:29 +0000403 "android.hardware.power.stats@1.0",
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100404 "libbase",
Ryan Savitski53ca60b2019-06-03 13:04:40 +0100405 "libbinder",
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100406 "libhidlbase",
Ryan Savitski53ca60b2019-06-03 13:04:40 +0100407 "libincident",
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100408 "liblog",
409 "libutils",
410 ],
Ryan Savitskie65beca2019-01-29 18:29:13 +0000411 static_libs: [
412 "libhealthhalutils",
413 ],
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100414 defaults: [
415 "perfetto_defaults",
416 ],
Primiano Tucci7c7f5f52019-01-15 21:47:04 +0000417 cflags: [
418 "-DPERFETTO_BUILD_WITH_ANDROID",
419 ],
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100420}
421
Primiano Tucci0b651b82019-06-03 17:16:23 +0100422// GN target: //:libperfetto_client_experimental
423cc_library_static {
424 name: "libperfetto_client_experimental",
425 srcs: [
426 ":perfetto_protos_perfetto_common_lite_gen",
427 ":perfetto_protos_perfetto_common_zero_gen",
428 ":perfetto_protos_perfetto_config_lite_gen",
429 ":perfetto_protos_perfetto_config_zero_gen",
430 ":perfetto_protos_perfetto_ipc_ipc_gen",
431 ":perfetto_protos_perfetto_trace_android_zero_gen",
432 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
433 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
434 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700435 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100436 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
437 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100438 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100439 ":perfetto_protos_perfetto_trace_power_zero_gen",
440 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
441 ":perfetto_protos_perfetto_trace_ps_zero_gen",
442 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
443 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
444 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
445 ":perfetto_protos_perfetto_trace_zero_gen",
446 ":perfetto_src_ipc_wire_protocol_gen",
Sami Kyostila389861f2019-07-09 20:52:43 +0100447 "src/base/event_fd.cc",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100448 "src/base/file_utils.cc",
449 "src/base/metatrace.cc",
450 "src/base/paged_memory.cc",
451 "src/base/pipe.cc",
452 "src/base/string_splitter.cc",
453 "src/base/string_utils.cc",
454 "src/base/string_view.cc",
455 "src/base/temp_file.cc",
456 "src/base/thread_checker.cc",
457 "src/base/thread_task_runner.cc",
458 "src/base/time.cc",
459 "src/base/unix_socket.cc",
460 "src/base/unix_task_runner.cc",
461 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100462 "src/base/waitable_event.cc",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100463 "src/base/watchdog_posix.cc",
464 "src/ipc/buffered_frame_deserializer.cc",
465 "src/ipc/client_impl.cc",
466 "src/ipc/deferred.cc",
467 "src/ipc/host_impl.cc",
468 "src/ipc/service_proxy.cc",
469 "src/ipc/virtual_destructors.cc",
470 "src/protozero/message.cc",
471 "src/protozero/message_handle.cc",
472 "src/protozero/proto_decoder.cc",
473 "src/protozero/scattered_heap_buffer.cc",
474 "src/protozero/scattered_stream_null_delegate.cc",
475 "src/protozero/scattered_stream_writer.cc",
476 "src/tracing/core/chrome_config.cc",
477 "src/tracing/core/commit_data_request.cc",
478 "src/tracing/core/data_source_config.cc",
479 "src/tracing/core/data_source_descriptor.cc",
480 "src/tracing/core/id_allocator.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100481 "src/tracing/core/metatrace_writer.cc",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100482 "src/tracing/core/null_trace_writer.cc",
483 "src/tracing/core/observable_events.cc",
484 "src/tracing/core/packet_stream_validator.cc",
485 "src/tracing/core/shared_memory_abi.cc",
486 "src/tracing/core/shared_memory_arbiter_impl.cc",
487 "src/tracing/core/sliced_protobuf_input_stream.cc",
488 "src/tracing/core/startup_trace_writer.cc",
489 "src/tracing/core/startup_trace_writer_registry.cc",
490 "src/tracing/core/test_config.cc",
491 "src/tracing/core/trace_buffer.cc",
492 "src/tracing/core/trace_config.cc",
493 "src/tracing/core/trace_packet.cc",
494 "src/tracing/core/trace_stats.cc",
495 "src/tracing/core/trace_writer_impl.cc",
496 "src/tracing/core/tracing_service_impl.cc",
Eric Seckler4d7ccd92019-06-04 15:50:16 +0100497 "src/tracing/core/tracing_service_state.cc",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100498 "src/tracing/core/virtual_destructors.cc",
499 "src/tracing/data_source.cc",
500 "src/tracing/internal/in_process_tracing_backend.cc",
501 "src/tracing/internal/system_tracing_backend.cc",
502 "src/tracing/internal/tracing_muxer_impl.cc",
503 "src/tracing/platform.cc",
504 "src/tracing/platform_posix.cc",
505 "src/tracing/trace_writer_base.cc",
506 "src/tracing/tracing.cc",
507 "src/tracing/virtual_destructors.cc",
508 ],
509 shared_libs: [
510 "libprotobuf-cpp-lite",
511 ],
512 static_libs: [
513 "perfetto_src_tracing_ipc",
514 ],
515 export_include_dirs: [
516 "include",
517 ],
518 generated_headers: [
519 "perfetto_protos_perfetto_common_lite_gen_headers",
520 "perfetto_protos_perfetto_common_zero_gen_headers",
521 "perfetto_protos_perfetto_config_lite_gen_headers",
522 "perfetto_protos_perfetto_config_zero_gen_headers",
523 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
524 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
525 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
526 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
527 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700528 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100529 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
530 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100531 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100532 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
533 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
534 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
535 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
536 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
537 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
538 "perfetto_protos_perfetto_trace_zero_gen_headers",
539 "perfetto_src_ipc_wire_protocol_gen_headers",
540 ],
541 export_generated_headers: [
542 "perfetto_protos_perfetto_common_lite_gen_headers",
543 "perfetto_protos_perfetto_common_zero_gen_headers",
544 "perfetto_protos_perfetto_config_lite_gen_headers",
545 "perfetto_protos_perfetto_config_zero_gen_headers",
546 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
547 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
548 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
549 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
550 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700551 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100552 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
553 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100554 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tucci0b651b82019-06-03 17:16:23 +0100555 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
556 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
557 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
558 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
559 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
560 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
561 "perfetto_protos_perfetto_trace_zero_gen_headers",
562 "perfetto_src_ipc_wire_protocol_gen_headers",
563 ],
564 defaults: [
565 "perfetto_defaults",
566 ],
567 cflags: [
568 "-DGOOGLE_PROTOBUF_NO_RTTI",
569 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
570 "-DPERFETTO_BUILD_WITH_ANDROID",
571 ],
572}
573
Primiano Tucci6d848532018-01-17 10:32:33 +0000574// GN target: //:perfetto
575cc_binary {
576 name: "perfetto",
577 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100578 ":perfetto_protos_perfetto_common_lite_gen",
579 ":perfetto_protos_perfetto_common_zero_gen",
580 ":perfetto_protos_perfetto_config_lite_gen",
581 ":perfetto_protos_perfetto_config_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000582 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000583 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800584 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000585 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000586 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700587 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +0000588 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200589 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100590 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100591 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +0000592 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000593 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100594 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +0000595 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700596 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000597 ":perfetto_protos_perfetto_trace_zero_gen",
Primiano Tucci6d848532018-01-17 10:32:33 +0000598 ":perfetto_src_ipc_wire_protocol_gen",
Hector Dearman86cfbe12018-03-22 11:58:42 +0000599 ":perfetto_src_perfetto_cmd_protos_gen",
Primiano Tucci6d848532018-01-17 10:32:33 +0000600 "src/base/android_task_runner.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100601 "src/base/event_fd.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +0000602 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +0100603 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +0100604 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +0100605 "src/base/pipe.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +0000606 "src/base/string_splitter.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +0100607 "src/base/string_utils.cc",
Primiano Tucci60c4a2b2019-03-02 17:11:18 +0000608 "src/base/string_view.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +0000609 "src/base/temp_file.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000610 "src/base/thread_checker.cc",
Ryan Savitski29885792019-03-14 12:10:13 +0000611 "src/base/thread_task_runner.cc",
Florian Mayer75905df2018-05-08 17:44:08 +0100612 "src/base/time.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +0100613 "src/base/unix_socket.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000614 "src/base/unix_task_runner.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100615 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100616 "src/base/waitable_event.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +0100617 "src/base/watchdog_posix.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000618 "src/ipc/buffered_frame_deserializer.cc",
619 "src/ipc/client_impl.cc",
620 "src/ipc/deferred.cc",
621 "src/ipc/host_impl.cc",
622 "src/ipc/service_proxy.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100623 "src/ipc/virtual_destructors.cc",
Hector Dearman5edeafc2018-11-29 13:27:33 +0000624 "src/perfetto_cmd/config.cc",
Hector Dearmanc443a362018-02-28 16:03:56 +0000625 "src/perfetto_cmd/main.cc",
Hector Dearman554627f2019-06-04 17:58:22 +0100626 "src/perfetto_cmd/packet_writer.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +0000627 "src/perfetto_cmd/pbtxt_to_pb.cc",
Hector Dearmanc443a362018-02-28 16:03:56 +0000628 "src/perfetto_cmd/perfetto_cmd.cc",
Hector Dearman86cfbe12018-03-22 11:58:42 +0000629 "src/perfetto_cmd/rate_limiter.cc",
Stephen Nuskoe8238112019-04-09 18:37:00 +0100630 "src/perfetto_cmd/trigger_producer.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +0000631 "src/protozero/message.cc",
632 "src/protozero/message_handle.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +0100633 "src/protozero/proto_decoder.cc",
Eric Seckler76311202019-01-07 12:20:25 +0000634 "src/protozero/scattered_heap_buffer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100635 "src/protozero/scattered_stream_null_delegate.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000636 "src/protozero/scattered_stream_writer.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800637 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +0000638 "src/tracing/core/commit_data_request.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000639 "src/tracing/core/data_source_config.cc",
640 "src/tracing/core/data_source_descriptor.cc",
641 "src/tracing/core/id_allocator.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100642 "src/tracing/core/metatrace_writer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100643 "src/tracing/core/null_trace_writer.cc",
Eric Seckler7b0c9452019-03-18 13:14:36 +0000644 "src/tracing/core/observable_events.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +0000645 "src/tracing/core/packet_stream_validator.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000646 "src/tracing/core/shared_memory_abi.cc",
647 "src/tracing/core/shared_memory_arbiter_impl.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +0000648 "src/tracing/core/sliced_protobuf_input_stream.cc",
Eric Secklerc65693d2019-01-11 15:12:48 +0000649 "src/tracing/core/startup_trace_writer.cc",
Eric Seckler42777e52019-01-23 10:13:22 +0000650 "src/tracing/core/startup_trace_writer_registry.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000651 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +0000652 "src/tracing/core/trace_buffer.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000653 "src/tracing/core/trace_config.cc",
654 "src/tracing/core/trace_packet.cc",
Eric Secklereaf29ed2019-01-23 09:53:55 +0000655 "src/tracing/core/trace_stats.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000656 "src/tracing/core/trace_writer_impl.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +0100657 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100658 "src/tracing/core/tracing_service_state.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100659 "src/tracing/core/virtual_destructors.cc",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100660 "src/tracing/trace_writer_base.cc",
Primiano Tucci6d848532018-01-17 10:32:33 +0000661 ],
662 shared_libs: [
Primiano Tucci6067e732018-01-08 16:19:40 +0000663 "libandroid",
Sami Kyostilab5b71692018-01-12 12:16:44 +0000664 "libbinder",
Primiano Tucci6067e732018-01-08 16:19:40 +0000665 "liblog",
666 "libprotobuf-cpp-lite",
Sami Kyostilab5b71692018-01-12 12:16:44 +0000667 "libservices",
Primiano Tucciedf099c2018-01-08 18:27:56 +0000668 "libutils",
Hector Dearmane0b993f2019-05-24 18:48:16 +0100669 "libz",
Primiano Tucci6067e732018-01-08 16:19:40 +0000670 ],
671 static_libs: [
Stephen Nuskoe8238112019-04-09 18:37:00 +0100672 "perfetto_src_tracing_ipc",
Primiano Tucci6067e732018-01-08 16:19:40 +0000673 ],
674 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100675 "perfetto_protos_perfetto_common_lite_gen_headers",
676 "perfetto_protos_perfetto_common_zero_gen_headers",
677 "perfetto_protos_perfetto_config_lite_gen_headers",
678 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000679 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000680 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800681 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000682 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000683 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700684 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +0000685 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200686 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100687 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100688 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +0000689 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000690 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100691 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +0000692 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700693 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +0000694 "perfetto_protos_perfetto_trace_zero_gen_headers",
Primiano Tucci6067e732018-01-08 16:19:40 +0000695 "perfetto_src_ipc_wire_protocol_gen_headers",
Hector Dearman86cfbe12018-03-22 11:58:42 +0000696 "perfetto_src_perfetto_cmd_protos_gen_headers",
Primiano Tucci6067e732018-01-08 16:19:40 +0000697 ],
698 defaults: [
699 "perfetto_defaults",
700 ],
Primiano Tucciedf099c2018-01-08 18:27:56 +0000701 cflags: [
Florian Mayer3d5e7e62018-01-19 15:22:46 +0000702 "-DGOOGLE_PROTOBUF_NO_RTTI",
703 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Hector Dearman554627f2019-06-04 17:58:22 +0100704 "-DHAVE_HIDDEN",
Primiano Tucciedf099c2018-01-08 18:27:56 +0000705 "-DPERFETTO_BUILD_WITH_ANDROID",
706 ],
Logan Chien9bfaaf92018-02-13 18:49:24 +0800707 product_variables: {
708 pdk: {
709 enabled: false,
710 },
711 },
Primiano Tucci6067e732018-01-08 16:19:40 +0000712}
713
Sami Kyostilab27619f2017-12-13 19:22:16 +0000714cc_defaults {
715 name: "perfetto_defaults",
716 cflags: [
Florian Mayerc2a38ea2018-01-19 11:48:43 +0000717 "-Oz",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000718 "-Wno-error=return-type",
719 "-Wno-sign-compare",
720 "-Wno-sign-promo",
721 "-Wno-unused-parameter",
Florian Mayercc424fd2018-01-15 11:19:01 +0000722 "-fvisibility=hidden",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000723 ],
724 local_include_dirs: [
725 "include",
726 ],
Lalit Magantid8b1a1d2018-05-23 14:41:43 +0100727 product_variables: {
728 debuggable: {
729 cflags: ["-DPERFETTO_BUILD_WITH_ANDROID_USERDEBUG"],
730 },
731 },
Florian Mayer19f734f2019-07-05 12:08:01 +0100732 target: {
733 android: {
734 lto: {
735 thin: true,
736 },
737 },
738 },
Sami Kyostilab27619f2017-12-13 19:22:16 +0000739}
Sami Kyostila2357b032017-12-06 18:38:17 +0000740
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000741// GN target: //:perfetto_integrationtests
742cc_test {
743 name: "perfetto_integrationtests",
744 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100745 ":perfetto_protos_perfetto_common_lite_gen",
746 ":perfetto_protos_perfetto_common_zero_gen",
747 ":perfetto_protos_perfetto_config_lite_gen",
748 ":perfetto_protos_perfetto_config_zero_gen",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000749 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000750 ":perfetto_protos_perfetto_trace_android_lite_gen",
751 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800752 ":perfetto_protos_perfetto_trace_chrome_lite_gen",
753 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000754 ":perfetto_protos_perfetto_trace_filesystem_lite_gen",
755 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000756 ":perfetto_protos_perfetto_trace_ftrace_lite_gen",
757 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700758 ":perfetto_protos_perfetto_trace_gpu_lite_gen",
759 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +0000760 ":perfetto_protos_perfetto_trace_interned_data_lite_gen",
761 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000762 ":perfetto_protos_perfetto_trace_lite_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200763 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100764 ":perfetto_protos_perfetto_trace_perfetto_lite_gen",
765 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100766 ":perfetto_protos_perfetto_trace_power_lite_gen",
767 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +0000768 ":perfetto_protos_perfetto_trace_profiling_lite_gen",
769 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000770 ":perfetto_protos_perfetto_trace_ps_lite_gen",
771 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100772 ":perfetto_protos_perfetto_trace_sys_stats_lite_gen",
773 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +0000774 ":perfetto_protos_perfetto_trace_track_event_lite_gen",
775 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700776 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000777 ":perfetto_protos_perfetto_trace_zero_gen",
778 ":perfetto_src_ipc_wire_protocol_gen",
779 "src/base/android_task_runner.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100780 "src/base/event_fd.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +0000781 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +0100782 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +0100783 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +0100784 "src/base/pipe.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +0000785 "src/base/string_splitter.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +0100786 "src/base/string_utils.cc",
Primiano Tucci60c4a2b2019-03-02 17:11:18 +0000787 "src/base/string_view.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +0000788 "src/base/temp_file.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000789 "src/base/test/test_task_runner.cc",
Hector Dearman7f71d0e2018-08-09 11:26:10 +0100790 "src/base/test/utils.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000791 "src/base/test/vm_test_utils.cc",
792 "src/base/thread_checker.cc",
Ryan Savitski29885792019-03-14 12:10:13 +0000793 "src/base/thread_task_runner.cc",
Florian Mayer75905df2018-05-08 17:44:08 +0100794 "src/base/time.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +0100795 "src/base/unix_socket.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000796 "src/base/unix_task_runner.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100797 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +0100798 "src/base/waitable_event.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +0100799 "src/base/watchdog_posix.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000800 "src/ipc/buffered_frame_deserializer.cc",
801 "src/ipc/client_impl.cc",
802 "src/ipc/deferred.cc",
803 "src/ipc/host_impl.cc",
804 "src/ipc/service_proxy.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100805 "src/ipc/virtual_destructors.cc",
Florian Mayer42802492018-12-13 11:00:16 +0000806 "src/profiling/memory/bookkeeping.cc",
Florian Mayer7791fce2019-05-16 18:04:20 +0100807 "src/profiling/memory/bookkeeping_dump.cc",
Florian Mayer42802492018-12-13 11:00:16 +0000808 "src/profiling/memory/client.cc",
Primiano Tucci0f2f3b42019-05-21 19:37:01 +0100809 "src/profiling/memory/heapprofd_config.cc",
Florian Mayer42802492018-12-13 11:00:16 +0000810 "src/profiling/memory/heapprofd_end_to_end_test.cc",
811 "src/profiling/memory/heapprofd_producer.cc",
Florian Mayer7142c7c2019-05-20 18:11:41 +0100812 "src/profiling/memory/page_idle_checker.cc",
Florian Mayerc4b196e2018-12-14 20:05:50 +0000813 "src/profiling/memory/proc_utils.cc",
Ryan Savitskia502bde2019-02-26 21:34:03 +0000814 "src/profiling/memory/scoped_spinlock.cc",
Florian Mayer51950592019-03-06 20:05:15 +0000815 "src/profiling/memory/shared_ring_buffer.cc",
Florian Mayer42802492018-12-13 11:00:16 +0000816 "src/profiling/memory/system_property.cc",
817 "src/profiling/memory/unwinding.cc",
Florian Mayer7142c7c2019-05-20 18:11:41 +0100818 "src/profiling/memory/utils.cc",
Florian Mayer42802492018-12-13 11:00:16 +0000819 "src/profiling/memory/wire_protocol.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +0000820 "src/protozero/message.cc",
821 "src/protozero/message_handle.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +0100822 "src/protozero/proto_decoder.cc",
Eric Seckler76311202019-01-07 12:20:25 +0000823 "src/protozero/scattered_heap_buffer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100824 "src/protozero/scattered_stream_null_delegate.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000825 "src/protozero/scattered_stream_writer.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000826 "src/traced/probes/android_log/android_log_data_source.cc",
Florian Mayer6f9c3422018-03-29 10:37:41 +0100827 "src/traced/probes/filesystem/file_scanner.cc",
Anna Zappone2a6f9042018-03-14 13:26:07 +0000828 "src/traced/probes/filesystem/fs_mount.cc",
829 "src/traced/probes/filesystem/inode_file_data_source.cc",
830 "src/traced/probes/filesystem/lru_inode_cache.cc",
Florian Mayerb21f4fb2018-03-22 15:24:56 +0000831 "src/traced/probes/filesystem/prefix_finder.cc",
832 "src/traced/probes/filesystem/range_tree.cc",
Isabelle Taylorf3edbfa2019-03-26 11:07:19 +0000833 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200834 "src/traced/probes/ftrace/atrace_wrapper.cc",
835 "src/traced/probes/ftrace/cpu_reader.cc",
836 "src/traced/probes/ftrace/cpu_stats_parser.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200837 "src/traced/probes/ftrace/event_info.cc",
838 "src/traced/probes/ftrace/event_info_constants.cc",
839 "src/traced/probes/ftrace/format_parser.cc",
840 "src/traced/probes/ftrace/ftrace_config.cc",
841 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
Primiano Tucci0f2f3b42019-05-21 19:37:01 +0100842 "src/traced/probes/ftrace/ftrace_config_utils.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200843 "src/traced/probes/ftrace/ftrace_controller.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100844 "src/traced/probes/ftrace/ftrace_data_source.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +0100845 "src/traced/probes/ftrace/ftrace_metadata.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200846 "src/traced/probes/ftrace/ftrace_procfs.cc",
847 "src/traced/probes/ftrace/ftrace_procfs_integrationtest.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100848 "src/traced/probes/ftrace/ftrace_stats.cc",
Primiano Tuccic20ee512018-11-29 16:40:55 +0000849 "src/traced/probes/ftrace/page_pool.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200850 "src/traced/probes/ftrace/proto_translation_table.cc",
851 "src/traced/probes/ftrace/test/cpu_reader_support.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100852 "src/traced/probes/metatrace/metatrace_data_source.cc",
Florian Mayer12f0f8e2019-04-02 12:31:13 +0100853 "src/traced/probes/packages_list/packages_list_data_source.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100854 "src/traced/probes/power/android_power_data_source.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +0100855 "src/traced/probes/probes_data_source.cc",
Isabelle Taylord404ea12018-02-19 17:28:01 +0000856 "src/traced/probes/probes_producer.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +0100857 "src/traced/probes/ps/process_stats_data_source.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100858 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100859 "src/tracing/api_integrationtest.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800860 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +0000861 "src/tracing/core/commit_data_request.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000862 "src/tracing/core/data_source_config.cc",
863 "src/tracing/core/data_source_descriptor.cc",
864 "src/tracing/core/id_allocator.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100865 "src/tracing/core/metatrace_writer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +0100866 "src/tracing/core/null_trace_writer.cc",
Eric Seckler7b0c9452019-03-18 13:14:36 +0000867 "src/tracing/core/observable_events.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +0000868 "src/tracing/core/packet_stream_validator.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000869 "src/tracing/core/shared_memory_abi.cc",
870 "src/tracing/core/shared_memory_arbiter_impl.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +0000871 "src/tracing/core/sliced_protobuf_input_stream.cc",
Eric Secklerc65693d2019-01-11 15:12:48 +0000872 "src/tracing/core/startup_trace_writer.cc",
Eric Seckler42777e52019-01-23 10:13:22 +0000873 "src/tracing/core/startup_trace_writer_registry.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +0000874 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +0000875 "src/tracing/core/trace_buffer.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000876 "src/tracing/core/trace_config.cc",
877 "src/tracing/core/trace_packet.cc",
Eric Secklereaf29ed2019-01-23 09:53:55 +0000878 "src/tracing/core/trace_stats.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000879 "src/tracing/core/trace_writer_impl.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +0100880 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100881 "src/tracing/core/tracing_service_state.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +0100882 "src/tracing/core/virtual_destructors.cc",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100883 "src/tracing/data_source.cc",
884 "src/tracing/internal/in_process_tracing_backend.cc",
885 "src/tracing/internal/system_tracing_backend.cc",
886 "src/tracing/internal/tracing_muxer_impl.cc",
887 "src/tracing/platform.cc",
888 "src/tracing/platform_posix.cc",
889 "src/tracing/trace_writer_base.cc",
890 "src/tracing/tracing.cc",
891 "src/tracing/virtual_destructors.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000892 "test/end_to_end_integrationtest.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000893 "test/fake_producer.cc",
Florian Mayerc7255fd2018-01-25 10:29:24 +0000894 "test/task_runner_thread.cc",
Lalit Magantic4c3ceb2018-03-29 20:38:13 +0100895 "test/test_helper.cc",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000896 ],
897 shared_libs: [
898 "libandroid",
Florian Mayer42802492018-12-13 11:00:16 +0000899 "libbase",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000900 "liblog",
Florian Mayer42802492018-12-13 11:00:16 +0000901 "libprocinfo",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000902 "libprotobuf-cpp-lite",
Florian Mayer42802492018-12-13 11:00:16 +0000903 "libunwindstack",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000904 ],
905 static_libs: [
906 "libgmock",
Primiano Tucci658e2d62019-06-14 10:03:32 +0100907 "libperfetto_client_experimental",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000908 "perfetto_src_tracing_ipc",
909 ],
910 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100911 "perfetto_protos_perfetto_common_lite_gen_headers",
912 "perfetto_protos_perfetto_common_zero_gen_headers",
913 "perfetto_protos_perfetto_config_lite_gen_headers",
914 "perfetto_protos_perfetto_config_zero_gen_headers",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000915 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000916 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
917 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -0800918 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
919 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +0000920 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
921 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000922 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
923 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -0700924 "perfetto_protos_perfetto_trace_gpu_lite_gen_headers",
925 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +0000926 "perfetto_protos_perfetto_trace_interned_data_lite_gen_headers",
927 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000928 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +0200929 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +0100930 "perfetto_protos_perfetto_trace_perfetto_lite_gen_headers",
931 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +0100932 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
933 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +0000934 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
935 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +0000936 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
937 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100938 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
939 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +0000940 "perfetto_protos_perfetto_trace_track_event_lite_gen_headers",
941 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -0700942 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000943 "perfetto_protos_perfetto_trace_zero_gen_headers",
944 "perfetto_src_ipc_wire_protocol_gen_headers",
945 ],
946 defaults: [
947 "perfetto_defaults",
948 ],
949 cflags: [
950 "-DGOOGLE_PROTOBUF_NO_RTTI",
951 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Lalit Maganti0b9a6ac2018-02-16 18:05:06 +0000952 "-DPERFETTO_BUILD_WITH_ANDROID",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000953 ],
Logan Chien9bfaaf92018-02-13 18:49:24 +0800954 product_variables: {
955 pdk: {
956 enabled: false,
957 },
958 },
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000959}
960
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100961// GN target: //protos/perfetto/common:lite_gen
Primiano Tucci6aa75572018-03-21 05:33:14 -0700962genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100963 name: "perfetto_protos_perfetto_common_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700964 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000965 "protos/perfetto/common/android_log_constants.proto",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700966 "protos/perfetto/common/commit_data_request.proto",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100967 "protos/perfetto/common/data_source_descriptor.proto",
Lalit Magantieb1bf212019-05-08 15:07:16 +0100968 "protos/perfetto/common/descriptor.proto",
Raymond Chiu303ed402019-06-20 12:50:04 -0700969 "protos/perfetto/common/gpu_counter_descriptor.proto",
Eric Seckler7b0c9452019-03-18 13:14:36 +0000970 "protos/perfetto/common/observable_events.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100971 "protos/perfetto/common/sys_stats_counters.proto",
Eric Secklereaf29ed2019-01-23 09:53:55 +0000972 "protos/perfetto/common/trace_stats.proto",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100973 "protos/perfetto/common/tracing_service_state.proto",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700974 ],
975 tools: [
976 "aprotoc",
977 ],
978 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
979 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000980 "external/perfetto/protos/perfetto/common/android_log_constants.pb.cc",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700981 "external/perfetto/protos/perfetto/common/commit_data_request.pb.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100982 "external/perfetto/protos/perfetto/common/data_source_descriptor.pb.cc",
Lalit Magantieb1bf212019-05-08 15:07:16 +0100983 "external/perfetto/protos/perfetto/common/descriptor.pb.cc",
Raymond Chiu303ed402019-06-20 12:50:04 -0700984 "external/perfetto/protos/perfetto/common/gpu_counter_descriptor.pb.cc",
Eric Seckler7b0c9452019-03-18 13:14:36 +0000985 "external/perfetto/protos/perfetto/common/observable_events.pb.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100986 "external/perfetto/protos/perfetto/common/sys_stats_counters.pb.cc",
Eric Secklereaf29ed2019-01-23 09:53:55 +0000987 "external/perfetto/protos/perfetto/common/trace_stats.pb.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100988 "external/perfetto/protos/perfetto/common/tracing_service_state.pb.cc",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700989 ],
990}
991
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100992// GN target: //protos/perfetto/common:lite_gen
Primiano Tucci6aa75572018-03-21 05:33:14 -0700993genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +0100994 name: "perfetto_protos_perfetto_common_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700995 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +0000996 "protos/perfetto/common/android_log_constants.proto",
Primiano Tucci6aa75572018-03-21 05:33:14 -0700997 "protos/perfetto/common/commit_data_request.proto",
Primiano Tucci2854a0a2019-06-03 14:51:18 +0100998 "protos/perfetto/common/data_source_descriptor.proto",
Lalit Magantieb1bf212019-05-08 15:07:16 +0100999 "protos/perfetto/common/descriptor.proto",
Raymond Chiu303ed402019-06-20 12:50:04 -07001000 "protos/perfetto/common/gpu_counter_descriptor.proto",
Eric Seckler7b0c9452019-03-18 13:14:36 +00001001 "protos/perfetto/common/observable_events.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001002 "protos/perfetto/common/sys_stats_counters.proto",
Eric Secklereaf29ed2019-01-23 09:53:55 +00001003 "protos/perfetto/common/trace_stats.proto",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001004 "protos/perfetto/common/tracing_service_state.proto",
Primiano Tucci6aa75572018-03-21 05:33:14 -07001005 ],
1006 tools: [
1007 "aprotoc",
1008 ],
1009 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1010 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001011 "external/perfetto/protos/perfetto/common/android_log_constants.pb.h",
Primiano Tucci6aa75572018-03-21 05:33:14 -07001012 "external/perfetto/protos/perfetto/common/commit_data_request.pb.h",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001013 "external/perfetto/protos/perfetto/common/data_source_descriptor.pb.h",
Lalit Magantieb1bf212019-05-08 15:07:16 +01001014 "external/perfetto/protos/perfetto/common/descriptor.pb.h",
Raymond Chiu303ed402019-06-20 12:50:04 -07001015 "external/perfetto/protos/perfetto/common/gpu_counter_descriptor.pb.h",
Eric Seckler7b0c9452019-03-18 13:14:36 +00001016 "external/perfetto/protos/perfetto/common/observable_events.pb.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001017 "external/perfetto/protos/perfetto/common/sys_stats_counters.pb.h",
Eric Secklereaf29ed2019-01-23 09:53:55 +00001018 "external/perfetto/protos/perfetto/common/trace_stats.pb.h",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001019 "external/perfetto/protos/perfetto/common/tracing_service_state.pb.h",
Primiano Tucci6aa75572018-03-21 05:33:14 -07001020 ],
1021 export_include_dirs: [
1022 "protos",
1023 ],
1024}
1025
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001026// GN target: //protos/perfetto/common:zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +00001027genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001028 name: "perfetto_protos_perfetto_common_zero_gen",
1029 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001030 "protos/perfetto/common/android_log_constants.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001031 "protos/perfetto/common/commit_data_request.proto",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001032 "protos/perfetto/common/data_source_descriptor.proto",
Lalit Magantieb1bf212019-05-08 15:07:16 +01001033 "protos/perfetto/common/descriptor.proto",
Raymond Chiu303ed402019-06-20 12:50:04 -07001034 "protos/perfetto/common/gpu_counter_descriptor.proto",
Eric Seckler7b0c9452019-03-18 13:14:36 +00001035 "protos/perfetto/common/observable_events.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001036 "protos/perfetto/common/sys_stats_counters.proto",
Eric Secklereaf29ed2019-01-23 09:53:55 +00001037 "protos/perfetto/common/trace_stats.proto",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001038 "protos/perfetto/common/tracing_service_state.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001039 ],
1040 tools: [
1041 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001042 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001043 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001044 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001045 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001046 "external/perfetto/protos/perfetto/common/android_log_constants.pbzero.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001047 "external/perfetto/protos/perfetto/common/commit_data_request.pbzero.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001048 "external/perfetto/protos/perfetto/common/data_source_descriptor.pbzero.cc",
Lalit Magantieb1bf212019-05-08 15:07:16 +01001049 "external/perfetto/protos/perfetto/common/descriptor.pbzero.cc",
Raymond Chiu303ed402019-06-20 12:50:04 -07001050 "external/perfetto/protos/perfetto/common/gpu_counter_descriptor.pbzero.cc",
Eric Seckler7b0c9452019-03-18 13:14:36 +00001051 "external/perfetto/protos/perfetto/common/observable_events.pbzero.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001052 "external/perfetto/protos/perfetto/common/sys_stats_counters.pbzero.cc",
Eric Secklereaf29ed2019-01-23 09:53:55 +00001053 "external/perfetto/protos/perfetto/common/trace_stats.pbzero.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001054 "external/perfetto/protos/perfetto/common/tracing_service_state.pbzero.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001055 ],
1056}
1057
1058// GN target: //protos/perfetto/common:zero_gen
1059genrule {
1060 name: "perfetto_protos_perfetto_common_zero_gen_headers",
1061 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001062 "protos/perfetto/common/android_log_constants.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001063 "protos/perfetto/common/commit_data_request.proto",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001064 "protos/perfetto/common/data_source_descriptor.proto",
Lalit Magantieb1bf212019-05-08 15:07:16 +01001065 "protos/perfetto/common/descriptor.proto",
Raymond Chiu303ed402019-06-20 12:50:04 -07001066 "protos/perfetto/common/gpu_counter_descriptor.proto",
Eric Seckler7b0c9452019-03-18 13:14:36 +00001067 "protos/perfetto/common/observable_events.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001068 "protos/perfetto/common/sys_stats_counters.proto",
Eric Secklereaf29ed2019-01-23 09:53:55 +00001069 "protos/perfetto/common/trace_stats.proto",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001070 "protos/perfetto/common/tracing_service_state.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001071 ],
1072 tools: [
1073 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001074 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001075 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001076 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001077 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001078 "external/perfetto/protos/perfetto/common/android_log_constants.pbzero.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001079 "external/perfetto/protos/perfetto/common/commit_data_request.pbzero.h",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001080 "external/perfetto/protos/perfetto/common/data_source_descriptor.pbzero.h",
Lalit Magantieb1bf212019-05-08 15:07:16 +01001081 "external/perfetto/protos/perfetto/common/descriptor.pbzero.h",
Raymond Chiu303ed402019-06-20 12:50:04 -07001082 "external/perfetto/protos/perfetto/common/gpu_counter_descriptor.pbzero.h",
Eric Seckler7b0c9452019-03-18 13:14:36 +00001083 "external/perfetto/protos/perfetto/common/observable_events.pbzero.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001084 "external/perfetto/protos/perfetto/common/sys_stats_counters.pbzero.h",
Eric Secklereaf29ed2019-01-23 09:53:55 +00001085 "external/perfetto/protos/perfetto/common/trace_stats.pbzero.h",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01001086 "external/perfetto/protos/perfetto/common/tracing_service_state.pbzero.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001087 ],
1088 export_include_dirs: [
1089 "protos",
1090 ],
1091}
1092
1093// GN target: //protos/perfetto/config:lite_gen
1094genrule {
1095 name: "perfetto_protos_perfetto_config_lite_gen",
Sami Kyostila2357b032017-12-06 18:38:17 +00001096 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001097 "protos/perfetto/config/android/android_log_config.proto",
Ryan Savitskifde4ae62019-06-14 16:02:52 +01001098 "protos/perfetto/config/android/packages_list_config.proto",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001099 "protos/perfetto/config/chrome/chrome_config.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001100 "protos/perfetto/config/data_source_config.proto",
Hector Dearmana89cc572018-02-23 12:02:58 +00001101 "protos/perfetto/config/ftrace/ftrace_config.proto",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001102 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +01001103 "protos/perfetto/config/inode_file/inode_file_config.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001104 "protos/perfetto/config/power/android_power_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01001105 "protos/perfetto/config/process_stats/process_stats_config.proto",
Florian Mayer8e7eac42018-11-05 16:04:11 +00001106 "protos/perfetto/config/profiling/heapprofd_config.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001107 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Lalit Maganti3f5705c2018-03-09 12:09:44 +00001108 "protos/perfetto/config/test_config.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001109 "protos/perfetto/config/trace_config.proto",
Sami Kyostilab27619f2017-12-13 19:22:16 +00001110 ],
1111 tools: [
1112 "aprotoc",
1113 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00001114 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 +00001115 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001116 "external/perfetto/protos/perfetto/config/android/android_log_config.pb.cc",
Ryan Savitskifde4ae62019-06-14 16:02:52 +01001117 "external/perfetto/protos/perfetto/config/android/packages_list_config.pb.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001118 "external/perfetto/protos/perfetto/config/chrome/chrome_config.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001119 "external/perfetto/protos/perfetto/config/data_source_config.pb.cc",
Hector Dearmana89cc572018-02-23 12:02:58 +00001120 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pb.cc",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001121 "external/perfetto/protos/perfetto/config/gpu/gpu_counter_config.pb.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +01001122 "external/perfetto/protos/perfetto/config/inode_file/inode_file_config.pb.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001123 "external/perfetto/protos/perfetto/config/power/android_power_config.pb.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01001124 "external/perfetto/protos/perfetto/config/process_stats/process_stats_config.pb.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +00001125 "external/perfetto/protos/perfetto/config/profiling/heapprofd_config.pb.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001126 "external/perfetto/protos/perfetto/config/sys_stats/sys_stats_config.pb.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +00001127 "external/perfetto/protos/perfetto/config/test_config.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001128 "external/perfetto/protos/perfetto/config/trace_config.pb.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00001129 ],
1130}
1131
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001132// GN target: //protos/perfetto/config:lite_gen
Primiano Tuccid7b59c42017-12-19 01:43:07 +01001133genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001134 name: "perfetto_protos_perfetto_config_lite_gen_headers",
Primiano Tuccid7b59c42017-12-19 01:43:07 +01001135 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001136 "protos/perfetto/config/android/android_log_config.proto",
Ryan Savitskifde4ae62019-06-14 16:02:52 +01001137 "protos/perfetto/config/android/packages_list_config.proto",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001138 "protos/perfetto/config/chrome/chrome_config.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001139 "protos/perfetto/config/data_source_config.proto",
Hector Dearmana89cc572018-02-23 12:02:58 +00001140 "protos/perfetto/config/ftrace/ftrace_config.proto",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001141 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +01001142 "protos/perfetto/config/inode_file/inode_file_config.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001143 "protos/perfetto/config/power/android_power_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01001144 "protos/perfetto/config/process_stats/process_stats_config.proto",
Florian Mayer8e7eac42018-11-05 16:04:11 +00001145 "protos/perfetto/config/profiling/heapprofd_config.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001146 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Lalit Maganti3f5705c2018-03-09 12:09:44 +00001147 "protos/perfetto/config/test_config.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001148 "protos/perfetto/config/trace_config.proto",
Sami Kyostilab27619f2017-12-13 19:22:16 +00001149 ],
1150 tools: [
1151 "aprotoc",
1152 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00001153 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 +00001154 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001155 "external/perfetto/protos/perfetto/config/android/android_log_config.pb.h",
Ryan Savitskifde4ae62019-06-14 16:02:52 +01001156 "external/perfetto/protos/perfetto/config/android/packages_list_config.pb.h",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001157 "external/perfetto/protos/perfetto/config/chrome/chrome_config.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001158 "external/perfetto/protos/perfetto/config/data_source_config.pb.h",
Hector Dearmana89cc572018-02-23 12:02:58 +00001159 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pb.h",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001160 "external/perfetto/protos/perfetto/config/gpu/gpu_counter_config.pb.h",
Primiano Tuccidae35652018-03-29 18:32:02 +01001161 "external/perfetto/protos/perfetto/config/inode_file/inode_file_config.pb.h",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001162 "external/perfetto/protos/perfetto/config/power/android_power_config.pb.h",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01001163 "external/perfetto/protos/perfetto/config/process_stats/process_stats_config.pb.h",
Florian Mayer8e7eac42018-11-05 16:04:11 +00001164 "external/perfetto/protos/perfetto/config/profiling/heapprofd_config.pb.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001165 "external/perfetto/protos/perfetto/config/sys_stats/sys_stats_config.pb.h",
Lalit Maganti3f5705c2018-03-09 12:09:44 +00001166 "external/perfetto/protos/perfetto/config/test_config.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001167 "external/perfetto/protos/perfetto/config/trace_config.pb.h",
Sami Kyostilab27619f2017-12-13 19:22:16 +00001168 ],
1169 export_include_dirs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +00001170 "protos",
Sami Kyostilab27619f2017-12-13 19:22:16 +00001171 ],
1172}
1173
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001174// GN target: //protos/perfetto/config:zero_gen
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001175genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001176 name: "perfetto_protos_perfetto_config_zero_gen",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001177 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001178 "protos/perfetto/config/android/android_log_config.proto",
Ryan Savitskifde4ae62019-06-14 16:02:52 +01001179 "protos/perfetto/config/android/packages_list_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001180 "protos/perfetto/config/chrome/chrome_config.proto",
1181 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001182 "protos/perfetto/config/ftrace/ftrace_config.proto",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001183 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +01001184 "protos/perfetto/config/inode_file/inode_file_config.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001185 "protos/perfetto/config/power/android_power_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01001186 "protos/perfetto/config/process_stats/process_stats_config.proto",
Florian Mayer8e7eac42018-11-05 16:04:11 +00001187 "protos/perfetto/config/profiling/heapprofd_config.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001188 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001189 "protos/perfetto/config/test_config.proto",
1190 "protos/perfetto/config/trace_config.proto",
1191 ],
1192 tools: [
1193 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001194 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001195 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001196 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001197 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001198 "external/perfetto/protos/perfetto/config/android/android_log_config.pbzero.cc",
Ryan Savitskifde4ae62019-06-14 16:02:52 +01001199 "external/perfetto/protos/perfetto/config/android/packages_list_config.pbzero.cc",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001200 "external/perfetto/protos/perfetto/config/chrome/chrome_config.pbzero.cc",
1201 "external/perfetto/protos/perfetto/config/data_source_config.pbzero.cc",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001202 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pbzero.cc",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001203 "external/perfetto/protos/perfetto/config/gpu/gpu_counter_config.pbzero.cc",
Primiano Tuccidae35652018-03-29 18:32:02 +01001204 "external/perfetto/protos/perfetto/config/inode_file/inode_file_config.pbzero.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001205 "external/perfetto/protos/perfetto/config/power/android_power_config.pbzero.cc",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01001206 "external/perfetto/protos/perfetto/config/process_stats/process_stats_config.pbzero.cc",
Florian Mayer8e7eac42018-11-05 16:04:11 +00001207 "external/perfetto/protos/perfetto/config/profiling/heapprofd_config.pbzero.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001208 "external/perfetto/protos/perfetto/config/sys_stats/sys_stats_config.pbzero.cc",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001209 "external/perfetto/protos/perfetto/config/test_config.pbzero.cc",
1210 "external/perfetto/protos/perfetto/config/trace_config.pbzero.cc",
1211 ],
1212}
1213
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001214// GN target: //protos/perfetto/config:zero_gen
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001215genrule {
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001216 name: "perfetto_protos_perfetto_config_zero_gen_headers",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001217 srcs: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001218 "protos/perfetto/config/android/android_log_config.proto",
Ryan Savitskifde4ae62019-06-14 16:02:52 +01001219 "protos/perfetto/config/android/packages_list_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001220 "protos/perfetto/config/chrome/chrome_config.proto",
1221 "protos/perfetto/config/data_source_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001222 "protos/perfetto/config/ftrace/ftrace_config.proto",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001223 "protos/perfetto/config/gpu/gpu_counter_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +01001224 "protos/perfetto/config/inode_file/inode_file_config.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001225 "protos/perfetto/config/power/android_power_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01001226 "protos/perfetto/config/process_stats/process_stats_config.proto",
Florian Mayer8e7eac42018-11-05 16:04:11 +00001227 "protos/perfetto/config/profiling/heapprofd_config.proto",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001228 "protos/perfetto/config/sys_stats/sys_stats_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001229 "protos/perfetto/config/test_config.proto",
1230 "protos/perfetto/config/trace_config.proto",
1231 ],
1232 tools: [
1233 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001234 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001235 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001236 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001237 out: [
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001238 "external/perfetto/protos/perfetto/config/android/android_log_config.pbzero.h",
Ryan Savitskifde4ae62019-06-14 16:02:52 +01001239 "external/perfetto/protos/perfetto/config/android/packages_list_config.pbzero.h",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001240 "external/perfetto/protos/perfetto/config/chrome/chrome_config.pbzero.h",
1241 "external/perfetto/protos/perfetto/config/data_source_config.pbzero.h",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001242 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pbzero.h",
Raymond Chiu9a707c22019-05-22 13:19:47 -07001243 "external/perfetto/protos/perfetto/config/gpu/gpu_counter_config.pbzero.h",
Primiano Tuccidae35652018-03-29 18:32:02 +01001244 "external/perfetto/protos/perfetto/config/inode_file/inode_file_config.pbzero.h",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01001245 "external/perfetto/protos/perfetto/config/power/android_power_config.pbzero.h",
Hector Dearman1b9c58a2018-03-29 18:45:06 +01001246 "external/perfetto/protos/perfetto/config/process_stats/process_stats_config.pbzero.h",
Florian Mayer8e7eac42018-11-05 16:04:11 +00001247 "external/perfetto/protos/perfetto/config/profiling/heapprofd_config.pbzero.h",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01001248 "external/perfetto/protos/perfetto/config/sys_stats/sys_stats_config.pbzero.h",
Sami Kyostila200bd2e2018-03-26 12:24:10 +01001249 "external/perfetto/protos/perfetto/config/test_config.pbzero.h",
1250 "external/perfetto/protos/perfetto/config/trace_config.pbzero.h",
1251 ],
1252 export_include_dirs: [
1253 "protos",
1254 ],
1255}
1256
Primiano Tucci20b760c2018-01-19 12:36:12 +00001257// GN target: //protos/perfetto/ipc:ipc_gen
Sami Kyostila71625d72017-12-18 10:29:49 +00001258genrule {
Primiano Tucci20b760c2018-01-19 12:36:12 +00001259 name: "perfetto_protos_perfetto_ipc_ipc_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +00001260 srcs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +00001261 "protos/perfetto/ipc/consumer_port.proto",
1262 "protos/perfetto/ipc/producer_port.proto",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001263 ],
1264 tools: [
1265 "aprotoc",
1266 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
1267 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00001268 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 +00001269 out: [
Primiano Tucci20b760c2018-01-19 12:36:12 +00001270 "external/perfetto/protos/perfetto/ipc/consumer_port.ipc.cc",
1271 "external/perfetto/protos/perfetto/ipc/consumer_port.pb.cc",
1272 "external/perfetto/protos/perfetto/ipc/producer_port.ipc.cc",
1273 "external/perfetto/protos/perfetto/ipc/producer_port.pb.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001274 ],
1275}
1276
Primiano Tucci20b760c2018-01-19 12:36:12 +00001277// GN target: //protos/perfetto/ipc:ipc_gen
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001278genrule {
Primiano Tucci20b760c2018-01-19 12:36:12 +00001279 name: "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001280 srcs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +00001281 "protos/perfetto/ipc/consumer_port.proto",
1282 "protos/perfetto/ipc/producer_port.proto",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001283 ],
1284 tools: [
1285 "aprotoc",
1286 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
1287 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00001288 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 +00001289 out: [
Primiano Tucci20b760c2018-01-19 12:36:12 +00001290 "external/perfetto/protos/perfetto/ipc/consumer_port.ipc.h",
1291 "external/perfetto/protos/perfetto/ipc/consumer_port.pb.h",
1292 "external/perfetto/protos/perfetto/ipc/producer_port.ipc.h",
1293 "external/perfetto/protos/perfetto/ipc/producer_port.pb.h",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001294 ],
1295 export_include_dirs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +00001296 "protos",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001297 ],
1298}
1299
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001300// GN target: //protos/perfetto/metrics/android:zero_gen
1301genrule {
1302 name: "perfetto_protos_perfetto_metrics_android_zero_gen",
1303 srcs: [
Silvia Vinyesb39c77f2019-06-04 10:46:12 +01001304 "protos/perfetto/metrics/android/batt_metric.proto",
Silvia Vinyes2e6a7312019-06-04 11:15:59 +01001305 "protos/perfetto/metrics/android/cpu_metric.proto",
Ioannis Ilkos05e211f2019-05-28 15:21:00 +01001306 "protos/perfetto/metrics/android/heap_profile.proto",
Ioannis Ilkosdb8b1cb2019-06-25 17:05:32 +01001307 "protos/perfetto/metrics/android/ion_metric.proto",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +01001308 "protos/perfetto/metrics/android/lmk_metric.proto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001309 "protos/perfetto/metrics/android/mem_metric.proto",
Lalit Magantia316d6e2019-07-09 19:01:01 +01001310 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
Ioannis Ilkosf1835e32019-07-11 14:11:48 +01001311 "protos/perfetto/metrics/android/package_list.proto",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +01001312 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkos96bec012019-06-27 15:21:57 +01001313 "protos/perfetto/metrics/android/process_growth.proto",
Ioannis Ilkos20d5e8b2019-05-16 15:43:26 +01001314 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001315 ],
1316 tools: [
1317 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001318 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001319 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001320 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001321 out: [
Silvia Vinyesb39c77f2019-06-04 10:46:12 +01001322 "external/perfetto/protos/perfetto/metrics/android/batt_metric.pbzero.cc",
Silvia Vinyes2e6a7312019-06-04 11:15:59 +01001323 "external/perfetto/protos/perfetto/metrics/android/cpu_metric.pbzero.cc",
Ioannis Ilkos05e211f2019-05-28 15:21:00 +01001324 "external/perfetto/protos/perfetto/metrics/android/heap_profile.pbzero.cc",
Ioannis Ilkosdb8b1cb2019-06-25 17:05:32 +01001325 "external/perfetto/protos/perfetto/metrics/android/ion_metric.pbzero.cc",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +01001326 "external/perfetto/protos/perfetto/metrics/android/lmk_metric.pbzero.cc",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001327 "external/perfetto/protos/perfetto/metrics/android/mem_metric.pbzero.cc",
Lalit Magantia316d6e2019-07-09 19:01:01 +01001328 "external/perfetto/protos/perfetto/metrics/android/mem_unagg_metric.pbzero.cc",
Ioannis Ilkosf1835e32019-07-11 14:11:48 +01001329 "external/perfetto/protos/perfetto/metrics/android/package_list.pbzero.cc",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +01001330 "external/perfetto/protos/perfetto/metrics/android/powrails_metric.pbzero.cc",
Ioannis Ilkos96bec012019-06-27 15:21:57 +01001331 "external/perfetto/protos/perfetto/metrics/android/process_growth.pbzero.cc",
Ioannis Ilkos20d5e8b2019-05-16 15:43:26 +01001332 "external/perfetto/protos/perfetto/metrics/android/startup_metric.pbzero.cc",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001333 ],
1334}
1335
1336// GN target: //protos/perfetto/metrics/android:zero_gen
1337genrule {
1338 name: "perfetto_protos_perfetto_metrics_android_zero_gen_headers",
1339 srcs: [
Silvia Vinyesb39c77f2019-06-04 10:46:12 +01001340 "protos/perfetto/metrics/android/batt_metric.proto",
Silvia Vinyes2e6a7312019-06-04 11:15:59 +01001341 "protos/perfetto/metrics/android/cpu_metric.proto",
Ioannis Ilkos05e211f2019-05-28 15:21:00 +01001342 "protos/perfetto/metrics/android/heap_profile.proto",
Ioannis Ilkosdb8b1cb2019-06-25 17:05:32 +01001343 "protos/perfetto/metrics/android/ion_metric.proto",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +01001344 "protos/perfetto/metrics/android/lmk_metric.proto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001345 "protos/perfetto/metrics/android/mem_metric.proto",
Lalit Magantia316d6e2019-07-09 19:01:01 +01001346 "protos/perfetto/metrics/android/mem_unagg_metric.proto",
Ioannis Ilkosf1835e32019-07-11 14:11:48 +01001347 "protos/perfetto/metrics/android/package_list.proto",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +01001348 "protos/perfetto/metrics/android/powrails_metric.proto",
Ioannis Ilkos96bec012019-06-27 15:21:57 +01001349 "protos/perfetto/metrics/android/process_growth.proto",
Ioannis Ilkos20d5e8b2019-05-16 15:43:26 +01001350 "protos/perfetto/metrics/android/startup_metric.proto",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001351 ],
1352 tools: [
1353 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001354 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001355 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001356 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001357 out: [
Silvia Vinyesb39c77f2019-06-04 10:46:12 +01001358 "external/perfetto/protos/perfetto/metrics/android/batt_metric.pbzero.h",
Silvia Vinyes2e6a7312019-06-04 11:15:59 +01001359 "external/perfetto/protos/perfetto/metrics/android/cpu_metric.pbzero.h",
Ioannis Ilkos05e211f2019-05-28 15:21:00 +01001360 "external/perfetto/protos/perfetto/metrics/android/heap_profile.pbzero.h",
Ioannis Ilkosdb8b1cb2019-06-25 17:05:32 +01001361 "external/perfetto/protos/perfetto/metrics/android/ion_metric.pbzero.h",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +01001362 "external/perfetto/protos/perfetto/metrics/android/lmk_metric.pbzero.h",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001363 "external/perfetto/protos/perfetto/metrics/android/mem_metric.pbzero.h",
Lalit Magantia316d6e2019-07-09 19:01:01 +01001364 "external/perfetto/protos/perfetto/metrics/android/mem_unagg_metric.pbzero.h",
Ioannis Ilkosf1835e32019-07-11 14:11:48 +01001365 "external/perfetto/protos/perfetto/metrics/android/package_list.pbzero.h",
Ioannis Ilkos3e5b9152019-06-17 19:09:58 +01001366 "external/perfetto/protos/perfetto/metrics/android/powrails_metric.pbzero.h",
Ioannis Ilkos96bec012019-06-27 15:21:57 +01001367 "external/perfetto/protos/perfetto/metrics/android/process_growth.pbzero.h",
Ioannis Ilkos20d5e8b2019-05-16 15:43:26 +01001368 "external/perfetto/protos/perfetto/metrics/android/startup_metric.pbzero.h",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001369 ],
1370 export_include_dirs: [
1371 "protos",
1372 ],
1373}
1374
1375// GN target: //protos/perfetto/metrics:zero_gen
1376genrule {
1377 name: "perfetto_protos_perfetto_metrics_zero_gen",
1378 srcs: [
1379 "protos/perfetto/metrics/metrics.proto",
1380 ],
1381 tools: [
1382 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001383 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001384 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001385 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001386 out: [
1387 "external/perfetto/protos/perfetto/metrics/metrics.pbzero.cc",
1388 ],
1389}
1390
1391// GN target: //protos/perfetto/metrics:zero_gen
1392genrule {
1393 name: "perfetto_protos_perfetto_metrics_zero_gen_headers",
1394 srcs: [
1395 "protos/perfetto/metrics/metrics.proto",
1396 ],
1397 tools: [
1398 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001399 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001400 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001401 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01001402 out: [
1403 "external/perfetto/protos/perfetto/metrics/metrics.pbzero.h",
1404 ],
1405 export_include_dirs: [
1406 "protos",
1407 ],
1408}
1409
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001410// GN target: //protos/perfetto/trace/android:lite_gen
1411genrule {
1412 name: "perfetto_protos_perfetto_trace_android_lite_gen",
1413 srcs: [
1414 "protos/perfetto/trace/android/android_log.proto",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01001415 "protos/perfetto/trace/android/packages_list.proto",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001416 ],
1417 tools: [
1418 "aprotoc",
1419 ],
1420 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1421 out: [
1422 "external/perfetto/protos/perfetto/trace/android/android_log.pb.cc",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01001423 "external/perfetto/protos/perfetto/trace/android/packages_list.pb.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001424 ],
1425}
1426
1427// GN target: //protos/perfetto/trace/android:lite_gen
1428genrule {
1429 name: "perfetto_protos_perfetto_trace_android_lite_gen_headers",
1430 srcs: [
1431 "protos/perfetto/trace/android/android_log.proto",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01001432 "protos/perfetto/trace/android/packages_list.proto",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001433 ],
1434 tools: [
1435 "aprotoc",
1436 ],
1437 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1438 out: [
1439 "external/perfetto/protos/perfetto/trace/android/android_log.pb.h",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01001440 "external/perfetto/protos/perfetto/trace/android/packages_list.pb.h",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001441 ],
1442 export_include_dirs: [
1443 "protos",
1444 ],
1445}
1446
1447// GN target: //protos/perfetto/trace/android:zero_gen
1448genrule {
1449 name: "perfetto_protos_perfetto_trace_android_zero_gen",
1450 srcs: [
1451 "protos/perfetto/trace/android/android_log.proto",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01001452 "protos/perfetto/trace/android/packages_list.proto",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001453 ],
1454 tools: [
1455 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001456 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001457 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001458 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001459 out: [
1460 "external/perfetto/protos/perfetto/trace/android/android_log.pbzero.cc",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01001461 "external/perfetto/protos/perfetto/trace/android/packages_list.pbzero.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001462 ],
1463}
1464
1465// GN target: //protos/perfetto/trace/android:zero_gen
1466genrule {
1467 name: "perfetto_protos_perfetto_trace_android_zero_gen_headers",
1468 srcs: [
1469 "protos/perfetto/trace/android/android_log.proto",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01001470 "protos/perfetto/trace/android/packages_list.proto",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001471 ],
1472 tools: [
1473 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001474 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001475 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001476 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001477 out: [
1478 "external/perfetto/protos/perfetto/trace/android/android_log.pbzero.h",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01001479 "external/perfetto/protos/perfetto/trace/android/packages_list.pbzero.h",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00001480 ],
1481 export_include_dirs: [
1482 "protos",
1483 ],
1484}
1485
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001486// GN target: //protos/perfetto/trace/chrome:lite_gen
1487genrule {
1488 name: "perfetto_protos_perfetto_trace_chrome_lite_gen",
1489 srcs: [
Mikhail Khokhlov5b60af52019-05-15 10:09:34 +01001490 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
Siddhartha S1239fb32019-06-06 11:17:13 -07001491 "protos/perfetto/trace/chrome/chrome_metadata.proto",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001492 "protos/perfetto/trace/chrome/chrome_trace_event.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: [
Mikhail Khokhlov5b60af52019-05-15 10:09:34 +01001499 "external/perfetto/protos/perfetto/trace/chrome/chrome_benchmark_metadata.pb.cc",
Siddhartha S1239fb32019-06-06 11:17:13 -07001500 "external/perfetto/protos/perfetto/trace/chrome/chrome_metadata.pb.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001501 "external/perfetto/protos/perfetto/trace/chrome/chrome_trace_event.pb.cc",
1502 ],
1503}
1504
1505// GN target: //protos/perfetto/trace/chrome:lite_gen
1506genrule {
1507 name: "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
1508 srcs: [
Mikhail Khokhlov5b60af52019-05-15 10:09:34 +01001509 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
Siddhartha S1239fb32019-06-06 11:17:13 -07001510 "protos/perfetto/trace/chrome/chrome_metadata.proto",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001511 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
1512 ],
1513 tools: [
1514 "aprotoc",
1515 ],
1516 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1517 out: [
Mikhail Khokhlov5b60af52019-05-15 10:09:34 +01001518 "external/perfetto/protos/perfetto/trace/chrome/chrome_benchmark_metadata.pb.h",
Siddhartha S1239fb32019-06-06 11:17:13 -07001519 "external/perfetto/protos/perfetto/trace/chrome/chrome_metadata.pb.h",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001520 "external/perfetto/protos/perfetto/trace/chrome/chrome_trace_event.pb.h",
1521 ],
1522 export_include_dirs: [
1523 "protos",
1524 ],
1525}
1526
1527// GN target: //protos/perfetto/trace/chrome:zero_gen
1528genrule {
1529 name: "perfetto_protos_perfetto_trace_chrome_zero_gen",
1530 srcs: [
Mikhail Khokhlov5b60af52019-05-15 10:09:34 +01001531 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
Siddhartha S1239fb32019-06-06 11:17:13 -07001532 "protos/perfetto/trace/chrome/chrome_metadata.proto",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001533 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
1534 ],
1535 tools: [
1536 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001537 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001538 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001539 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001540 out: [
Mikhail Khokhlov5b60af52019-05-15 10:09:34 +01001541 "external/perfetto/protos/perfetto/trace/chrome/chrome_benchmark_metadata.pbzero.cc",
Siddhartha S1239fb32019-06-06 11:17:13 -07001542 "external/perfetto/protos/perfetto/trace/chrome/chrome_metadata.pbzero.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001543 "external/perfetto/protos/perfetto/trace/chrome/chrome_trace_event.pbzero.cc",
1544 ],
1545}
1546
1547// GN target: //protos/perfetto/trace/chrome:zero_gen
1548genrule {
1549 name: "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
1550 srcs: [
Mikhail Khokhlov5b60af52019-05-15 10:09:34 +01001551 "protos/perfetto/trace/chrome/chrome_benchmark_metadata.proto",
Siddhartha S1239fb32019-06-06 11:17:13 -07001552 "protos/perfetto/trace/chrome/chrome_metadata.proto",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001553 "protos/perfetto/trace/chrome/chrome_trace_event.proto",
1554 ],
1555 tools: [
1556 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001557 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001558 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001559 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001560 out: [
Mikhail Khokhlov5b60af52019-05-15 10:09:34 +01001561 "external/perfetto/protos/perfetto/trace/chrome/chrome_benchmark_metadata.pbzero.h",
Siddhartha S1239fb32019-06-06 11:17:13 -07001562 "external/perfetto/protos/perfetto/trace/chrome/chrome_metadata.pbzero.h",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08001563 "external/perfetto/protos/perfetto/trace/chrome/chrome_trace_event.pbzero.h",
1564 ],
1565 export_include_dirs: [
1566 "protos",
1567 ],
1568}
1569
Anna Zapponeed55ebf2018-03-02 12:12:15 +00001570// GN target: //protos/perfetto/trace/filesystem:lite_gen
1571genrule {
1572 name: "perfetto_protos_perfetto_trace_filesystem_lite_gen",
1573 srcs: [
1574 "protos/perfetto/trace/filesystem/inode_file_map.proto",
1575 ],
1576 tools: [
1577 "aprotoc",
1578 ],
1579 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1580 out: [
1581 "external/perfetto/protos/perfetto/trace/filesystem/inode_file_map.pb.cc",
1582 ],
1583}
1584
1585// GN target: //protos/perfetto/trace/filesystem:lite_gen
1586genrule {
1587 name: "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
1588 srcs: [
1589 "protos/perfetto/trace/filesystem/inode_file_map.proto",
1590 ],
1591 tools: [
1592 "aprotoc",
1593 ],
1594 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1595 out: [
1596 "external/perfetto/protos/perfetto/trace/filesystem/inode_file_map.pb.h",
1597 ],
1598 export_include_dirs: [
1599 "protos",
1600 ],
1601}
1602
1603// GN target: //protos/perfetto/trace/filesystem:zero_gen
1604genrule {
1605 name: "perfetto_protos_perfetto_trace_filesystem_zero_gen",
1606 srcs: [
1607 "protos/perfetto/trace/filesystem/inode_file_map.proto",
1608 ],
1609 tools: [
1610 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001611 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00001612 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001613 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00001614 out: [
1615 "external/perfetto/protos/perfetto/trace/filesystem/inode_file_map.pbzero.cc",
1616 ],
1617}
1618
1619// GN target: //protos/perfetto/trace/filesystem:zero_gen
1620genrule {
1621 name: "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
1622 srcs: [
1623 "protos/perfetto/trace/filesystem/inode_file_map.proto",
1624 ],
1625 tools: [
1626 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001627 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00001628 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001629 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00001630 out: [
1631 "external/perfetto/protos/perfetto/trace/filesystem/inode_file_map.pbzero.h",
1632 ],
1633 export_include_dirs: [
1634 "protos",
1635 ],
1636}
1637
Primiano Tucci20b760c2018-01-19 12:36:12 +00001638// GN target: //protos/perfetto/trace/ftrace:lite_gen
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001639genrule {
Primiano Tucci20b760c2018-01-19 12:36:12 +00001640 name: "perfetto_protos_perfetto_trace_ftrace_lite_gen",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001641 srcs: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001642 "protos/perfetto/trace/ftrace/binder.proto",
1643 "protos/perfetto/trace/ftrace/block.proto",
1644 "protos/perfetto/trace/ftrace/cgroup.proto",
1645 "protos/perfetto/trace/ftrace/clk.proto",
1646 "protos/perfetto/trace/ftrace/compaction.proto",
1647 "protos/perfetto/trace/ftrace/ext4.proto",
1648 "protos/perfetto/trace/ftrace/f2fs.proto",
1649 "protos/perfetto/trace/ftrace/fence.proto",
1650 "protos/perfetto/trace/ftrace/filemap.proto",
1651 "protos/perfetto/trace/ftrace/ftrace.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001652 "protos/perfetto/trace/ftrace/ftrace_event.proto",
1653 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001654 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001655 "protos/perfetto/trace/ftrace/generic.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001656 "protos/perfetto/trace/ftrace/i2c.proto",
1657 "protos/perfetto/trace/ftrace/ipi.proto",
1658 "protos/perfetto/trace/ftrace/irq.proto",
1659 "protos/perfetto/trace/ftrace/kmem.proto",
1660 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
1661 "protos/perfetto/trace/ftrace/mdss.proto",
Lalit Maganti3bd67ef2019-01-18 17:44:09 +00001662 "protos/perfetto/trace/ftrace/mm_event.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001663 "protos/perfetto/trace/ftrace/oom.proto",
1664 "protos/perfetto/trace/ftrace/power.proto",
Lalit Magantia73a7252019-01-25 10:32:40 +00001665 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001666 "protos/perfetto/trace/ftrace/regulator.proto",
1667 "protos/perfetto/trace/ftrace/sched.proto",
1668 "protos/perfetto/trace/ftrace/signal.proto",
1669 "protos/perfetto/trace/ftrace/sync.proto",
Hector Dearmanbfc24112019-06-04 19:35:51 +01001670 "protos/perfetto/trace/ftrace/systrace.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001671 "protos/perfetto/trace/ftrace/task.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001672 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001673 "protos/perfetto/trace/ftrace/vmscan.proto",
1674 "protos/perfetto/trace/ftrace/workqueue.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001675 ],
1676 tools: [
1677 "aprotoc",
1678 ],
1679 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1680 out: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001681 "external/perfetto/protos/perfetto/trace/ftrace/binder.pb.cc",
1682 "external/perfetto/protos/perfetto/trace/ftrace/block.pb.cc",
1683 "external/perfetto/protos/perfetto/trace/ftrace/cgroup.pb.cc",
1684 "external/perfetto/protos/perfetto/trace/ftrace/clk.pb.cc",
1685 "external/perfetto/protos/perfetto/trace/ftrace/compaction.pb.cc",
1686 "external/perfetto/protos/perfetto/trace/ftrace/ext4.pb.cc",
1687 "external/perfetto/protos/perfetto/trace/ftrace/f2fs.pb.cc",
1688 "external/perfetto/protos/perfetto/trace/ftrace/fence.pb.cc",
1689 "external/perfetto/protos/perfetto/trace/ftrace/filemap.pb.cc",
1690 "external/perfetto/protos/perfetto/trace/ftrace/ftrace.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001691 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event.pb.cc",
1692 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle.pb.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001693 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_stats.pb.cc",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001694 "external/perfetto/protos/perfetto/trace/ftrace/generic.pb.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001695 "external/perfetto/protos/perfetto/trace/ftrace/i2c.pb.cc",
1696 "external/perfetto/protos/perfetto/trace/ftrace/ipi.pb.cc",
1697 "external/perfetto/protos/perfetto/trace/ftrace/irq.pb.cc",
1698 "external/perfetto/protos/perfetto/trace/ftrace/kmem.pb.cc",
1699 "external/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller.pb.cc",
1700 "external/perfetto/protos/perfetto/trace/ftrace/mdss.pb.cc",
Lalit Maganti3bd67ef2019-01-18 17:44:09 +00001701 "external/perfetto/protos/perfetto/trace/ftrace/mm_event.pb.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001702 "external/perfetto/protos/perfetto/trace/ftrace/oom.pb.cc",
1703 "external/perfetto/protos/perfetto/trace/ftrace/power.pb.cc",
Lalit Magantia73a7252019-01-25 10:32:40 +00001704 "external/perfetto/protos/perfetto/trace/ftrace/raw_syscalls.pb.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001705 "external/perfetto/protos/perfetto/trace/ftrace/regulator.pb.cc",
1706 "external/perfetto/protos/perfetto/trace/ftrace/sched.pb.cc",
1707 "external/perfetto/protos/perfetto/trace/ftrace/signal.pb.cc",
1708 "external/perfetto/protos/perfetto/trace/ftrace/sync.pb.cc",
Hector Dearmanbfc24112019-06-04 19:35:51 +01001709 "external/perfetto/protos/perfetto/trace/ftrace/systrace.pb.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001710 "external/perfetto/protos/perfetto/trace/ftrace/task.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001711 "external/perfetto/protos/perfetto/trace/ftrace/test_bundle_wrapper.pb.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001712 "external/perfetto/protos/perfetto/trace/ftrace/vmscan.pb.cc",
1713 "external/perfetto/protos/perfetto/trace/ftrace/workqueue.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001714 ],
1715}
1716
1717// GN target: //protos/perfetto/trace/ftrace:lite_gen
1718genrule {
1719 name: "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
1720 srcs: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001721 "protos/perfetto/trace/ftrace/binder.proto",
1722 "protos/perfetto/trace/ftrace/block.proto",
1723 "protos/perfetto/trace/ftrace/cgroup.proto",
1724 "protos/perfetto/trace/ftrace/clk.proto",
1725 "protos/perfetto/trace/ftrace/compaction.proto",
1726 "protos/perfetto/trace/ftrace/ext4.proto",
1727 "protos/perfetto/trace/ftrace/f2fs.proto",
1728 "protos/perfetto/trace/ftrace/fence.proto",
1729 "protos/perfetto/trace/ftrace/filemap.proto",
1730 "protos/perfetto/trace/ftrace/ftrace.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001731 "protos/perfetto/trace/ftrace/ftrace_event.proto",
1732 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001733 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001734 "protos/perfetto/trace/ftrace/generic.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001735 "protos/perfetto/trace/ftrace/i2c.proto",
1736 "protos/perfetto/trace/ftrace/ipi.proto",
1737 "protos/perfetto/trace/ftrace/irq.proto",
1738 "protos/perfetto/trace/ftrace/kmem.proto",
1739 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
1740 "protos/perfetto/trace/ftrace/mdss.proto",
Lalit Maganti3bd67ef2019-01-18 17:44:09 +00001741 "protos/perfetto/trace/ftrace/mm_event.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001742 "protos/perfetto/trace/ftrace/oom.proto",
1743 "protos/perfetto/trace/ftrace/power.proto",
Lalit Magantia73a7252019-01-25 10:32:40 +00001744 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001745 "protos/perfetto/trace/ftrace/regulator.proto",
1746 "protos/perfetto/trace/ftrace/sched.proto",
1747 "protos/perfetto/trace/ftrace/signal.proto",
1748 "protos/perfetto/trace/ftrace/sync.proto",
Hector Dearmanbfc24112019-06-04 19:35:51 +01001749 "protos/perfetto/trace/ftrace/systrace.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001750 "protos/perfetto/trace/ftrace/task.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001751 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001752 "protos/perfetto/trace/ftrace/vmscan.proto",
1753 "protos/perfetto/trace/ftrace/workqueue.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001754 ],
1755 tools: [
1756 "aprotoc",
1757 ],
1758 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1759 out: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001760 "external/perfetto/protos/perfetto/trace/ftrace/binder.pb.h",
1761 "external/perfetto/protos/perfetto/trace/ftrace/block.pb.h",
1762 "external/perfetto/protos/perfetto/trace/ftrace/cgroup.pb.h",
1763 "external/perfetto/protos/perfetto/trace/ftrace/clk.pb.h",
1764 "external/perfetto/protos/perfetto/trace/ftrace/compaction.pb.h",
1765 "external/perfetto/protos/perfetto/trace/ftrace/ext4.pb.h",
1766 "external/perfetto/protos/perfetto/trace/ftrace/f2fs.pb.h",
1767 "external/perfetto/protos/perfetto/trace/ftrace/fence.pb.h",
1768 "external/perfetto/protos/perfetto/trace/ftrace/filemap.pb.h",
1769 "external/perfetto/protos/perfetto/trace/ftrace/ftrace.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001770 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event.pb.h",
1771 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle.pb.h",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001772 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_stats.pb.h",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001773 "external/perfetto/protos/perfetto/trace/ftrace/generic.pb.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001774 "external/perfetto/protos/perfetto/trace/ftrace/i2c.pb.h",
1775 "external/perfetto/protos/perfetto/trace/ftrace/ipi.pb.h",
1776 "external/perfetto/protos/perfetto/trace/ftrace/irq.pb.h",
1777 "external/perfetto/protos/perfetto/trace/ftrace/kmem.pb.h",
1778 "external/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller.pb.h",
1779 "external/perfetto/protos/perfetto/trace/ftrace/mdss.pb.h",
Lalit Maganti3bd67ef2019-01-18 17:44:09 +00001780 "external/perfetto/protos/perfetto/trace/ftrace/mm_event.pb.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001781 "external/perfetto/protos/perfetto/trace/ftrace/oom.pb.h",
1782 "external/perfetto/protos/perfetto/trace/ftrace/power.pb.h",
Lalit Magantia73a7252019-01-25 10:32:40 +00001783 "external/perfetto/protos/perfetto/trace/ftrace/raw_syscalls.pb.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001784 "external/perfetto/protos/perfetto/trace/ftrace/regulator.pb.h",
1785 "external/perfetto/protos/perfetto/trace/ftrace/sched.pb.h",
1786 "external/perfetto/protos/perfetto/trace/ftrace/signal.pb.h",
1787 "external/perfetto/protos/perfetto/trace/ftrace/sync.pb.h",
Hector Dearmanbfc24112019-06-04 19:35:51 +01001788 "external/perfetto/protos/perfetto/trace/ftrace/systrace.pb.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001789 "external/perfetto/protos/perfetto/trace/ftrace/task.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001790 "external/perfetto/protos/perfetto/trace/ftrace/test_bundle_wrapper.pb.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001791 "external/perfetto/protos/perfetto/trace/ftrace/vmscan.pb.h",
1792 "external/perfetto/protos/perfetto/trace/ftrace/workqueue.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001793 ],
1794 export_include_dirs: [
1795 "protos",
1796 ],
1797}
1798
1799// GN target: //protos/perfetto/trace/ftrace:zero_gen
1800genrule {
1801 name: "perfetto_protos_perfetto_trace_ftrace_zero_gen",
1802 srcs: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001803 "protos/perfetto/trace/ftrace/binder.proto",
1804 "protos/perfetto/trace/ftrace/block.proto",
1805 "protos/perfetto/trace/ftrace/cgroup.proto",
1806 "protos/perfetto/trace/ftrace/clk.proto",
1807 "protos/perfetto/trace/ftrace/compaction.proto",
1808 "protos/perfetto/trace/ftrace/ext4.proto",
1809 "protos/perfetto/trace/ftrace/f2fs.proto",
1810 "protos/perfetto/trace/ftrace/fence.proto",
1811 "protos/perfetto/trace/ftrace/filemap.proto",
1812 "protos/perfetto/trace/ftrace/ftrace.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001813 "protos/perfetto/trace/ftrace/ftrace_event.proto",
1814 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001815 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001816 "protos/perfetto/trace/ftrace/generic.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001817 "protos/perfetto/trace/ftrace/i2c.proto",
1818 "protos/perfetto/trace/ftrace/ipi.proto",
1819 "protos/perfetto/trace/ftrace/irq.proto",
1820 "protos/perfetto/trace/ftrace/kmem.proto",
1821 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
1822 "protos/perfetto/trace/ftrace/mdss.proto",
Lalit Maganti3bd67ef2019-01-18 17:44:09 +00001823 "protos/perfetto/trace/ftrace/mm_event.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001824 "protos/perfetto/trace/ftrace/oom.proto",
1825 "protos/perfetto/trace/ftrace/power.proto",
Lalit Magantia73a7252019-01-25 10:32:40 +00001826 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001827 "protos/perfetto/trace/ftrace/regulator.proto",
1828 "protos/perfetto/trace/ftrace/sched.proto",
1829 "protos/perfetto/trace/ftrace/signal.proto",
1830 "protos/perfetto/trace/ftrace/sync.proto",
Hector Dearmanbfc24112019-06-04 19:35:51 +01001831 "protos/perfetto/trace/ftrace/systrace.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001832 "protos/perfetto/trace/ftrace/task.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001833 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001834 "protos/perfetto/trace/ftrace/vmscan.proto",
1835 "protos/perfetto/trace/ftrace/workqueue.proto",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001836 ],
1837 tools: [
1838 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001839 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001840 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001841 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001842 out: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001843 "external/perfetto/protos/perfetto/trace/ftrace/binder.pbzero.cc",
1844 "external/perfetto/protos/perfetto/trace/ftrace/block.pbzero.cc",
1845 "external/perfetto/protos/perfetto/trace/ftrace/cgroup.pbzero.cc",
1846 "external/perfetto/protos/perfetto/trace/ftrace/clk.pbzero.cc",
1847 "external/perfetto/protos/perfetto/trace/ftrace/compaction.pbzero.cc",
1848 "external/perfetto/protos/perfetto/trace/ftrace/ext4.pbzero.cc",
1849 "external/perfetto/protos/perfetto/trace/ftrace/f2fs.pbzero.cc",
1850 "external/perfetto/protos/perfetto/trace/ftrace/fence.pbzero.cc",
1851 "external/perfetto/protos/perfetto/trace/ftrace/filemap.pbzero.cc",
1852 "external/perfetto/protos/perfetto/trace/ftrace/ftrace.pbzero.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001853 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event.pbzero.cc",
1854 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle.pbzero.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001855 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_stats.pbzero.cc",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001856 "external/perfetto/protos/perfetto/trace/ftrace/generic.pbzero.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001857 "external/perfetto/protos/perfetto/trace/ftrace/i2c.pbzero.cc",
1858 "external/perfetto/protos/perfetto/trace/ftrace/ipi.pbzero.cc",
1859 "external/perfetto/protos/perfetto/trace/ftrace/irq.pbzero.cc",
1860 "external/perfetto/protos/perfetto/trace/ftrace/kmem.pbzero.cc",
1861 "external/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller.pbzero.cc",
1862 "external/perfetto/protos/perfetto/trace/ftrace/mdss.pbzero.cc",
Lalit Maganti3bd67ef2019-01-18 17:44:09 +00001863 "external/perfetto/protos/perfetto/trace/ftrace/mm_event.pbzero.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001864 "external/perfetto/protos/perfetto/trace/ftrace/oom.pbzero.cc",
1865 "external/perfetto/protos/perfetto/trace/ftrace/power.pbzero.cc",
Lalit Magantia73a7252019-01-25 10:32:40 +00001866 "external/perfetto/protos/perfetto/trace/ftrace/raw_syscalls.pbzero.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001867 "external/perfetto/protos/perfetto/trace/ftrace/regulator.pbzero.cc",
1868 "external/perfetto/protos/perfetto/trace/ftrace/sched.pbzero.cc",
1869 "external/perfetto/protos/perfetto/trace/ftrace/signal.pbzero.cc",
1870 "external/perfetto/protos/perfetto/trace/ftrace/sync.pbzero.cc",
Hector Dearmanbfc24112019-06-04 19:35:51 +01001871 "external/perfetto/protos/perfetto/trace/ftrace/systrace.pbzero.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001872 "external/perfetto/protos/perfetto/trace/ftrace/task.pbzero.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001873 "external/perfetto/protos/perfetto/trace/ftrace/test_bundle_wrapper.pbzero.cc",
Hector Dearmane0e57802018-11-21 16:09:56 +00001874 "external/perfetto/protos/perfetto/trace/ftrace/vmscan.pbzero.cc",
1875 "external/perfetto/protos/perfetto/trace/ftrace/workqueue.pbzero.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001876 ],
1877}
1878
Primiano Tucci20b760c2018-01-19 12:36:12 +00001879// GN target: //protos/perfetto/trace/ftrace:zero_gen
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001880genrule {
Primiano Tucci20b760c2018-01-19 12:36:12 +00001881 name: "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001882 srcs: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001883 "protos/perfetto/trace/ftrace/binder.proto",
1884 "protos/perfetto/trace/ftrace/block.proto",
1885 "protos/perfetto/trace/ftrace/cgroup.proto",
1886 "protos/perfetto/trace/ftrace/clk.proto",
1887 "protos/perfetto/trace/ftrace/compaction.proto",
1888 "protos/perfetto/trace/ftrace/ext4.proto",
1889 "protos/perfetto/trace/ftrace/f2fs.proto",
1890 "protos/perfetto/trace/ftrace/fence.proto",
1891 "protos/perfetto/trace/ftrace/filemap.proto",
1892 "protos/perfetto/trace/ftrace/ftrace.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001893 "protos/perfetto/trace/ftrace/ftrace_event.proto",
1894 "protos/perfetto/trace/ftrace/ftrace_event_bundle.proto",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001895 "protos/perfetto/trace/ftrace/ftrace_stats.proto",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001896 "protos/perfetto/trace/ftrace/generic.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001897 "protos/perfetto/trace/ftrace/i2c.proto",
1898 "protos/perfetto/trace/ftrace/ipi.proto",
1899 "protos/perfetto/trace/ftrace/irq.proto",
1900 "protos/perfetto/trace/ftrace/kmem.proto",
1901 "protos/perfetto/trace/ftrace/lowmemorykiller.proto",
1902 "protos/perfetto/trace/ftrace/mdss.proto",
Lalit Maganti3bd67ef2019-01-18 17:44:09 +00001903 "protos/perfetto/trace/ftrace/mm_event.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001904 "protos/perfetto/trace/ftrace/oom.proto",
1905 "protos/perfetto/trace/ftrace/power.proto",
Lalit Magantia73a7252019-01-25 10:32:40 +00001906 "protos/perfetto/trace/ftrace/raw_syscalls.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001907 "protos/perfetto/trace/ftrace/regulator.proto",
1908 "protos/perfetto/trace/ftrace/sched.proto",
1909 "protos/perfetto/trace/ftrace/signal.proto",
1910 "protos/perfetto/trace/ftrace/sync.proto",
Hector Dearmanbfc24112019-06-04 19:35:51 +01001911 "protos/perfetto/trace/ftrace/systrace.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001912 "protos/perfetto/trace/ftrace/task.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001913 "protos/perfetto/trace/ftrace/test_bundle_wrapper.proto",
Hector Dearmane0e57802018-11-21 16:09:56 +00001914 "protos/perfetto/trace/ftrace/vmscan.proto",
1915 "protos/perfetto/trace/ftrace/workqueue.proto",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001916 ],
1917 tools: [
1918 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01001919 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001920 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01001921 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001922 out: [
Hector Dearmane0e57802018-11-21 16:09:56 +00001923 "external/perfetto/protos/perfetto/trace/ftrace/binder.pbzero.h",
1924 "external/perfetto/protos/perfetto/trace/ftrace/block.pbzero.h",
1925 "external/perfetto/protos/perfetto/trace/ftrace/cgroup.pbzero.h",
1926 "external/perfetto/protos/perfetto/trace/ftrace/clk.pbzero.h",
1927 "external/perfetto/protos/perfetto/trace/ftrace/compaction.pbzero.h",
1928 "external/perfetto/protos/perfetto/trace/ftrace/ext4.pbzero.h",
1929 "external/perfetto/protos/perfetto/trace/ftrace/f2fs.pbzero.h",
1930 "external/perfetto/protos/perfetto/trace/ftrace/fence.pbzero.h",
1931 "external/perfetto/protos/perfetto/trace/ftrace/filemap.pbzero.h",
1932 "external/perfetto/protos/perfetto/trace/ftrace/ftrace.pbzero.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001933 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event.pbzero.h",
1934 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle.pbzero.h",
Hector Dearman3afb1e02018-04-27 16:46:52 +01001935 "external/perfetto/protos/perfetto/trace/ftrace/ftrace_stats.pbzero.h",
Isabelle Taylor98e560d2018-11-22 11:59:12 +00001936 "external/perfetto/protos/perfetto/trace/ftrace/generic.pbzero.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001937 "external/perfetto/protos/perfetto/trace/ftrace/i2c.pbzero.h",
1938 "external/perfetto/protos/perfetto/trace/ftrace/ipi.pbzero.h",
1939 "external/perfetto/protos/perfetto/trace/ftrace/irq.pbzero.h",
1940 "external/perfetto/protos/perfetto/trace/ftrace/kmem.pbzero.h",
1941 "external/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller.pbzero.h",
1942 "external/perfetto/protos/perfetto/trace/ftrace/mdss.pbzero.h",
Lalit Maganti3bd67ef2019-01-18 17:44:09 +00001943 "external/perfetto/protos/perfetto/trace/ftrace/mm_event.pbzero.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001944 "external/perfetto/protos/perfetto/trace/ftrace/oom.pbzero.h",
1945 "external/perfetto/protos/perfetto/trace/ftrace/power.pbzero.h",
Lalit Magantia73a7252019-01-25 10:32:40 +00001946 "external/perfetto/protos/perfetto/trace/ftrace/raw_syscalls.pbzero.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001947 "external/perfetto/protos/perfetto/trace/ftrace/regulator.pbzero.h",
1948 "external/perfetto/protos/perfetto/trace/ftrace/sched.pbzero.h",
1949 "external/perfetto/protos/perfetto/trace/ftrace/signal.pbzero.h",
1950 "external/perfetto/protos/perfetto/trace/ftrace/sync.pbzero.h",
Hector Dearmanbfc24112019-06-04 19:35:51 +01001951 "external/perfetto/protos/perfetto/trace/ftrace/systrace.pbzero.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001952 "external/perfetto/protos/perfetto/trace/ftrace/task.pbzero.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00001953 "external/perfetto/protos/perfetto/trace/ftrace/test_bundle_wrapper.pbzero.h",
Hector Dearmane0e57802018-11-21 16:09:56 +00001954 "external/perfetto/protos/perfetto/trace/ftrace/vmscan.pbzero.h",
1955 "external/perfetto/protos/perfetto/trace/ftrace/workqueue.pbzero.h",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00001956 ],
1957 export_include_dirs: [
Primiano Tucci20b760c2018-01-19 12:36:12 +00001958 "protos",
1959 ],
1960}
1961
Raymond Chiu9a707c22019-05-22 13:19:47 -07001962// GN target: //protos/perfetto/trace/gpu:lite_gen
1963genrule {
1964 name: "perfetto_protos_perfetto_trace_gpu_lite_gen",
1965 srcs: [
1966 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
1967 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
1968 ],
1969 tools: [
1970 "aprotoc",
1971 ],
1972 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1973 out: [
1974 "external/perfetto/protos/perfetto/trace/gpu/gpu_counter_event.pb.cc",
1975 "external/perfetto/protos/perfetto/trace/gpu/gpu_render_stage_event.pb.cc",
1976 ],
1977}
1978
1979// GN target: //protos/perfetto/trace/gpu:lite_gen
1980genrule {
1981 name: "perfetto_protos_perfetto_trace_gpu_lite_gen_headers",
1982 srcs: [
1983 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
1984 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
1985 ],
1986 tools: [
1987 "aprotoc",
1988 ],
1989 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
1990 out: [
1991 "external/perfetto/protos/perfetto/trace/gpu/gpu_counter_event.pb.h",
1992 "external/perfetto/protos/perfetto/trace/gpu/gpu_render_stage_event.pb.h",
1993 ],
1994 export_include_dirs: [
1995 "protos",
1996 ],
1997}
1998
1999// GN target: //protos/perfetto/trace/gpu:zero_gen
2000genrule {
2001 name: "perfetto_protos_perfetto_trace_gpu_zero_gen",
2002 srcs: [
2003 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
2004 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
2005 ],
2006 tools: [
2007 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002008 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Raymond Chiu9a707c22019-05-22 13:19:47 -07002009 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002010 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Raymond Chiu9a707c22019-05-22 13:19:47 -07002011 out: [
2012 "external/perfetto/protos/perfetto/trace/gpu/gpu_counter_event.pbzero.cc",
2013 "external/perfetto/protos/perfetto/trace/gpu/gpu_render_stage_event.pbzero.cc",
2014 ],
2015}
2016
2017// GN target: //protos/perfetto/trace/gpu:zero_gen
2018genrule {
2019 name: "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
2020 srcs: [
2021 "protos/perfetto/trace/gpu/gpu_counter_event.proto",
2022 "protos/perfetto/trace/gpu/gpu_render_stage_event.proto",
2023 ],
2024 tools: [
2025 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002026 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Raymond Chiu9a707c22019-05-22 13:19:47 -07002027 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002028 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Raymond Chiu9a707c22019-05-22 13:19:47 -07002029 out: [
2030 "external/perfetto/protos/perfetto/trace/gpu/gpu_counter_event.pbzero.h",
2031 "external/perfetto/protos/perfetto/trace/gpu/gpu_render_stage_event.pbzero.h",
2032 ],
2033 export_include_dirs: [
2034 "protos",
2035 ],
2036}
2037
Eric Secklerc73ef062019-02-25 12:30:35 +00002038// GN target: //protos/perfetto/trace/interned_data:lite_gen
2039genrule {
2040 name: "perfetto_protos_perfetto_trace_interned_data_lite_gen",
2041 srcs: [
2042 "protos/perfetto/trace/interned_data/interned_data.proto",
2043 ],
2044 tools: [
2045 "aprotoc",
2046 ],
2047 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2048 out: [
2049 "external/perfetto/protos/perfetto/trace/interned_data/interned_data.pb.cc",
2050 ],
2051}
2052
2053// GN target: //protos/perfetto/trace/interned_data:lite_gen
2054genrule {
2055 name: "perfetto_protos_perfetto_trace_interned_data_lite_gen_headers",
2056 srcs: [
2057 "protos/perfetto/trace/interned_data/interned_data.proto",
2058 ],
2059 tools: [
2060 "aprotoc",
2061 ],
2062 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2063 out: [
2064 "external/perfetto/protos/perfetto/trace/interned_data/interned_data.pb.h",
2065 ],
2066 export_include_dirs: [
2067 "protos",
2068 ],
2069}
2070
2071// GN target: //protos/perfetto/trace/interned_data:zero_gen
2072genrule {
2073 name: "perfetto_protos_perfetto_trace_interned_data_zero_gen",
2074 srcs: [
2075 "protos/perfetto/trace/interned_data/interned_data.proto",
2076 ],
2077 tools: [
2078 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002079 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Eric Secklerc73ef062019-02-25 12:30:35 +00002080 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002081 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Eric Secklerc73ef062019-02-25 12:30:35 +00002082 out: [
2083 "external/perfetto/protos/perfetto/trace/interned_data/interned_data.pbzero.cc",
2084 ],
2085}
2086
2087// GN target: //protos/perfetto/trace/interned_data:zero_gen
2088genrule {
2089 name: "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
2090 srcs: [
2091 "protos/perfetto/trace/interned_data/interned_data.proto",
2092 ],
2093 tools: [
2094 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002095 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Eric Secklerc73ef062019-02-25 12:30:35 +00002096 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002097 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Eric Secklerc73ef062019-02-25 12:30:35 +00002098 out: [
2099 "external/perfetto/protos/perfetto/trace/interned_data/interned_data.pbzero.h",
2100 ],
2101 export_include_dirs: [
2102 "protos",
2103 ],
2104}
2105
Primiano Tucci20b760c2018-01-19 12:36:12 +00002106// GN target: //protos/perfetto/trace:lite_gen
2107genrule {
2108 name: "perfetto_protos_perfetto_trace_lite_gen",
2109 srcs: [
2110 "protos/perfetto/trace/test_event.proto",
2111 "protos/perfetto/trace/trace.proto",
2112 "protos/perfetto/trace/trace_packet.proto",
Primiano Tucci07e104d2018-04-03 20:45:35 +02002113 ],
2114 tools: [
2115 "aprotoc",
2116 ],
2117 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2118 out: [
2119 "external/perfetto/protos/perfetto/trace/test_event.pb.cc",
2120 "external/perfetto/protos/perfetto/trace/trace.pb.cc",
2121 "external/perfetto/protos/perfetto/trace/trace_packet.pb.cc",
2122 ],
2123}
2124
2125// GN target: //protos/perfetto/trace:lite_gen
2126genrule {
2127 name: "perfetto_protos_perfetto_trace_lite_gen_headers",
2128 srcs: [
2129 "protos/perfetto/trace/test_event.proto",
2130 "protos/perfetto/trace/trace.proto",
2131 "protos/perfetto/trace/trace_packet.proto",
2132 ],
2133 tools: [
2134 "aprotoc",
2135 ],
2136 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2137 out: [
2138 "external/perfetto/protos/perfetto/trace/test_event.pb.h",
2139 "external/perfetto/protos/perfetto/trace/trace.pb.h",
2140 "external/perfetto/protos/perfetto/trace/trace_packet.pb.h",
2141 ],
2142 export_include_dirs: [
2143 "protos",
2144 ],
2145}
2146
2147// GN target: //protos/perfetto/trace:minimal_lite_gen
2148genrule {
2149 name: "perfetto_protos_perfetto_trace_minimal_lite_gen",
2150 srcs: [
2151 "protos/perfetto/trace/clock_snapshot.proto",
Hector Dearman685f7522019-03-12 14:28:56 +00002152 "protos/perfetto/trace/system_info.proto",
Stephen Nusko70ea3302019-04-01 19:44:40 +01002153 "protos/perfetto/trace/trigger.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002154 ],
2155 tools: [
2156 "aprotoc",
2157 ],
2158 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2159 out: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00002160 "external/perfetto/protos/perfetto/trace/clock_snapshot.pb.cc",
Hector Dearman685f7522019-03-12 14:28:56 +00002161 "external/perfetto/protos/perfetto/trace/system_info.pb.cc",
Stephen Nusko70ea3302019-04-01 19:44:40 +01002162 "external/perfetto/protos/perfetto/trace/trigger.pb.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002163 ],
2164}
2165
Primiano Tucci07e104d2018-04-03 20:45:35 +02002166// GN target: //protos/perfetto/trace:minimal_lite_gen
Primiano Tucci20b760c2018-01-19 12:36:12 +00002167genrule {
Primiano Tucci07e104d2018-04-03 20:45:35 +02002168 name: "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002169 srcs: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00002170 "protos/perfetto/trace/clock_snapshot.proto",
Hector Dearman685f7522019-03-12 14:28:56 +00002171 "protos/perfetto/trace/system_info.proto",
Stephen Nusko70ea3302019-04-01 19:44:40 +01002172 "protos/perfetto/trace/trigger.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002173 ],
2174 tools: [
2175 "aprotoc",
2176 ],
2177 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2178 out: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00002179 "external/perfetto/protos/perfetto/trace/clock_snapshot.pb.h",
Hector Dearman685f7522019-03-12 14:28:56 +00002180 "external/perfetto/protos/perfetto/trace/system_info.pb.h",
Stephen Nusko70ea3302019-04-01 19:44:40 +01002181 "external/perfetto/protos/perfetto/trace/trigger.pb.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002182 ],
2183 export_include_dirs: [
2184 "protos",
2185 ],
2186}
2187
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01002188// GN target: //protos/perfetto/trace/perfetto:lite_gen
2189genrule {
2190 name: "perfetto_protos_perfetto_trace_perfetto_lite_gen",
2191 srcs: [
2192 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
2193 ],
2194 tools: [
2195 "aprotoc",
2196 ],
2197 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2198 out: [
2199 "external/perfetto/protos/perfetto/trace/perfetto/perfetto_metatrace.pb.cc",
2200 ],
2201}
2202
2203// GN target: //protos/perfetto/trace/perfetto:lite_gen
2204genrule {
2205 name: "perfetto_protos_perfetto_trace_perfetto_lite_gen_headers",
2206 srcs: [
2207 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
2208 ],
2209 tools: [
2210 "aprotoc",
2211 ],
2212 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2213 out: [
2214 "external/perfetto/protos/perfetto/trace/perfetto/perfetto_metatrace.pb.h",
2215 ],
2216 export_include_dirs: [
2217 "protos",
2218 ],
2219}
2220
2221// GN target: //protos/perfetto/trace/perfetto:zero_gen
2222genrule {
2223 name: "perfetto_protos_perfetto_trace_perfetto_zero_gen",
2224 srcs: [
2225 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
2226 ],
2227 tools: [
2228 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002229 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01002230 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002231 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01002232 out: [
2233 "external/perfetto/protos/perfetto/trace/perfetto/perfetto_metatrace.pbzero.cc",
2234 ],
2235}
2236
2237// GN target: //protos/perfetto/trace/perfetto:zero_gen
2238genrule {
2239 name: "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
2240 srcs: [
2241 "protos/perfetto/trace/perfetto/perfetto_metatrace.proto",
2242 ],
2243 tools: [
2244 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002245 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01002246 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002247 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01002248 out: [
2249 "external/perfetto/protos/perfetto/trace/perfetto/perfetto_metatrace.pbzero.h",
2250 ],
2251 export_include_dirs: [
2252 "protos",
2253 ],
2254}
2255
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002256// GN target: //protos/perfetto/trace/power:lite_gen
2257genrule {
2258 name: "perfetto_protos_perfetto_trace_power_lite_gen",
2259 srcs: [
2260 "protos/perfetto/trace/power/battery_counters.proto",
Esteban Talavera7714cec2019-01-31 15:53:34 +00002261 "protos/perfetto/trace/power/power_rails.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002262 ],
2263 tools: [
2264 "aprotoc",
2265 ],
2266 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2267 out: [
2268 "external/perfetto/protos/perfetto/trace/power/battery_counters.pb.cc",
Esteban Talavera7714cec2019-01-31 15:53:34 +00002269 "external/perfetto/protos/perfetto/trace/power/power_rails.pb.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002270 ],
2271}
2272
2273// GN target: //protos/perfetto/trace/power:lite_gen
2274genrule {
2275 name: "perfetto_protos_perfetto_trace_power_lite_gen_headers",
2276 srcs: [
2277 "protos/perfetto/trace/power/battery_counters.proto",
Esteban Talavera7714cec2019-01-31 15:53:34 +00002278 "protos/perfetto/trace/power/power_rails.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002279 ],
2280 tools: [
2281 "aprotoc",
2282 ],
2283 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2284 out: [
2285 "external/perfetto/protos/perfetto/trace/power/battery_counters.pb.h",
Esteban Talavera7714cec2019-01-31 15:53:34 +00002286 "external/perfetto/protos/perfetto/trace/power/power_rails.pb.h",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002287 ],
2288 export_include_dirs: [
2289 "protos",
2290 ],
2291}
2292
2293// GN target: //protos/perfetto/trace/power:zero_gen
2294genrule {
2295 name: "perfetto_protos_perfetto_trace_power_zero_gen",
2296 srcs: [
2297 "protos/perfetto/trace/power/battery_counters.proto",
Esteban Talavera7714cec2019-01-31 15:53:34 +00002298 "protos/perfetto/trace/power/power_rails.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002299 ],
2300 tools: [
2301 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002302 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002303 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002304 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002305 out: [
2306 "external/perfetto/protos/perfetto/trace/power/battery_counters.pbzero.cc",
Esteban Talavera7714cec2019-01-31 15:53:34 +00002307 "external/perfetto/protos/perfetto/trace/power/power_rails.pbzero.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002308 ],
2309}
2310
2311// GN target: //protos/perfetto/trace/power:zero_gen
2312genrule {
2313 name: "perfetto_protos_perfetto_trace_power_zero_gen_headers",
2314 srcs: [
2315 "protos/perfetto/trace/power/battery_counters.proto",
Esteban Talavera7714cec2019-01-31 15:53:34 +00002316 "protos/perfetto/trace/power/power_rails.proto",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002317 ],
2318 tools: [
2319 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002320 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002321 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002322 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002323 out: [
2324 "external/perfetto/protos/perfetto/trace/power/battery_counters.pbzero.h",
Esteban Talavera7714cec2019-01-31 15:53:34 +00002325 "external/perfetto/protos/perfetto/trace/power/power_rails.pbzero.h",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01002326 ],
2327 export_include_dirs: [
2328 "protos",
2329 ],
2330}
2331
Lalit Magantie59293b2019-05-22 15:07:39 +01002332// GN target: //protos/perfetto/trace_processor:metrics_impl_zero_gen
2333genrule {
2334 name: "perfetto_protos_perfetto_trace_processor_metrics_impl_zero_gen",
2335 srcs: [
2336 "protos/perfetto/trace_processor/metrics_impl.proto",
2337 ],
2338 tools: [
2339 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002340 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Lalit Magantie59293b2019-05-22 15:07:39 +01002341 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002342 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Lalit Magantie59293b2019-05-22 15:07:39 +01002343 out: [
2344 "external/perfetto/protos/perfetto/trace_processor/metrics_impl.pbzero.cc",
2345 ],
2346}
2347
2348// GN target: //protos/perfetto/trace_processor:metrics_impl_zero_gen
2349genrule {
2350 name: "perfetto_protos_perfetto_trace_processor_metrics_impl_zero_gen_headers",
2351 srcs: [
2352 "protos/perfetto/trace_processor/metrics_impl.proto",
2353 ],
2354 tools: [
2355 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002356 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Lalit Magantie59293b2019-05-22 15:07:39 +01002357 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002358 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Lalit Magantie59293b2019-05-22 15:07:39 +01002359 out: [
2360 "external/perfetto/protos/perfetto/trace_processor/metrics_impl.pbzero.h",
2361 ],
2362 export_include_dirs: [
2363 "protos",
2364 ],
2365}
2366
Florian Mayer4afdd642018-11-13 11:11:04 +00002367// GN target: //protos/perfetto/trace/profiling:lite_gen
2368genrule {
2369 name: "perfetto_protos_perfetto_trace_profiling_lite_gen",
2370 srcs: [
Florian Mayer93d16ec2019-06-05 09:51:58 +01002371 "protos/perfetto/trace/profiling/profile_common.proto",
Florian Mayer4afdd642018-11-13 11:11:04 +00002372 "protos/perfetto/trace/profiling/profile_packet.proto",
2373 ],
2374 tools: [
2375 "aprotoc",
2376 ],
2377 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2378 out: [
Florian Mayer93d16ec2019-06-05 09:51:58 +01002379 "external/perfetto/protos/perfetto/trace/profiling/profile_common.pb.cc",
Florian Mayer4afdd642018-11-13 11:11:04 +00002380 "external/perfetto/protos/perfetto/trace/profiling/profile_packet.pb.cc",
2381 ],
2382}
2383
2384// GN target: //protos/perfetto/trace/profiling:lite_gen
2385genrule {
2386 name: "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
2387 srcs: [
Florian Mayer93d16ec2019-06-05 09:51:58 +01002388 "protos/perfetto/trace/profiling/profile_common.proto",
Florian Mayer4afdd642018-11-13 11:11:04 +00002389 "protos/perfetto/trace/profiling/profile_packet.proto",
2390 ],
2391 tools: [
2392 "aprotoc",
2393 ],
2394 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2395 out: [
Florian Mayer93d16ec2019-06-05 09:51:58 +01002396 "external/perfetto/protos/perfetto/trace/profiling/profile_common.pb.h",
Florian Mayer4afdd642018-11-13 11:11:04 +00002397 "external/perfetto/protos/perfetto/trace/profiling/profile_packet.pb.h",
2398 ],
2399 export_include_dirs: [
2400 "protos",
2401 ],
2402}
2403
2404// GN target: //protos/perfetto/trace/profiling:zero_gen
2405genrule {
2406 name: "perfetto_protos_perfetto_trace_profiling_zero_gen",
2407 srcs: [
Florian Mayer93d16ec2019-06-05 09:51:58 +01002408 "protos/perfetto/trace/profiling/profile_common.proto",
Florian Mayer4afdd642018-11-13 11:11:04 +00002409 "protos/perfetto/trace/profiling/profile_packet.proto",
2410 ],
2411 tools: [
2412 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002413 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Florian Mayer4afdd642018-11-13 11:11:04 +00002414 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002415 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Florian Mayer4afdd642018-11-13 11:11:04 +00002416 out: [
Florian Mayer93d16ec2019-06-05 09:51:58 +01002417 "external/perfetto/protos/perfetto/trace/profiling/profile_common.pbzero.cc",
Florian Mayer4afdd642018-11-13 11:11:04 +00002418 "external/perfetto/protos/perfetto/trace/profiling/profile_packet.pbzero.cc",
2419 ],
2420}
2421
2422// GN target: //protos/perfetto/trace/profiling:zero_gen
2423genrule {
2424 name: "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
2425 srcs: [
Florian Mayer93d16ec2019-06-05 09:51:58 +01002426 "protos/perfetto/trace/profiling/profile_common.proto",
Florian Mayer4afdd642018-11-13 11:11:04 +00002427 "protos/perfetto/trace/profiling/profile_packet.proto",
2428 ],
2429 tools: [
2430 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002431 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Florian Mayer4afdd642018-11-13 11:11:04 +00002432 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002433 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Florian Mayer4afdd642018-11-13 11:11:04 +00002434 out: [
Florian Mayer93d16ec2019-06-05 09:51:58 +01002435 "external/perfetto/protos/perfetto/trace/profiling/profile_common.pbzero.h",
Florian Mayer4afdd642018-11-13 11:11:04 +00002436 "external/perfetto/protos/perfetto/trace/profiling/profile_packet.pbzero.h",
2437 ],
2438 export_include_dirs: [
2439 "protos",
2440 ],
2441}
2442
Lalit Maganti65b28a12018-02-14 18:27:14 +00002443// GN target: //protos/perfetto/trace/ps:lite_gen
2444genrule {
2445 name: "perfetto_protos_perfetto_trace_ps_lite_gen",
2446 srcs: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07002447 "protos/perfetto/trace/ps/process_stats.proto",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002448 "protos/perfetto/trace/ps/process_tree.proto",
2449 ],
2450 tools: [
2451 "aprotoc",
2452 ],
2453 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2454 out: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07002455 "external/perfetto/protos/perfetto/trace/ps/process_stats.pb.cc",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002456 "external/perfetto/protos/perfetto/trace/ps/process_tree.pb.cc",
2457 ],
2458}
2459
2460// GN target: //protos/perfetto/trace/ps:lite_gen
2461genrule {
2462 name: "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
2463 srcs: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07002464 "protos/perfetto/trace/ps/process_stats.proto",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002465 "protos/perfetto/trace/ps/process_tree.proto",
2466 ],
2467 tools: [
2468 "aprotoc",
2469 ],
2470 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2471 out: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07002472 "external/perfetto/protos/perfetto/trace/ps/process_stats.pb.h",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002473 "external/perfetto/protos/perfetto/trace/ps/process_tree.pb.h",
2474 ],
2475 export_include_dirs: [
2476 "protos",
2477 ],
2478}
2479
2480// GN target: //protos/perfetto/trace/ps:zero_gen
2481genrule {
2482 name: "perfetto_protos_perfetto_trace_ps_zero_gen",
2483 srcs: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07002484 "protos/perfetto/trace/ps/process_stats.proto",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002485 "protos/perfetto/trace/ps/process_tree.proto",
2486 ],
2487 tools: [
2488 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002489 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002490 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002491 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002492 out: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07002493 "external/perfetto/protos/perfetto/trace/ps/process_stats.pbzero.cc",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002494 "external/perfetto/protos/perfetto/trace/ps/process_tree.pbzero.cc",
2495 ],
2496}
2497
2498// GN target: //protos/perfetto/trace/ps:zero_gen
2499genrule {
2500 name: "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
2501 srcs: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07002502 "protos/perfetto/trace/ps/process_stats.proto",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002503 "protos/perfetto/trace/ps/process_tree.proto",
2504 ],
2505 tools: [
2506 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002507 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002508 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002509 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002510 out: [
Primiano Tuccic9d4a8b2018-10-30 20:19:01 -07002511 "external/perfetto/protos/perfetto/trace/ps/process_stats.pbzero.h",
Lalit Maganti65b28a12018-02-14 18:27:14 +00002512 "external/perfetto/protos/perfetto/trace/ps/process_tree.pbzero.h",
2513 ],
2514 export_include_dirs: [
2515 "protos",
2516 ],
2517}
2518
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002519// GN target: //protos/perfetto/trace/sys_stats:lite_gen
2520genrule {
2521 name: "perfetto_protos_perfetto_trace_sys_stats_lite_gen",
2522 srcs: [
2523 "protos/perfetto/trace/sys_stats/sys_stats.proto",
2524 ],
2525 tools: [
2526 "aprotoc",
2527 ],
2528 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2529 out: [
2530 "external/perfetto/protos/perfetto/trace/sys_stats/sys_stats.pb.cc",
2531 ],
2532}
2533
2534// GN target: //protos/perfetto/trace/sys_stats:lite_gen
2535genrule {
2536 name: "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
2537 srcs: [
2538 "protos/perfetto/trace/sys_stats/sys_stats.proto",
2539 ],
2540 tools: [
2541 "aprotoc",
2542 ],
2543 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2544 out: [
2545 "external/perfetto/protos/perfetto/trace/sys_stats/sys_stats.pb.h",
2546 ],
2547 export_include_dirs: [
2548 "protos",
2549 ],
2550}
2551
2552// GN target: //protos/perfetto/trace/sys_stats:zero_gen
2553genrule {
2554 name: "perfetto_protos_perfetto_trace_sys_stats_zero_gen",
2555 srcs: [
2556 "protos/perfetto/trace/sys_stats/sys_stats.proto",
2557 ],
2558 tools: [
2559 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002560 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002561 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002562 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002563 out: [
2564 "external/perfetto/protos/perfetto/trace/sys_stats/sys_stats.pbzero.cc",
2565 ],
2566}
2567
2568// GN target: //protos/perfetto/trace/sys_stats:zero_gen
2569genrule {
2570 name: "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
2571 srcs: [
2572 "protos/perfetto/trace/sys_stats/sys_stats.proto",
2573 ],
2574 tools: [
2575 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002576 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002577 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002578 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01002579 out: [
2580 "external/perfetto/protos/perfetto/trace/sys_stats/sys_stats.pbzero.h",
2581 ],
2582 export_include_dirs: [
2583 "protos",
2584 ],
2585}
2586
Eric Secklerc73ef062019-02-25 12:30:35 +00002587// GN target: //protos/perfetto/trace/track_event:lite_gen
2588genrule {
2589 name: "perfetto_protos_perfetto_trace_track_event_lite_gen",
2590 srcs: [
2591 "protos/perfetto/trace/track_event/debug_annotation.proto",
2592 "protos/perfetto/trace/track_event/process_descriptor.proto",
2593 "protos/perfetto/trace/track_event/task_execution.proto",
2594 "protos/perfetto/trace/track_event/thread_descriptor.proto",
2595 "protos/perfetto/trace/track_event/track_event.proto",
2596 ],
2597 tools: [
2598 "aprotoc",
2599 ],
2600 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2601 out: [
2602 "external/perfetto/protos/perfetto/trace/track_event/debug_annotation.pb.cc",
2603 "external/perfetto/protos/perfetto/trace/track_event/process_descriptor.pb.cc",
2604 "external/perfetto/protos/perfetto/trace/track_event/task_execution.pb.cc",
2605 "external/perfetto/protos/perfetto/trace/track_event/thread_descriptor.pb.cc",
2606 "external/perfetto/protos/perfetto/trace/track_event/track_event.pb.cc",
2607 ],
2608}
2609
2610// GN target: //protos/perfetto/trace/track_event:lite_gen
2611genrule {
2612 name: "perfetto_protos_perfetto_trace_track_event_lite_gen_headers",
2613 srcs: [
2614 "protos/perfetto/trace/track_event/debug_annotation.proto",
2615 "protos/perfetto/trace/track_event/process_descriptor.proto",
2616 "protos/perfetto/trace/track_event/task_execution.proto",
2617 "protos/perfetto/trace/track_event/thread_descriptor.proto",
2618 "protos/perfetto/trace/track_event/track_event.proto",
2619 ],
2620 tools: [
2621 "aprotoc",
2622 ],
2623 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2624 out: [
2625 "external/perfetto/protos/perfetto/trace/track_event/debug_annotation.pb.h",
2626 "external/perfetto/protos/perfetto/trace/track_event/process_descriptor.pb.h",
2627 "external/perfetto/protos/perfetto/trace/track_event/task_execution.pb.h",
2628 "external/perfetto/protos/perfetto/trace/track_event/thread_descriptor.pb.h",
2629 "external/perfetto/protos/perfetto/trace/track_event/track_event.pb.h",
2630 ],
2631 export_include_dirs: [
2632 "protos",
2633 ],
2634}
2635
2636// GN target: //protos/perfetto/trace/track_event:zero_gen
2637genrule {
2638 name: "perfetto_protos_perfetto_trace_track_event_zero_gen",
2639 srcs: [
2640 "protos/perfetto/trace/track_event/debug_annotation.proto",
2641 "protos/perfetto/trace/track_event/process_descriptor.proto",
2642 "protos/perfetto/trace/track_event/task_execution.proto",
2643 "protos/perfetto/trace/track_event/thread_descriptor.proto",
2644 "protos/perfetto/trace/track_event/track_event.proto",
2645 ],
2646 tools: [
2647 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002648 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Eric Secklerc73ef062019-02-25 12:30:35 +00002649 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002650 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Eric Secklerc73ef062019-02-25 12:30:35 +00002651 out: [
2652 "external/perfetto/protos/perfetto/trace/track_event/debug_annotation.pbzero.cc",
2653 "external/perfetto/protos/perfetto/trace/track_event/process_descriptor.pbzero.cc",
2654 "external/perfetto/protos/perfetto/trace/track_event/task_execution.pbzero.cc",
2655 "external/perfetto/protos/perfetto/trace/track_event/thread_descriptor.pbzero.cc",
2656 "external/perfetto/protos/perfetto/trace/track_event/track_event.pbzero.cc",
2657 ],
2658}
2659
2660// GN target: //protos/perfetto/trace/track_event:zero_gen
2661genrule {
2662 name: "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
2663 srcs: [
2664 "protos/perfetto/trace/track_event/debug_annotation.proto",
2665 "protos/perfetto/trace/track_event/process_descriptor.proto",
2666 "protos/perfetto/trace/track_event/task_execution.proto",
2667 "protos/perfetto/trace/track_event/thread_descriptor.proto",
2668 "protos/perfetto/trace/track_event/track_event.proto",
2669 ],
2670 tools: [
2671 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002672 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Eric Secklerc73ef062019-02-25 12:30:35 +00002673 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002674 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Eric Secklerc73ef062019-02-25 12:30:35 +00002675 out: [
2676 "external/perfetto/protos/perfetto/trace/track_event/debug_annotation.pbzero.h",
2677 "external/perfetto/protos/perfetto/trace/track_event/process_descriptor.pbzero.h",
2678 "external/perfetto/protos/perfetto/trace/track_event/task_execution.pbzero.h",
2679 "external/perfetto/protos/perfetto/trace/track_event/thread_descriptor.pbzero.h",
2680 "external/perfetto/protos/perfetto/trace/track_event/track_event.pbzero.h",
2681 ],
2682 export_include_dirs: [
2683 "protos",
2684 ],
2685}
2686
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07002687// GN target: //protos/perfetto/trace:trusted_lite_gen
2688genrule {
2689 name: "perfetto_protos_perfetto_trace_trusted_lite_gen",
2690 srcs: [
2691 "protos/perfetto/trace/trusted_packet.proto",
2692 ],
2693 tools: [
2694 "aprotoc",
2695 ],
2696 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2697 out: [
2698 "external/perfetto/protos/perfetto/trace/trusted_packet.pb.cc",
2699 ],
2700}
2701
2702// GN target: //protos/perfetto/trace:trusted_lite_gen
2703genrule {
2704 name: "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
2705 srcs: [
2706 "protos/perfetto/trace/trusted_packet.proto",
2707 ],
2708 tools: [
2709 "aprotoc",
2710 ],
2711 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2712 out: [
2713 "external/perfetto/protos/perfetto/trace/trusted_packet.pb.h",
2714 ],
2715 export_include_dirs: [
2716 "protos",
2717 ],
2718}
2719
Primiano Tucci20b760c2018-01-19 12:36:12 +00002720// GN target: //protos/perfetto/trace:zero_gen
2721genrule {
2722 name: "perfetto_protos_perfetto_trace_zero_gen",
2723 srcs: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00002724 "protos/perfetto/trace/clock_snapshot.proto",
Hector Dearman685f7522019-03-12 14:28:56 +00002725 "protos/perfetto/trace/system_info.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002726 "protos/perfetto/trace/test_event.proto",
2727 "protos/perfetto/trace/trace.proto",
2728 "protos/perfetto/trace/trace_packet.proto",
Stephen Nusko70ea3302019-04-01 19:44:40 +01002729 "protos/perfetto/trace/trigger.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002730 ],
2731 tools: [
2732 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002733 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002734 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002735 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002736 out: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00002737 "external/perfetto/protos/perfetto/trace/clock_snapshot.pbzero.cc",
Hector Dearman685f7522019-03-12 14:28:56 +00002738 "external/perfetto/protos/perfetto/trace/system_info.pbzero.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002739 "external/perfetto/protos/perfetto/trace/test_event.pbzero.cc",
2740 "external/perfetto/protos/perfetto/trace/trace.pbzero.cc",
2741 "external/perfetto/protos/perfetto/trace/trace_packet.pbzero.cc",
Stephen Nusko70ea3302019-04-01 19:44:40 +01002742 "external/perfetto/protos/perfetto/trace/trigger.pbzero.cc",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002743 ],
2744}
2745
2746// GN target: //protos/perfetto/trace:zero_gen
2747genrule {
2748 name: "perfetto_protos_perfetto_trace_zero_gen_headers",
2749 srcs: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00002750 "protos/perfetto/trace/clock_snapshot.proto",
Hector Dearman685f7522019-03-12 14:28:56 +00002751 "protos/perfetto/trace/system_info.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002752 "protos/perfetto/trace/test_event.proto",
2753 "protos/perfetto/trace/trace.proto",
2754 "protos/perfetto/trace/trace_packet.proto",
Stephen Nusko70ea3302019-04-01 19:44:40 +01002755 "protos/perfetto/trace/trigger.proto",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002756 ],
2757 tools: [
2758 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01002759 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002760 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01002761 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002762 out: [
Sami Kyostilafbccb3c2018-03-21 14:00:47 +00002763 "external/perfetto/protos/perfetto/trace/clock_snapshot.pbzero.h",
Hector Dearman685f7522019-03-12 14:28:56 +00002764 "external/perfetto/protos/perfetto/trace/system_info.pbzero.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002765 "external/perfetto/protos/perfetto/trace/test_event.pbzero.h",
2766 "external/perfetto/protos/perfetto/trace/trace.pbzero.h",
2767 "external/perfetto/protos/perfetto/trace/trace_packet.pbzero.h",
Stephen Nusko70ea3302019-04-01 19:44:40 +01002768 "external/perfetto/protos/perfetto/trace/trigger.pbzero.h",
Primiano Tucci20b760c2018-01-19 12:36:12 +00002769 ],
2770 export_include_dirs: [
2771 "protos",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002772 ],
2773}
2774
Florian Mayer0ca7fb42018-11-15 21:13:42 +00002775// GN target: //protos/third_party/pprof:lite_gen
2776genrule {
2777 name: "perfetto_protos_third_party_pprof_lite_gen",
2778 srcs: [
2779 "protos/third_party/pprof/profile.proto",
2780 ],
2781 tools: [
2782 "aprotoc",
2783 ],
2784 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2785 out: [
2786 "external/perfetto/protos/third_party/pprof/profile.pb.cc",
2787 ],
2788}
2789
2790// GN target: //protos/third_party/pprof:lite_gen
2791genrule {
2792 name: "perfetto_protos_third_party_pprof_lite_gen_headers",
2793 srcs: [
2794 "protos/third_party/pprof/profile.proto",
2795 ],
2796 tools: [
2797 "aprotoc",
2798 ],
2799 cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos $(in)",
2800 out: [
2801 "external/perfetto/protos/third_party/pprof/profile.pb.h",
2802 ],
2803 export_include_dirs: [
2804 "protos",
2805 ],
2806}
2807
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002808// GN target: //src/ipc/protoc_plugin:ipc_plugin(//gn/standalone/toolchain:gcc_like_host)
2809cc_binary_host {
2810 name: "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
2811 srcs: [
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002812 "src/ipc/protoc_plugin/ipc_plugin.cc",
2813 ],
2814 shared_libs: [
2815 "libprotoc",
2816 ],
2817 defaults: [
2818 "perfetto_defaults",
2819 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +00002820 cflags: [
2821 "-DGOOGLE_PROTOBUF_NO_RTTI",
2822 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Primiano Tucci7c7f5f52019-01-15 21:47:04 +00002823 "-DPERFETTO_BUILD_WITH_ANDROID",
Florian Mayer3d5e7e62018-01-19 15:22:46 +00002824 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002825}
2826
2827// GN target: //src/ipc:test_messages_gen
2828genrule {
2829 name: "perfetto_src_ipc_test_messages_gen",
2830 srcs: [
2831 "src/ipc/test/client_unittest_messages.proto",
2832 "src/ipc/test/deferred_unittest_messages.proto",
2833 "src/ipc/test/greeter_service.proto",
2834 ],
2835 tools: [
2836 "aprotoc",
2837 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
2838 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002839 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 +00002840 out: [
2841 "external/perfetto/src/ipc/test/client_unittest_messages.ipc.cc",
2842 "external/perfetto/src/ipc/test/client_unittest_messages.pb.cc",
2843 "external/perfetto/src/ipc/test/deferred_unittest_messages.ipc.cc",
2844 "external/perfetto/src/ipc/test/deferred_unittest_messages.pb.cc",
2845 "external/perfetto/src/ipc/test/greeter_service.ipc.cc",
2846 "external/perfetto/src/ipc/test/greeter_service.pb.cc",
2847 ],
2848}
2849
2850// GN target: //src/ipc:test_messages_gen
2851genrule {
2852 name: "perfetto_src_ipc_test_messages_gen_headers",
2853 srcs: [
2854 "src/ipc/test/client_unittest_messages.proto",
2855 "src/ipc/test/deferred_unittest_messages.proto",
2856 "src/ipc/test/greeter_service.proto",
2857 ],
2858 tools: [
2859 "aprotoc",
2860 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
2861 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002862 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 +00002863 out: [
2864 "external/perfetto/src/ipc/test/client_unittest_messages.ipc.h",
2865 "external/perfetto/src/ipc/test/client_unittest_messages.pb.h",
2866 "external/perfetto/src/ipc/test/deferred_unittest_messages.ipc.h",
2867 "external/perfetto/src/ipc/test/deferred_unittest_messages.pb.h",
2868 "external/perfetto/src/ipc/test/greeter_service.ipc.h",
2869 "external/perfetto/src/ipc/test/greeter_service.pb.h",
2870 ],
2871 export_include_dirs: [
2872 ".",
2873 ],
2874}
2875
Sami Kyostilab27619f2017-12-13 19:22:16 +00002876// GN target: //src/ipc:wire_protocol_gen
Sami Kyostila71625d72017-12-18 10:29:49 +00002877genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +00002878 name: "perfetto_src_ipc_wire_protocol_gen",
2879 srcs: [
2880 "src/ipc/wire_protocol.proto",
2881 ],
2882 tools: [
2883 "aprotoc",
2884 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002885 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 +00002886 out: [
2887 "external/perfetto/src/ipc/wire_protocol.pb.cc",
2888 ],
2889}
2890
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002891// GN target: //src/ipc:wire_protocol_gen
2892genrule {
2893 name: "perfetto_src_ipc_wire_protocol_gen_headers",
2894 srcs: [
2895 "src/ipc/wire_protocol.proto",
2896 ],
2897 tools: [
2898 "aprotoc",
2899 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002900 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 +00002901 out: [
2902 "external/perfetto/src/ipc/wire_protocol.pb.h",
2903 ],
2904 export_include_dirs: [
2905 ".",
2906 ],
2907}
2908
Hector Dearman86cfbe12018-03-22 11:58:42 +00002909// GN target: //src/perfetto_cmd:protos_gen
2910genrule {
2911 name: "perfetto_src_perfetto_cmd_protos_gen",
2912 srcs: [
2913 "src/perfetto_cmd/perfetto_cmd_state.proto",
2914 ],
2915 tools: [
2916 "aprotoc",
2917 ],
2918 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
2919 out: [
2920 "external/perfetto/src/perfetto_cmd/perfetto_cmd_state.pb.cc",
2921 ],
2922}
2923
2924// GN target: //src/perfetto_cmd:protos_gen
2925genrule {
2926 name: "perfetto_src_perfetto_cmd_protos_gen_headers",
2927 srcs: [
2928 "src/perfetto_cmd/perfetto_cmd_state.proto",
2929 ],
2930 tools: [
2931 "aprotoc",
2932 ],
2933 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
2934 out: [
2935 "external/perfetto/src/perfetto_cmd/perfetto_cmd_state.pb.h",
2936 ],
2937 export_include_dirs: [
2938 ".",
2939 ],
2940}
2941
Primiano Tucci764c5042019-06-22 18:28:45 +01002942// GN target: //src/protozero/protoc_plugin:protozero_plugin(//gn/standalone/toolchain:gcc_like_host)
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002943cc_binary_host {
Primiano Tucci764c5042019-06-22 18:28:45 +01002944 name: "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002945 srcs: [
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002946 "src/protozero/protoc_plugin/protozero_plugin.cc",
2947 ],
2948 shared_libs: [
2949 "libprotoc",
2950 ],
2951 defaults: [
2952 "perfetto_defaults",
2953 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +00002954 cflags: [
2955 "-DGOOGLE_PROTOBUF_NO_RTTI",
2956 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Primiano Tucci7c7f5f52019-01-15 21:47:04 +00002957 "-DPERFETTO_BUILD_WITH_ANDROID",
Florian Mayer3d5e7e62018-01-19 15:22:46 +00002958 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002959}
2960
Sami Kyostilab27619f2017-12-13 19:22:16 +00002961// GN target: //src/protozero:testing_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +00002962genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +00002963 name: "perfetto_src_protozero_testing_messages_lite_gen",
2964 srcs: [
2965 "src/protozero/test/example_proto/library.proto",
2966 "src/protozero/test/example_proto/library_internals/galaxies.proto",
2967 "src/protozero/test/example_proto/test_messages.proto",
2968 "src/protozero/test/example_proto/upper_import.proto",
2969 ],
2970 tools: [
2971 "aprotoc",
2972 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002973 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 +00002974 out: [
2975 "external/perfetto/src/protozero/test/example_proto/library.pb.cc",
2976 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pb.cc",
2977 "external/perfetto/src/protozero/test/example_proto/test_messages.pb.cc",
2978 "external/perfetto/src/protozero/test/example_proto/upper_import.pb.cc",
2979 ],
2980}
2981
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00002982// GN target: //src/protozero:testing_messages_lite_gen
2983genrule {
2984 name: "perfetto_src_protozero_testing_messages_lite_gen_headers",
2985 srcs: [
2986 "src/protozero/test/example_proto/library.proto",
2987 "src/protozero/test/example_proto/library_internals/galaxies.proto",
2988 "src/protozero/test/example_proto/test_messages.proto",
2989 "src/protozero/test/example_proto/upper_import.proto",
2990 ],
2991 tools: [
2992 "aprotoc",
2993 ],
Primiano Tucci20b760c2018-01-19 12:36:12 +00002994 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 +00002995 out: [
2996 "external/perfetto/src/protozero/test/example_proto/library.pb.h",
2997 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pb.h",
2998 "external/perfetto/src/protozero/test/example_proto/test_messages.pb.h",
2999 "external/perfetto/src/protozero/test/example_proto/upper_import.pb.h",
3000 ],
3001 export_include_dirs: [
3002 ".",
3003 ],
3004}
3005
3006// GN target: //src/protozero:testing_messages_zero_gen
3007genrule {
3008 name: "perfetto_src_protozero_testing_messages_zero_gen",
3009 srcs: [
3010 "src/protozero/test/example_proto/library.proto",
3011 "src/protozero/test/example_proto/library_internals/galaxies.proto",
3012 "src/protozero/test/example_proto/test_messages.proto",
3013 "src/protozero/test/example_proto/upper_import.proto",
3014 ],
3015 tools: [
3016 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01003017 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003018 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01003019 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003020 out: [
3021 "external/perfetto/src/protozero/test/example_proto/library.pbzero.cc",
3022 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.cc",
3023 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.cc",
3024 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.cc",
3025 ],
3026}
3027
3028// GN target: //src/protozero:testing_messages_zero_gen
3029genrule {
3030 name: "perfetto_src_protozero_testing_messages_zero_gen_headers",
3031 srcs: [
3032 "src/protozero/test/example_proto/library.proto",
3033 "src/protozero/test/example_proto/library_internals/galaxies.proto",
3034 "src/protozero/test/example_proto/test_messages.proto",
3035 "src/protozero/test/example_proto/upper_import.proto",
3036 ],
3037 tools: [
3038 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01003039 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003040 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01003041 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003042 out: [
3043 "external/perfetto/src/protozero/test/example_proto/library.pbzero.h",
3044 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.h",
3045 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.h",
3046 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.h",
3047 ],
3048 export_include_dirs: [
3049 ".",
3050 ],
3051}
3052
Primiano Tuccide82dae2018-06-04 16:17:49 +02003053// GN target: //src/traced/probes/ftrace:test_messages_lite_gen
3054genrule {
3055 name: "perfetto_src_traced_probes_ftrace_test_messages_lite_gen",
3056 srcs: [
3057 "src/traced/probes/ftrace/test/test_messages.proto",
3058 ],
3059 tools: [
3060 "aprotoc",
3061 ],
3062 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
3063 out: [
3064 "external/perfetto/src/traced/probes/ftrace/test/test_messages.pb.cc",
3065 ],
3066}
3067
3068// GN target: //src/traced/probes/ftrace:test_messages_lite_gen
3069genrule {
3070 name: "perfetto_src_traced_probes_ftrace_test_messages_lite_gen_headers",
3071 srcs: [
3072 "src/traced/probes/ftrace/test/test_messages.proto",
3073 ],
3074 tools: [
3075 "aprotoc",
3076 ],
3077 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto/ $(in)",
3078 out: [
3079 "external/perfetto/src/traced/probes/ftrace/test/test_messages.pb.h",
3080 ],
3081 export_include_dirs: [
3082 ".",
3083 ],
3084}
3085
3086// GN target: //src/traced/probes/ftrace:test_messages_zero_gen
3087genrule {
3088 name: "perfetto_src_traced_probes_ftrace_test_messages_zero_gen",
3089 srcs: [
3090 "src/traced/probes/ftrace/test/test_messages.proto",
3091 ],
3092 tools: [
3093 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01003094 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003095 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01003096 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003097 out: [
3098 "external/perfetto/src/traced/probes/ftrace/test/test_messages.pbzero.cc",
3099 ],
3100}
3101
3102// GN target: //src/traced/probes/ftrace:test_messages_zero_gen
3103genrule {
3104 name: "perfetto_src_traced_probes_ftrace_test_messages_zero_gen_headers",
3105 srcs: [
3106 "src/traced/probes/ftrace/test/test_messages.proto",
3107 ],
3108 tools: [
3109 "aprotoc",
Primiano Tucci764c5042019-06-22 18:28:45 +01003110 "perfetto_src_protozero_protoc_plugin_protozero_plugin___gn_standalone_toolchain_gcc_like_host_",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003111 ],
Primiano Tucci764c5042019-06-22 18:28:45 +01003112 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_protozero_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003113 out: [
3114 "external/perfetto/src/traced/probes/ftrace/test/test_messages.pbzero.h",
3115 ],
3116 export_include_dirs: [
3117 ".",
3118 ],
3119}
3120
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003121// GN target: //src/tracing:ipc
3122cc_library_static {
3123 name: "perfetto_src_tracing_ipc",
3124 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003125 ":perfetto_protos_perfetto_common_lite_gen",
3126 ":perfetto_protos_perfetto_common_zero_gen",
3127 ":perfetto_protos_perfetto_config_lite_gen",
3128 ":perfetto_protos_perfetto_config_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003129 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003130 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08003131 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00003132 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003133 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003134 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +00003135 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003136 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003137 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003138 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +00003139 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +00003140 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003141 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +00003142 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07003143 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003144 ":perfetto_protos_perfetto_trace_zero_gen",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003145 ":perfetto_src_ipc_wire_protocol_gen",
Sami Kyostila389861f2019-07-09 20:52:43 +01003146 "src/base/event_fd.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +00003147 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +01003148 "src/base/metatrace.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +01003149 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +01003150 "src/base/pipe.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +00003151 "src/base/string_splitter.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +01003152 "src/base/string_utils.cc",
Primiano Tucci60c4a2b2019-03-02 17:11:18 +00003153 "src/base/string_view.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +00003154 "src/base/temp_file.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003155 "src/base/thread_checker.cc",
Ryan Savitski29885792019-03-14 12:10:13 +00003156 "src/base/thread_task_runner.cc",
Florian Mayer75905df2018-05-08 17:44:08 +01003157 "src/base/time.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +01003158 "src/base/unix_socket.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003159 "src/base/unix_task_runner.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01003160 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +01003161 "src/base/waitable_event.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +01003162 "src/base/watchdog_posix.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003163 "src/ipc/buffered_frame_deserializer.cc",
3164 "src/ipc/client_impl.cc",
3165 "src/ipc/deferred.cc",
3166 "src/ipc/host_impl.cc",
3167 "src/ipc/service_proxy.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01003168 "src/ipc/virtual_destructors.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +00003169 "src/protozero/message.cc",
3170 "src/protozero/message_handle.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +01003171 "src/protozero/proto_decoder.cc",
Eric Seckler76311202019-01-07 12:20:25 +00003172 "src/protozero/scattered_heap_buffer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +01003173 "src/protozero/scattered_stream_null_delegate.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003174 "src/protozero/scattered_stream_writer.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08003175 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +00003176 "src/tracing/core/commit_data_request.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003177 "src/tracing/core/data_source_config.cc",
3178 "src/tracing/core/data_source_descriptor.cc",
3179 "src/tracing/core/id_allocator.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003180 "src/tracing/core/metatrace_writer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +01003181 "src/tracing/core/null_trace_writer.cc",
Eric Seckler7b0c9452019-03-18 13:14:36 +00003182 "src/tracing/core/observable_events.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +00003183 "src/tracing/core/packet_stream_validator.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003184 "src/tracing/core/shared_memory_abi.cc",
Oystein Eftevaag6d0bc7f2018-01-13 12:21:55 -08003185 "src/tracing/core/shared_memory_arbiter_impl.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +00003186 "src/tracing/core/sliced_protobuf_input_stream.cc",
Eric Secklerc65693d2019-01-11 15:12:48 +00003187 "src/tracing/core/startup_trace_writer.cc",
Eric Seckler42777e52019-01-23 10:13:22 +00003188 "src/tracing/core/startup_trace_writer_registry.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +00003189 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +00003190 "src/tracing/core/trace_buffer.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003191 "src/tracing/core/trace_config.cc",
3192 "src/tracing/core/trace_packet.cc",
Eric Secklereaf29ed2019-01-23 09:53:55 +00003193 "src/tracing/core/trace_stats.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003194 "src/tracing/core/trace_writer_impl.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +01003195 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01003196 "src/tracing/core/tracing_service_state.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01003197 "src/tracing/core/virtual_destructors.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003198 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
Florian Mayerc29e0d32018-04-04 15:55:46 +01003199 "src/tracing/ipc/default_socket.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003200 "src/tracing/ipc/posix_shared_memory.cc",
3201 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
3202 "src/tracing/ipc/service/consumer_ipc_service.cc",
3203 "src/tracing/ipc/service/producer_ipc_service.cc",
3204 "src/tracing/ipc/service/service_ipc_host_impl.cc",
Primiano Tucci2c5488f2019-06-01 03:27:28 +01003205 "src/tracing/trace_writer_base.cc",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003206 ],
3207 shared_libs: [
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003208 "libprotobuf-cpp-lite",
3209 ],
Lalit Magantic5bcd792018-01-12 18:38:11 +00003210 export_include_dirs: [
3211 "include",
3212 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003213 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003214 "perfetto_protos_perfetto_common_lite_gen_headers",
3215 "perfetto_protos_perfetto_common_zero_gen_headers",
3216 "perfetto_protos_perfetto_config_lite_gen_headers",
3217 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003218 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003219 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08003220 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00003221 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003222 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003223 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003224 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003225 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003226 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003227 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00003228 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +00003229 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003230 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003231 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07003232 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003233 "perfetto_protos_perfetto_trace_zero_gen_headers",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003234 "perfetto_src_ipc_wire_protocol_gen_headers",
3235 ],
Lalit Magantic5bcd792018-01-12 18:38:11 +00003236 export_generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003237 "perfetto_protos_perfetto_common_lite_gen_headers",
3238 "perfetto_protos_perfetto_common_zero_gen_headers",
3239 "perfetto_protos_perfetto_config_lite_gen_headers",
3240 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003241 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003242 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08003243 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00003244 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003245 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003246 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003247 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003248 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003249 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003250 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00003251 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +00003252 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003253 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003254 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07003255 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003256 "perfetto_protos_perfetto_trace_zero_gen_headers",
Lalit Magantic5bcd792018-01-12 18:38:11 +00003257 "perfetto_src_ipc_wire_protocol_gen_headers",
3258 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003259 defaults: [
3260 "perfetto_defaults",
3261 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +00003262 cflags: [
3263 "-DGOOGLE_PROTOBUF_NO_RTTI",
3264 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Primiano Tucci7c7f5f52019-01-15 21:47:04 +00003265 "-DPERFETTO_BUILD_WITH_ANDROID",
Florian Mayer3d5e7e62018-01-19 15:22:46 +00003266 ],
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003267}
3268
Primiano Tucci6aa75572018-03-21 05:33:14 -07003269// GN target: //:perfetto_trace_protos
3270cc_library_static {
3271 name: "perfetto_trace_protos",
3272 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003273 ":perfetto_protos_perfetto_common_lite_gen",
3274 ":perfetto_protos_perfetto_config_lite_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003275 ":perfetto_protos_perfetto_trace_android_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003276 ":perfetto_protos_perfetto_trace_chrome_lite_gen",
3277 ":perfetto_protos_perfetto_trace_filesystem_lite_gen",
3278 ":perfetto_protos_perfetto_trace_ftrace_lite_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003279 ":perfetto_protos_perfetto_trace_gpu_lite_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +00003280 ":perfetto_protos_perfetto_trace_interned_data_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003281 ":perfetto_protos_perfetto_trace_lite_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003282 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003283 ":perfetto_protos_perfetto_trace_perfetto_lite_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003284 ":perfetto_protos_perfetto_trace_power_lite_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +00003285 ":perfetto_protos_perfetto_trace_profiling_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003286 ":perfetto_protos_perfetto_trace_ps_lite_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003287 ":perfetto_protos_perfetto_trace_sys_stats_lite_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +00003288 ":perfetto_protos_perfetto_trace_track_event_lite_gen",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003289 ],
3290 shared_libs: [
Primiano Tucci6aa75572018-03-21 05:33:14 -07003291 "libprotobuf-cpp-lite",
3292 ],
3293 host_supported: true,
3294 export_include_dirs: [
3295 "include",
3296 ],
3297 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003298 "perfetto_protos_perfetto_common_lite_gen_headers",
3299 "perfetto_protos_perfetto_config_lite_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003300 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003301 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
3302 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
3303 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003304 "perfetto_protos_perfetto_trace_gpu_lite_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003305 "perfetto_protos_perfetto_trace_interned_data_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003306 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003307 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003308 "perfetto_protos_perfetto_trace_perfetto_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003309 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00003310 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003311 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003312 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003313 "perfetto_protos_perfetto_trace_track_event_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003314 ],
3315 export_generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003316 "perfetto_protos_perfetto_common_lite_gen_headers",
3317 "perfetto_protos_perfetto_config_lite_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003318 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003319 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
3320 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
3321 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003322 "perfetto_protos_perfetto_trace_gpu_lite_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003323 "perfetto_protos_perfetto_trace_interned_data_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003324 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003325 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003326 "perfetto_protos_perfetto_trace_perfetto_lite_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003327 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00003328 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003329 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003330 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003331 "perfetto_protos_perfetto_trace_track_event_lite_gen_headers",
Primiano Tucci6aa75572018-03-21 05:33:14 -07003332 ],
3333 defaults: [
3334 "perfetto_defaults",
3335 ],
3336 cflags: [
3337 "-DGOOGLE_PROTOBUF_NO_RTTI",
3338 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
3339 ],
3340}
3341
Lalit Maganti79f2d7b2018-01-23 18:27:33 +00003342// GN target: //:perfetto_unittests
Sami Kyostilab27619f2017-12-13 19:22:16 +00003343cc_test {
Lalit Maganti79f2d7b2018-01-23 18:27:33 +00003344 name: "perfetto_unittests",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003345 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003346 ":perfetto_protos_perfetto_common_lite_gen",
3347 ":perfetto_protos_perfetto_common_zero_gen",
3348 ":perfetto_protos_perfetto_config_lite_gen",
3349 ":perfetto_protos_perfetto_config_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003350 ":perfetto_protos_perfetto_ipc_ipc_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003351 ":perfetto_protos_perfetto_trace_android_lite_gen",
3352 ":perfetto_protos_perfetto_trace_android_zero_gen",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08003353 ":perfetto_protos_perfetto_trace_chrome_lite_gen",
3354 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00003355 ":perfetto_protos_perfetto_trace_filesystem_lite_gen",
3356 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003357 ":perfetto_protos_perfetto_trace_ftrace_lite_gen",
3358 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003359 ":perfetto_protos_perfetto_trace_gpu_lite_gen",
3360 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +00003361 ":perfetto_protos_perfetto_trace_interned_data_lite_gen",
3362 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003363 ":perfetto_protos_perfetto_trace_lite_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003364 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003365 ":perfetto_protos_perfetto_trace_perfetto_lite_gen",
3366 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003367 ":perfetto_protos_perfetto_trace_power_lite_gen",
3368 ":perfetto_protos_perfetto_trace_power_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +00003369 ":perfetto_protos_perfetto_trace_profiling_lite_gen",
3370 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Lalit Maganti65b28a12018-02-14 18:27:14 +00003371 ":perfetto_protos_perfetto_trace_ps_lite_gen",
3372 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003373 ":perfetto_protos_perfetto_trace_sys_stats_lite_gen",
3374 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +00003375 ":perfetto_protos_perfetto_trace_track_event_lite_gen",
3376 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07003377 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003378 ":perfetto_protos_perfetto_trace_zero_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003379 ":perfetto_src_ipc_test_messages_gen",
3380 ":perfetto_src_ipc_wire_protocol_gen",
Hector Dearman86cfbe12018-03-22 11:58:42 +00003381 ":perfetto_src_perfetto_cmd_protos_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003382 ":perfetto_src_protozero_testing_messages_lite_gen",
3383 ":perfetto_src_protozero_testing_messages_zero_gen",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003384 ":perfetto_src_traced_probes_ftrace_test_messages_lite_gen",
3385 ":perfetto_src_traced_probes_ftrace_test_messages_zero_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003386 "src/base/android_task_runner.cc",
Primiano Tucci89795fd2019-02-18 23:08:06 +00003387 "src/base/circular_queue_unittest.cc",
Primiano Tucci3b39fc72019-06-22 19:05:23 +01003388 "src/base/copyable_ptr_unittest.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +01003389 "src/base/event_fd.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +00003390 "src/base/file_utils.cc",
Florian Mayer236ba472018-05-09 15:47:53 +01003391 "src/base/metatrace.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003392 "src/base/metatrace_unittest.cc",
Ryan Savitski478c1182019-04-04 23:28:11 +01003393 "src/base/no_destructor_unittest.cc",
Lalit Magantif3e5b072018-11-19 21:51:47 +00003394 "src/base/optional_unittest.cc",
Eric Seckleredf3f7c2018-10-23 16:44:53 +01003395 "src/base/paged_memory.cc",
3396 "src/base/paged_memory_unittest.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +01003397 "src/base/pipe.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003398 "src/base/scoped_file_unittest.cc",
Primiano Tucci825e6de2018-03-13 05:43:15 +00003399 "src/base/string_splitter.cc",
3400 "src/base/string_splitter_unittest.cc",
Hector Dearman3afb1e02018-04-27 16:46:52 +01003401 "src/base/string_utils.cc",
3402 "src/base/string_utils_unittest.cc",
Primiano Tucci60c4a2b2019-03-02 17:11:18 +00003403 "src/base/string_view.cc",
Primiano Tucci2da5d2e2018-08-10 14:23:31 +01003404 "src/base/string_view_unittest.cc",
Lalit Magantibd3fb822019-02-08 10:08:20 +00003405 "src/base/string_writer_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003406 "src/base/task_runner_unittest.cc",
Primiano Tucci941b2212018-03-14 22:46:31 +00003407 "src/base/temp_file.cc",
3408 "src/base/temp_file_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003409 "src/base/test/test_task_runner.cc",
Hector Dearman7f71d0e2018-08-09 11:26:10 +01003410 "src/base/test/utils.cc",
Primiano Tuccibbaa58c2017-12-20 13:48:20 +01003411 "src/base/test/vm_test_utils.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003412 "src/base/thread_checker.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003413 "src/base/thread_checker_unittest.cc",
Ryan Savitski29885792019-03-14 12:10:13 +00003414 "src/base/thread_task_runner.cc",
3415 "src/base/thread_task_runner_unittest.cc",
Florian Mayer75905df2018-05-08 17:44:08 +01003416 "src/base/time.cc",
Primiano Tucci8934c6c2018-03-15 11:39:27 +00003417 "src/base/time_unittest.cc",
Florian Mayerf7f0def2018-09-27 13:59:24 +01003418 "src/base/unix_socket.cc",
3419 "src/base/unix_socket_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003420 "src/base/unix_task_runner.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003421 "src/base/utils_unittest.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01003422 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +01003423 "src/base/waitable_event.cc",
Primiano Tucci808d6df2018-03-31 13:24:18 +01003424 "src/base/watchdog_posix.cc",
Florian Mayerb4334002018-02-01 11:10:36 +00003425 "src/base/watchdog_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003426 "src/base/weak_ptr_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003427 "src/ipc/buffered_frame_deserializer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003428 "src/ipc/buffered_frame_deserializer_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003429 "src/ipc/client_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003430 "src/ipc/client_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003431 "src/ipc/deferred.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003432 "src/ipc/deferred_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003433 "src/ipc/host_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003434 "src/ipc/host_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003435 "src/ipc/service_proxy.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003436 "src/ipc/test/ipc_integrationtest.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01003437 "src/ipc/virtual_destructors.cc",
Hector Dearman5edeafc2018-11-29 13:27:33 +00003438 "src/perfetto_cmd/config.cc",
3439 "src/perfetto_cmd/config_unittest.cc",
Hector Dearman554627f2019-06-04 17:58:22 +01003440 "src/perfetto_cmd/packet_writer.cc",
3441 "src/perfetto_cmd/packet_writer_unittest.cc",
Hector Dearmanb7fa5442018-11-08 18:39:32 +00003442 "src/perfetto_cmd/pbtxt_to_pb.cc",
3443 "src/perfetto_cmd/pbtxt_to_pb_unittest.cc",
Hector Dearman86cfbe12018-03-22 11:58:42 +00003444 "src/perfetto_cmd/perfetto_cmd.cc",
3445 "src/perfetto_cmd/rate_limiter.cc",
3446 "src/perfetto_cmd/rate_limiter_unittest.cc",
Stephen Nuskoe8238112019-04-09 18:37:00 +01003447 "src/perfetto_cmd/trigger_producer.cc",
Florian Mayer824274d2018-09-17 11:33:45 +01003448 "src/profiling/memory/bookkeeping.cc",
Florian Mayer7791fce2019-05-16 18:04:20 +01003449 "src/profiling/memory/bookkeeping_dump.cc",
Florian Mayer824274d2018-09-17 11:33:45 +01003450 "src/profiling/memory/bookkeeping_unittest.cc",
3451 "src/profiling/memory/client.cc",
3452 "src/profiling/memory/client_unittest.cc",
Primiano Tucci0f2f3b42019-05-21 19:37:01 +01003453 "src/profiling/memory/heapprofd_config.cc",
Florian Mayere9f46862018-11-07 20:20:37 +00003454 "src/profiling/memory/heapprofd_producer.cc",
Florian Mayer096bbe32019-04-03 12:10:53 +01003455 "src/profiling/memory/heapprofd_producer_unittest.cc",
Florian Mayer4afdd642018-11-13 11:11:04 +00003456 "src/profiling/memory/interner_unittest.cc",
Florian Mayer7142c7c2019-05-20 18:11:41 +01003457 "src/profiling/memory/page_idle_checker.cc",
3458 "src/profiling/memory/page_idle_checker_unittest.cc",
Florian Mayer745aaf22018-12-13 14:53:07 +00003459 "src/profiling/memory/proc_utils.cc",
Florian Mayerf3e3dd32019-01-17 10:33:56 +00003460 "src/profiling/memory/proc_utils_unittest.cc",
Florian Mayerc6be21f2018-10-02 11:33:59 +01003461 "src/profiling/memory/sampler_unittest.cc",
Ryan Savitskia502bde2019-02-26 21:34:03 +00003462 "src/profiling/memory/scoped_spinlock.cc",
Florian Mayerc50bcc92019-02-07 11:43:30 +00003463 "src/profiling/memory/shared_ring_buffer.cc",
3464 "src/profiling/memory/shared_ring_buffer_unittest.cc",
Florian Mayer78cb5622018-11-27 17:17:10 +00003465 "src/profiling/memory/system_property.cc",
3466 "src/profiling/memory/system_property_unittest.cc",
Florian Mayera2fae262018-08-31 12:10:01 -07003467 "src/profiling/memory/unwinding.cc",
3468 "src/profiling/memory/unwinding_unittest.cc",
Florian Mayer7142c7c2019-05-20 18:11:41 +01003469 "src/profiling/memory/utils.cc",
Florian Mayerb85a9382018-09-27 13:59:01 +01003470 "src/profiling/memory/wire_protocol.cc",
Florian Mayer7ad12752018-10-02 16:48:44 +01003471 "src/profiling/memory/wire_protocol_unittest.cc",
Hector Dearmane1e56b62018-02-21 19:11:58 +00003472 "src/protozero/message.cc",
3473 "src/protozero/message_handle.cc",
3474 "src/protozero/message_handle_unittest.cc",
3475 "src/protozero/message_unittest.cc",
Lalit Maganti45172a82018-06-01 03:04:43 +01003476 "src/protozero/proto_decoder.cc",
3477 "src/protozero/proto_decoder_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003478 "src/protozero/proto_utils_unittest.cc",
Eric Seckler76311202019-01-07 12:20:25 +00003479 "src/protozero/scattered_heap_buffer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +01003480 "src/protozero/scattered_stream_null_delegate.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003481 "src/protozero/scattered_stream_writer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003482 "src/protozero/scattered_stream_writer_unittest.cc",
3483 "src/protozero/test/fake_scattered_buffer.cc",
3484 "src/protozero/test/protozero_conformance_unittest.cc",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003485 "src/traced/probes/android_log/android_log_data_source.cc",
3486 "src/traced/probes/android_log/android_log_data_source_unittest.cc",
Florian Mayer6f9c3422018-03-29 10:37:41 +01003487 "src/traced/probes/filesystem/file_scanner.cc",
Florian Mayeraef0c532018-04-04 10:34:08 +01003488 "src/traced/probes/filesystem/file_scanner_unittest.cc",
Florian Mayer74b73a92018-03-09 17:37:13 +00003489 "src/traced/probes/filesystem/fs_mount.cc",
3490 "src/traced/probes/filesystem/fs_mount_unittest.cc",
Anna Zappone2a6f9042018-03-14 13:26:07 +00003491 "src/traced/probes/filesystem/inode_file_data_source.cc",
Florian Mayerdd889142018-04-05 16:19:37 +01003492 "src/traced/probes/filesystem/inode_file_data_source_unittest.cc",
Florian Mayer8a56b702018-03-14 11:01:17 +00003493 "src/traced/probes/filesystem/lru_inode_cache.cc",
3494 "src/traced/probes/filesystem/lru_inode_cache_unittest.cc",
Florian Mayerb21f4fb2018-03-22 15:24:56 +00003495 "src/traced/probes/filesystem/prefix_finder.cc",
3496 "src/traced/probes/filesystem/prefix_finder_unittest.cc",
3497 "src/traced/probes/filesystem/range_tree.cc",
3498 "src/traced/probes/filesystem/range_tree_unittest.cc",
Isabelle Taylorf3edbfa2019-03-26 11:07:19 +00003499 "src/traced/probes/ftrace/atrace_hal_wrapper.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003500 "src/traced/probes/ftrace/atrace_wrapper.cc",
3501 "src/traced/probes/ftrace/cpu_reader.cc",
3502 "src/traced/probes/ftrace/cpu_reader_unittest.cc",
3503 "src/traced/probes/ftrace/cpu_stats_parser.cc",
3504 "src/traced/probes/ftrace/cpu_stats_parser_unittest.cc",
3505 "src/traced/probes/ftrace/event_info.cc",
3506 "src/traced/probes/ftrace/event_info_constants.cc",
3507 "src/traced/probes/ftrace/event_info_unittest.cc",
3508 "src/traced/probes/ftrace/format_parser.cc",
3509 "src/traced/probes/ftrace/format_parser_unittest.cc",
3510 "src/traced/probes/ftrace/ftrace_config.cc",
3511 "src/traced/probes/ftrace/ftrace_config_muxer.cc",
3512 "src/traced/probes/ftrace/ftrace_config_muxer_unittest.cc",
3513 "src/traced/probes/ftrace/ftrace_config_unittest.cc",
Primiano Tucci0f2f3b42019-05-21 19:37:01 +01003514 "src/traced/probes/ftrace/ftrace_config_utils.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003515 "src/traced/probes/ftrace/ftrace_controller.cc",
3516 "src/traced/probes/ftrace/ftrace_controller_unittest.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +01003517 "src/traced/probes/ftrace/ftrace_data_source.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +01003518 "src/traced/probes/ftrace/ftrace_metadata.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003519 "src/traced/probes/ftrace/ftrace_procfs.cc",
3520 "src/traced/probes/ftrace/ftrace_procfs_unittest.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +01003521 "src/traced/probes/ftrace/ftrace_stats.cc",
Primiano Tuccic20ee512018-11-29 16:40:55 +00003522 "src/traced/probes/ftrace/page_pool.cc",
3523 "src/traced/probes/ftrace/page_pool_unittest.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003524 "src/traced/probes/ftrace/proto_translation_table.cc",
3525 "src/traced/probes/ftrace/proto_translation_table_unittest.cc",
3526 "src/traced/probes/ftrace/test/cpu_reader_support.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003527 "src/traced/probes/metatrace/metatrace_data_source.cc",
Florian Mayer12f0f8e2019-04-02 12:31:13 +01003528 "src/traced/probes/packages_list/packages_list_data_source.cc",
3529 "src/traced/probes/packages_list/packages_list_data_source_unittest.cc",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003530 "src/traced/probes/power/android_power_data_source.cc",
Primiano Tuccifd8240d2018-08-01 09:34:54 +01003531 "src/traced/probes/probes_data_source.cc",
Hector Dearmanebf07c72018-03-13 10:31:05 +00003532 "src/traced/probes/probes_producer.cc",
Primiano Tuccib6de48b2018-07-26 16:00:44 +01003533 "src/traced/probes/ps/process_stats_data_source.cc",
3534 "src/traced/probes/ps/process_stats_data_source_unittest.cc",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003535 "src/traced/probes/sys_stats/sys_stats_data_source.cc",
3536 "src/traced/probes/sys_stats/sys_stats_data_source_unittest.cc",
Florian Mayer3077d182019-03-15 14:30:04 -07003537 "src/traced/service/lazy_producer.cc",
3538 "src/traced/service/lazy_producer_unittest.cc",
3539 "src/traced/service/service.cc",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08003540 "src/tracing/core/chrome_config.cc",
Primiano Tucci79f3f912018-03-02 12:00:31 +00003541 "src/tracing/core/commit_data_request.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003542 "src/tracing/core/data_source_config.cc",
3543 "src/tracing/core/data_source_descriptor.cc",
Primiano Tucci422caff2017-12-18 23:58:52 +01003544 "src/tracing/core/id_allocator.cc",
3545 "src/tracing/core/id_allocator_unittest.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003546 "src/tracing/core/metatrace_writer.cc",
Hector Dearman9a5a0e92018-03-27 17:52:24 +01003547 "src/tracing/core/null_trace_writer.cc",
3548 "src/tracing/core/null_trace_writer_unittest.cc",
Eric Seckler7b0c9452019-03-18 13:14:36 +00003549 "src/tracing/core/observable_events.cc",
Sami Kyostila32e0b542018-02-14 08:55:43 +00003550 "src/tracing/core/packet_stream_validator.cc",
3551 "src/tracing/core/packet_stream_validator_unittest.cc",
Primiano Tucci09db8272018-03-08 17:47:47 +00003552 "src/tracing/core/patch_list_unittest.cc",
Primiano Tuccif5d6d532017-12-19 00:59:34 +01003553 "src/tracing/core/shared_memory_abi.cc",
3554 "src/tracing/core/shared_memory_abi_unittest.cc",
Oystein Eftevaag6d0bc7f2018-01-13 12:21:55 -08003555 "src/tracing/core/shared_memory_arbiter_impl.cc",
3556 "src/tracing/core/shared_memory_arbiter_impl_unittest.cc",
Primiano Tucci16d1d632018-02-22 10:16:22 +00003557 "src/tracing/core/sliced_protobuf_input_stream.cc",
3558 "src/tracing/core/sliced_protobuf_input_stream_unittest.cc",
Eric Secklerc65693d2019-01-11 15:12:48 +00003559 "src/tracing/core/startup_trace_writer.cc",
Eric Seckler42777e52019-01-23 10:13:22 +00003560 "src/tracing/core/startup_trace_writer_registry.cc",
Eric Secklerc65693d2019-01-11 15:12:48 +00003561 "src/tracing/core/startup_trace_writer_unittest.cc",
Lalit Maganti3f5705c2018-03-09 12:09:44 +00003562 "src/tracing/core/test_config.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +00003563 "src/tracing/core/trace_buffer.cc",
3564 "src/tracing/core/trace_buffer_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003565 "src/tracing/core/trace_config.cc",
3566 "src/tracing/core/trace_packet.cc",
3567 "src/tracing/core/trace_packet_unittest.cc",
Eric Secklereaf29ed2019-01-23 09:53:55 +00003568 "src/tracing/core/trace_stats.cc",
Isabelle Taylor16848562018-04-12 13:30:58 +01003569 "src/tracing/core/trace_writer_for_testing.cc",
Primiano Tuccid7b59c42017-12-19 01:43:07 +01003570 "src/tracing/core/trace_writer_impl.cc",
3571 "src/tracing/core/trace_writer_impl_unittest.cc",
Florian Mayer6a1a4d52018-06-08 16:47:07 +01003572 "src/tracing/core/tracing_service_impl.cc",
Hector Dearman85170a22019-03-12 14:34:16 +00003573 "src/tracing/core/tracing_service_impl_unittest.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01003574 "src/tracing/core/tracing_service_state.cc",
Primiano Tucci3cbb10a2018-04-10 17:52:40 +01003575 "src/tracing/core/virtual_destructors.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003576 "src/tracing/ipc/posix_shared_memory_unittest.cc",
Primiano Tuccid7b59c42017-12-19 01:43:07 +01003577 "src/tracing/test/aligned_buffer_test.cc",
Primiano Tucci5c599012018-03-01 17:52:07 +00003578 "src/tracing/test/fake_packet.cc",
Primiano Tuccidca727d2018-04-04 11:31:55 +02003579 "src/tracing/test/mock_consumer.cc",
3580 "src/tracing/test/mock_producer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003581 "src/tracing/test/test_shared_memory.cc",
Primiano Tucci53589332017-12-19 11:31:13 +01003582 "src/tracing/test/tracing_integration_test.cc",
Primiano Tucci2c5488f2019-06-01 03:27:28 +01003583 "src/tracing/trace_writer_base.cc",
Isabelle Taylorcfc8eba2018-12-16 21:02:56 +00003584 "tools/ftrace_proto_gen/ftrace_descriptor_gen.cc",
Hector Dearman39071ba2018-01-16 13:58:50 +00003585 "tools/ftrace_proto_gen/ftrace_proto_gen.cc",
3586 "tools/ftrace_proto_gen/ftrace_proto_gen_unittest.cc",
Isabelle Tayloraa45fe02018-12-16 21:02:20 +00003587 "tools/ftrace_proto_gen/proto_gen_utils.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003588 "tools/sanitizers_unittests/sanitizers_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +00003589 ],
3590 shared_libs: [
3591 "libandroid",
Florian Mayera2fae262018-08-31 12:10:01 -07003592 "libbase",
Primiano Tucci106605c2019-01-08 21:12:58 +00003593 "libbinder",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003594 "liblog",
Florian Mayera2fae262018-08-31 12:10:01 -07003595 "libprocinfo",
Florian Mayer7c9e3b22018-04-26 11:55:15 +01003596 "libprotobuf-cpp-full",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003597 "libprotobuf-cpp-lite",
Primiano Tucci106605c2019-01-08 21:12:58 +00003598 "libservices",
Florian Mayera2fae262018-08-31 12:10:01 -07003599 "libunwindstack",
Primiano Tucci106605c2019-01-08 21:12:58 +00003600 "libutils",
Hector Dearmane0b993f2019-05-24 18:48:16 +01003601 "libz",
Sami Kyostila2357b032017-12-06 18:38:17 +00003602 ],
3603 static_libs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +00003604 "libgmock",
Sami Kyostilaebba0fe2017-12-19 14:01:52 +00003605 "perfetto_src_tracing_ipc",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003606 ],
3607 generated_headers: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003608 "perfetto_protos_perfetto_common_lite_gen_headers",
3609 "perfetto_protos_perfetto_common_zero_gen_headers",
3610 "perfetto_protos_perfetto_config_lite_gen_headers",
3611 "perfetto_protos_perfetto_config_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003612 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003613 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
3614 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -08003615 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
3616 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Anna Zapponeed55ebf2018-03-02 12:12:15 +00003617 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
3618 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003619 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
3620 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003621 "perfetto_protos_perfetto_trace_gpu_lite_gen_headers",
3622 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003623 "perfetto_protos_perfetto_trace_interned_data_lite_gen_headers",
3624 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003625 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003626 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003627 "perfetto_protos_perfetto_trace_perfetto_lite_gen_headers",
3628 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003629 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
3630 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00003631 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
3632 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Lalit Maganti65b28a12018-02-14 18:27:14 +00003633 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
3634 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003635 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
3636 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003637 "perfetto_protos_perfetto_trace_track_event_lite_gen_headers",
3638 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
Oystein Eftevaag4d0f6c82018-04-30 14:19:59 -07003639 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
Primiano Tucci20b760c2018-01-19 12:36:12 +00003640 "perfetto_protos_perfetto_trace_zero_gen_headers",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003641 "perfetto_src_ipc_test_messages_gen_headers",
3642 "perfetto_src_ipc_wire_protocol_gen_headers",
Hector Dearman86cfbe12018-03-22 11:58:42 +00003643 "perfetto_src_perfetto_cmd_protos_gen_headers",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003644 "perfetto_src_protozero_testing_messages_lite_gen_headers",
3645 "perfetto_src_protozero_testing_messages_zero_gen_headers",
Primiano Tuccide82dae2018-06-04 16:17:49 +02003646 "perfetto_src_traced_probes_ftrace_test_messages_lite_gen_headers",
3647 "perfetto_src_traced_probes_ftrace_test_messages_zero_gen_headers",
Sami Kyostilab27619f2017-12-13 19:22:16 +00003648 ],
3649 defaults: [
3650 "perfetto_defaults",
Sami Kyostila2357b032017-12-06 18:38:17 +00003651 ],
Florian Mayer3d5e7e62018-01-19 15:22:46 +00003652 cflags: [
3653 "-DGOOGLE_PROTOBUF_NO_RTTI",
3654 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Hector Dearman554627f2019-06-04 17:58:22 +01003655 "-DHAVE_HIDDEN",
Primiano Tucci106605c2019-01-08 21:12:58 +00003656 "-DPERFETTO_BUILD_WITH_ANDROID",
Florian Mayer3d5e7e62018-01-19 15:22:46 +00003657 ],
Logan Chien9bfaaf92018-02-13 18:49:24 +08003658 product_variables: {
3659 pdk: {
3660 enabled: false,
3661 },
3662 },
Sami Kyostila2357b032017-12-06 18:38:17 +00003663}
Primiano Tucci4e49c022017-12-21 18:22:44 +01003664
Lalit Magantiedace412019-06-18 13:28:28 +01003665// GN target: //:trace_processor_shell
3666cc_binary {
3667 name: "trace_processor_shell",
3668 srcs: [
3669 ":perfetto_protos_perfetto_common_zero_gen",
3670 ":perfetto_protos_perfetto_config_zero_gen",
3671 ":perfetto_protos_perfetto_metrics_android_zero_gen",
3672 ":perfetto_protos_perfetto_metrics_zero_gen",
3673 ":perfetto_protos_perfetto_trace_android_zero_gen",
3674 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
3675 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
3676 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
3677 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
3678 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
3679 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
3680 ":perfetto_protos_perfetto_trace_power_zero_gen",
3681 ":perfetto_protos_perfetto_trace_processor_metrics_impl_zero_gen",
3682 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
3683 ":perfetto_protos_perfetto_trace_ps_zero_gen",
3684 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
3685 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
3686 ":perfetto_protos_perfetto_trace_zero_gen",
Sami Kyostila389861f2019-07-09 20:52:43 +01003687 "src/base/event_fd.cc",
Lalit Magantiedace412019-06-18 13:28:28 +01003688 "src/base/file_utils.cc",
3689 "src/base/metatrace.cc",
3690 "src/base/paged_memory.cc",
3691 "src/base/pipe.cc",
3692 "src/base/string_splitter.cc",
3693 "src/base/string_utils.cc",
3694 "src/base/string_view.cc",
3695 "src/base/temp_file.cc",
3696 "src/base/thread_checker.cc",
3697 "src/base/thread_task_runner.cc",
3698 "src/base/time.cc",
3699 "src/base/unix_task_runner.cc",
3700 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +01003701 "src/base/waitable_event.cc",
Lalit Magantiedace412019-06-18 13:28:28 +01003702 "src/base/watchdog_posix.cc",
3703 "src/protozero/message.cc",
3704 "src/protozero/message_handle.cc",
3705 "src/protozero/proto_decoder.cc",
3706 "src/protozero/scattered_heap_buffer.cc",
3707 "src/protozero/scattered_stream_null_delegate.cc",
3708 "src/protozero/scattered_stream_writer.cc",
3709 "src/trace_processor/android_logs_table.cc",
3710 "src/trace_processor/args_table.cc",
3711 "src/trace_processor/args_tracker.cc",
3712 "src/trace_processor/clock_tracker.cc",
3713 "src/trace_processor/counter_definitions_table.cc",
3714 "src/trace_processor/counter_values_table.cc",
3715 "src/trace_processor/event_tracker.cc",
3716 "src/trace_processor/filtered_row_index.cc",
3717 "src/trace_processor/ftrace_descriptors.cc",
3718 "src/trace_processor/ftrace_utils.cc",
3719 "src/trace_processor/fuchsia_provider_view.cc",
3720 "src/trace_processor/fuchsia_trace_parser.cc",
3721 "src/trace_processor/fuchsia_trace_tokenizer.cc",
3722 "src/trace_processor/fuchsia_trace_utils.cc",
3723 "src/trace_processor/gzip_trace_parser.cc",
3724 "src/trace_processor/heap_profile_allocation_table.cc",
3725 "src/trace_processor/heap_profile_callsite_table.cc",
3726 "src/trace_processor/heap_profile_frame_table.cc",
3727 "src/trace_processor/heap_profile_mapping_table.cc",
3728 "src/trace_processor/heap_profile_tracker.cc",
3729 "src/trace_processor/instants_table.cc",
3730 "src/trace_processor/metadata_table.cc",
3731 "src/trace_processor/metrics/descriptors.cc",
3732 "src/trace_processor/metrics/metrics.cc",
3733 "src/trace_processor/process_table.cc",
3734 "src/trace_processor/process_tracker.cc",
3735 "src/trace_processor/proto_trace_parser.cc",
3736 "src/trace_processor/proto_trace_tokenizer.cc",
3737 "src/trace_processor/query_constraints.cc",
3738 "src/trace_processor/raw_table.cc",
3739 "src/trace_processor/row_iterators.cc",
3740 "src/trace_processor/sched_slice_table.cc",
3741 "src/trace_processor/slice_table.cc",
3742 "src/trace_processor/slice_tracker.cc",
3743 "src/trace_processor/span_join_operator_table.cc",
3744 "src/trace_processor/sql_stats_table.cc",
3745 "src/trace_processor/sqlite3_str_split.cc",
3746 "src/trace_processor/stats_table.cc",
3747 "src/trace_processor/storage_columns.cc",
3748 "src/trace_processor/storage_schema.cc",
3749 "src/trace_processor/storage_table.cc",
3750 "src/trace_processor/string_pool.cc",
Lalit Magantiedace412019-06-18 13:28:28 +01003751 "src/trace_processor/syscall_tracker.cc",
3752 "src/trace_processor/systrace_parser.cc",
3753 "src/trace_processor/systrace_trace_parser.cc",
3754 "src/trace_processor/table.cc",
3755 "src/trace_processor/thread_table.cc",
3756 "src/trace_processor/trace_processor.cc",
3757 "src/trace_processor/trace_processor_context.cc",
3758 "src/trace_processor/trace_processor_impl.cc",
3759 "src/trace_processor/trace_processor_shell.cc",
3760 "src/trace_processor/trace_sorter.cc",
3761 "src/trace_processor/trace_storage.cc",
3762 "src/trace_processor/virtual_destructors.cc",
Eric Seckler5703ede2019-07-10 10:13:02 +01003763 "src/trace_processor/virtual_track_tracker.cc",
Lalit Magantiedace412019-06-18 13:28:28 +01003764 "src/trace_processor/window_operator_table.cc",
3765 ],
3766 shared_libs: [
3767 "liblog",
3768 "libprotobuf-cpp-full",
3769 "libz",
3770 ],
3771 generated_headers: [
3772 "gen_merged_sql_metrics",
3773 "perfetto_protos_perfetto_common_zero_gen_headers",
3774 "perfetto_protos_perfetto_config_zero_gen_headers",
3775 "perfetto_protos_perfetto_metrics_android_zero_gen_headers",
3776 "perfetto_protos_perfetto_metrics_zero_gen_headers",
3777 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
3778 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
3779 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
3780 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
3781 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
3782 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
3783 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
3784 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
3785 "perfetto_protos_perfetto_trace_processor_metrics_impl_zero_gen_headers",
3786 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
3787 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
3788 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
3789 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
3790 "perfetto_protos_perfetto_trace_zero_gen_headers",
3791 ],
3792 defaults: [
3793 "perfetto_defaults",
3794 ],
3795 cflags: [
3796 "-DGOOGLE_PROTOBUF_NO_RTTI",
3797 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
3798 "-DHAVE_HIDDEN",
3799 "-DPERFETTO_BUILD_WITH_ANDROID",
3800 ],
3801 target: {
3802 android: {
3803 shared_libs: [
3804 "libandroidicu",
3805 "liblog",
3806 "libsqlite",
3807 "libutils",
3808 ],
3809 },
3810 host: {
3811 static_libs: [
3812 "libsqlite",
3813 ],
3814 },
3815 },
3816}
3817
Primiano Tucci21c19d82018-03-29 12:35:08 +01003818// GN target: //:trace_to_text
3819cc_binary_host {
3820 name: "trace_to_text",
3821 srcs: [
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003822 ":perfetto_protos_perfetto_common_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003823 ":perfetto_protos_perfetto_common_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003824 ":perfetto_protos_perfetto_config_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003825 ":perfetto_protos_perfetto_config_zero_gen",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003826 ":perfetto_protos_perfetto_metrics_android_zero_gen",
3827 ":perfetto_protos_perfetto_metrics_zero_gen",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003828 ":perfetto_protos_perfetto_trace_android_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003829 ":perfetto_protos_perfetto_trace_android_zero_gen",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003830 ":perfetto_protos_perfetto_trace_chrome_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003831 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003832 ":perfetto_protos_perfetto_trace_filesystem_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003833 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003834 ":perfetto_protos_perfetto_trace_ftrace_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003835 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003836 ":perfetto_protos_perfetto_trace_gpu_lite_gen",
3837 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +00003838 ":perfetto_protos_perfetto_trace_interned_data_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003839 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003840 ":perfetto_protos_perfetto_trace_lite_gen",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003841 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003842 ":perfetto_protos_perfetto_trace_perfetto_lite_gen",
3843 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003844 ":perfetto_protos_perfetto_trace_power_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003845 ":perfetto_protos_perfetto_trace_power_zero_gen",
Lalit Magantie59293b2019-05-22 15:07:39 +01003846 ":perfetto_protos_perfetto_trace_processor_metrics_impl_zero_gen",
Florian Mayer4afdd642018-11-13 11:11:04 +00003847 ":perfetto_protos_perfetto_trace_profiling_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003848 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003849 ":perfetto_protos_perfetto_trace_ps_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003850 ":perfetto_protos_perfetto_trace_ps_zero_gen",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003851 ":perfetto_protos_perfetto_trace_sys_stats_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003852 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
Eric Secklerc73ef062019-02-25 12:30:35 +00003853 ":perfetto_protos_perfetto_trace_track_event_lite_gen",
Primiano Tuccic1678872019-03-20 11:30:54 +00003854 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
3855 ":perfetto_protos_perfetto_trace_zero_gen",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00003856 ":perfetto_protos_third_party_pprof_lite_gen",
Sami Kyostila389861f2019-07-09 20:52:43 +01003857 "src/base/event_fd.cc",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00003858 "src/base/file_utils.cc",
3859 "src/base/metatrace.cc",
3860 "src/base/paged_memory.cc",
Primiano Tucci76499cd2018-11-21 10:54:04 +01003861 "src/base/pipe.cc",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00003862 "src/base/string_splitter.cc",
3863 "src/base/string_utils.cc",
Primiano Tucci60c4a2b2019-03-02 17:11:18 +00003864 "src/base/string_view.cc",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00003865 "src/base/temp_file.cc",
3866 "src/base/thread_checker.cc",
Ryan Savitski29885792019-03-14 12:10:13 +00003867 "src/base/thread_task_runner.cc",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00003868 "src/base/time.cc",
3869 "src/base/unix_task_runner.cc",
3870 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +01003871 "src/base/waitable_event.cc",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00003872 "src/base/watchdog_posix.cc",
Lalit Maganti17aa2732019-02-08 15:47:26 +00003873 "src/protozero/message.cc",
3874 "src/protozero/message_handle.cc",
3875 "src/protozero/proto_decoder.cc",
Lalit Maganti17aa2732019-02-08 15:47:26 +00003876 "src/protozero/scattered_heap_buffer.cc",
3877 "src/protozero/scattered_stream_null_delegate.cc",
3878 "src/protozero/scattered_stream_writer.cc",
3879 "src/trace_processor/android_logs_table.cc",
3880 "src/trace_processor/args_table.cc",
3881 "src/trace_processor/args_tracker.cc",
3882 "src/trace_processor/clock_tracker.cc",
Lalit Maganti8320e6d2019-03-14 18:49:33 +00003883 "src/trace_processor/counter_definitions_table.cc",
3884 "src/trace_processor/counter_values_table.cc",
Lalit Maganti17aa2732019-02-08 15:47:26 +00003885 "src/trace_processor/event_tracker.cc",
3886 "src/trace_processor/filtered_row_index.cc",
3887 "src/trace_processor/ftrace_descriptors.cc",
3888 "src/trace_processor/ftrace_utils.cc",
Brian Hamrickd57e1332019-04-24 11:25:36 -07003889 "src/trace_processor/fuchsia_provider_view.cc",
3890 "src/trace_processor/fuchsia_trace_parser.cc",
3891 "src/trace_processor/fuchsia_trace_tokenizer.cc",
3892 "src/trace_processor/fuchsia_trace_utils.cc",
Hector Dearman22f1de52019-06-04 18:11:45 +01003893 "src/trace_processor/gzip_trace_parser.cc",
Lalit Maganti9b2d52b2019-05-07 14:32:15 +01003894 "src/trace_processor/heap_profile_allocation_table.cc",
3895 "src/trace_processor/heap_profile_callsite_table.cc",
3896 "src/trace_processor/heap_profile_frame_table.cc",
3897 "src/trace_processor/heap_profile_mapping_table.cc",
Florian Mayer438b5ab2019-05-02 11:18:06 +01003898 "src/trace_processor/heap_profile_tracker.cc",
Lalit Maganti17aa2732019-02-08 15:47:26 +00003899 "src/trace_processor/instants_table.cc",
Mikhail Khokhlove466c002019-05-23 13:33:33 +01003900 "src/trace_processor/metadata_table.cc",
Lalit Maganti62211072019-05-10 14:09:58 +01003901 "src/trace_processor/metrics/descriptors.cc",
Lalit Maganti622676a2019-04-30 14:15:37 +01003902 "src/trace_processor/metrics/metrics.cc",
Lalit Maganti17aa2732019-02-08 15:47:26 +00003903 "src/trace_processor/process_table.cc",
3904 "src/trace_processor/process_tracker.cc",
3905 "src/trace_processor/proto_trace_parser.cc",
3906 "src/trace_processor/proto_trace_tokenizer.cc",
3907 "src/trace_processor/query_constraints.cc",
3908 "src/trace_processor/raw_table.cc",
3909 "src/trace_processor/row_iterators.cc",
3910 "src/trace_processor/sched_slice_table.cc",
3911 "src/trace_processor/slice_table.cc",
3912 "src/trace_processor/slice_tracker.cc",
3913 "src/trace_processor/span_join_operator_table.cc",
3914 "src/trace_processor/sql_stats_table.cc",
Ioannis Ilkosbf54ebb2019-03-08 13:26:14 +00003915 "src/trace_processor/sqlite3_str_split.cc",
Lalit Maganti17aa2732019-02-08 15:47:26 +00003916 "src/trace_processor/stats_table.cc",
3917 "src/trace_processor/storage_columns.cc",
3918 "src/trace_processor/storage_schema.cc",
3919 "src/trace_processor/storage_table.cc",
Lalit Maganti8eba3092019-03-27 13:25:29 +00003920 "src/trace_processor/string_pool.cc",
Hector Dearmanf31a7032019-03-29 10:05:09 +00003921 "src/trace_processor/syscall_tracker.cc",
Lalit Magantid33dc272019-06-06 14:51:45 +01003922 "src/trace_processor/systrace_parser.cc",
Lalit Magantid54d7522019-05-30 14:36:08 +01003923 "src/trace_processor/systrace_trace_parser.cc",
Lalit Maganti17aa2732019-02-08 15:47:26 +00003924 "src/trace_processor/table.cc",
3925 "src/trace_processor/thread_table.cc",
3926 "src/trace_processor/trace_processor.cc",
3927 "src/trace_processor/trace_processor_context.cc",
3928 "src/trace_processor/trace_processor_impl.cc",
3929 "src/trace_processor/trace_sorter.cc",
3930 "src/trace_processor/trace_storage.cc",
3931 "src/trace_processor/virtual_destructors.cc",
Eric Seckler5703ede2019-07-10 10:13:02 +01003932 "src/trace_processor/virtual_track_tracker.cc",
Lalit Maganti17aa2732019-02-08 15:47:26 +00003933 "src/trace_processor/window_operator_table.cc",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003934 "tools/trace_to_text/main.cc",
Ioannis Ilkosbd4ee3f2019-06-21 17:40:09 +01003935 "tools/trace_to_text/pprof_builder.cc",
Primiano Tucci20dc8f72018-10-23 12:28:29 +01003936 "tools/trace_to_text/proto_full_utils.cc",
Florian Mayer0b063752019-07-08 19:51:31 +01003937 "tools/trace_to_text/symbolize_profile.cc",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00003938 "tools/trace_to_text/trace_to_profile.cc",
Primiano Tucci20dc8f72018-10-23 12:28:29 +01003939 "tools/trace_to_text/trace_to_systrace.cc",
3940 "tools/trace_to_text/trace_to_text.cc",
3941 "tools/trace_to_text/utils.cc",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003942 ],
3943 shared_libs: [
3944 "liblog",
3945 "libprotobuf-cpp-full",
3946 "libprotobuf-cpp-lite",
Hector Dearman22f1de52019-06-04 18:11:45 +01003947 "libz",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003948 ],
Eric Seckler57c89d92018-10-26 15:11:55 +01003949 static_libs: [
Lalit Maganti17aa2732019-02-08 15:47:26 +00003950 "libsqlite",
Eric Seckler57c89d92018-10-26 15:11:55 +01003951 ],
Primiano Tucci21c19d82018-03-29 12:35:08 +01003952 generated_headers: [
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003953 "gen_merged_sql_metrics",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003954 "perfetto_protos_perfetto_common_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003955 "perfetto_protos_perfetto_common_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003956 "perfetto_protos_perfetto_config_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003957 "perfetto_protos_perfetto_config_zero_gen_headers",
Lalit Maganti26f69bd2019-04-29 18:23:47 +01003958 "perfetto_protos_perfetto_metrics_android_zero_gen_headers",
3959 "perfetto_protos_perfetto_metrics_zero_gen_headers",
Primiano Tucci64df2ca2019-01-03 22:26:47 +00003960 "perfetto_protos_perfetto_trace_android_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003961 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003962 "perfetto_protos_perfetto_trace_chrome_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003963 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003964 "perfetto_protos_perfetto_trace_filesystem_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003965 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003966 "perfetto_protos_perfetto_trace_ftrace_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003967 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -07003968 "perfetto_protos_perfetto_trace_gpu_lite_gen_headers",
3969 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003970 "perfetto_protos_perfetto_trace_interned_data_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003971 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003972 "perfetto_protos_perfetto_trace_lite_gen_headers",
Primiano Tucci07e104d2018-04-03 20:45:35 +02003973 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01003974 "perfetto_protos_perfetto_trace_perfetto_lite_gen_headers",
3975 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Primiano Tuccib86e9ca2018-12-03 20:20:11 +01003976 "perfetto_protos_perfetto_trace_power_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003977 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
Lalit Magantie59293b2019-05-22 15:07:39 +01003978 "perfetto_protos_perfetto_trace_processor_metrics_impl_zero_gen_headers",
Florian Mayer4afdd642018-11-13 11:11:04 +00003979 "perfetto_protos_perfetto_trace_profiling_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003980 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003981 "perfetto_protos_perfetto_trace_ps_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003982 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
Primiano Tucci82a8bfd2018-09-19 11:33:04 +01003983 "perfetto_protos_perfetto_trace_sys_stats_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003984 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
Eric Secklerc73ef062019-02-25 12:30:35 +00003985 "perfetto_protos_perfetto_trace_track_event_lite_gen_headers",
Primiano Tuccic1678872019-03-20 11:30:54 +00003986 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
3987 "perfetto_protos_perfetto_trace_zero_gen_headers",
Florian Mayer0ca7fb42018-11-15 21:13:42 +00003988 "perfetto_protos_third_party_pprof_lite_gen_headers",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003989 ],
3990 defaults: [
3991 "perfetto_defaults",
3992 ],
3993 cflags: [
3994 "-DGOOGLE_PROTOBUF_NO_RTTI",
3995 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Hector Dearman22f1de52019-06-04 18:11:45 +01003996 "-DHAVE_HIDDEN",
Primiano Tucci7c7f5f52019-01-15 21:47:04 +00003997 "-DPERFETTO_BUILD_WITH_ANDROID",
Primiano Tucci21c19d82018-03-29 12:35:08 +01003998 ],
3999}
4000
Primiano Tucci4e49c022017-12-21 18:22:44 +01004001// GN target: //:traced
4002cc_binary {
4003 name: "traced",
4004 srcs: [
Primiano Tucci6067e732018-01-08 16:19:40 +00004005 "src/traced/service/main.cc",
Primiano Tucci4e49c022017-12-21 18:22:44 +01004006 ],
4007 shared_libs: [
Primiano Tucci4e49c022017-12-21 18:22:44 +01004008 "liblog",
Primiano Tuccibdb2a592018-10-11 15:59:29 +01004009 "libperfetto",
Primiano Tucci4e49c022017-12-21 18:22:44 +01004010 ],
Primiano Tucci5a304532018-01-09 14:15:43 +00004011 init_rc: [
4012 "perfetto.rc",
4013 ],
Primiano Tucci6067e732018-01-08 16:19:40 +00004014 defaults: [
4015 "perfetto_defaults",
Primiano Tucci4e49c022017-12-21 18:22:44 +01004016 ],
Primiano Tucci7c7f5f52019-01-15 21:47:04 +00004017 cflags: [
4018 "-DPERFETTO_BUILD_WITH_ANDROID",
4019 ],
Primiano Tucci6067e732018-01-08 16:19:40 +00004020}
4021
4022// GN target: //:traced_probes
4023cc_binary {
4024 name: "traced_probes",
4025 srcs: [
4026 "src/traced/probes/main.cc",
4027 ],
4028 shared_libs: [
Primiano Tucci6067e732018-01-08 16:19:40 +00004029 "liblog",
Primiano Tuccibdb2a592018-10-11 15:59:29 +01004030 "libperfetto",
Primiano Tucci4e49c022017-12-21 18:22:44 +01004031 ],
4032 defaults: [
4033 "perfetto_defaults",
4034 ],
Primiano Tucci7c7f5f52019-01-15 21:47:04 +00004035 cflags: [
4036 "-DPERFETTO_BUILD_WITH_ANDROID",
4037 ],
Primiano Tucci676f0cc2018-12-03 20:03:26 +01004038 required: [
4039 "libperfetto_android_internal",
Hector Dearman696ff772019-04-23 18:38:53 +01004040 "trigger_perfetto",
4041 ],
4042}
4043
4044// GN target: //:trigger_perfetto
4045cc_binary {
4046 name: "trigger_perfetto",
4047 srcs: [
4048 ":perfetto_protos_perfetto_common_lite_gen",
4049 ":perfetto_protos_perfetto_common_zero_gen",
4050 ":perfetto_protos_perfetto_config_lite_gen",
4051 ":perfetto_protos_perfetto_config_zero_gen",
4052 ":perfetto_protos_perfetto_ipc_ipc_gen",
4053 ":perfetto_protos_perfetto_trace_android_zero_gen",
4054 ":perfetto_protos_perfetto_trace_chrome_zero_gen",
4055 ":perfetto_protos_perfetto_trace_filesystem_zero_gen",
4056 ":perfetto_protos_perfetto_trace_ftrace_zero_gen",
Raymond Chiu9a707c22019-05-22 13:19:47 -07004057 ":perfetto_protos_perfetto_trace_gpu_zero_gen",
Hector Dearman696ff772019-04-23 18:38:53 +01004058 ":perfetto_protos_perfetto_trace_interned_data_zero_gen",
4059 ":perfetto_protos_perfetto_trace_minimal_lite_gen",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01004060 ":perfetto_protos_perfetto_trace_perfetto_zero_gen",
Hector Dearman696ff772019-04-23 18:38:53 +01004061 ":perfetto_protos_perfetto_trace_power_zero_gen",
4062 ":perfetto_protos_perfetto_trace_profiling_zero_gen",
4063 ":perfetto_protos_perfetto_trace_ps_zero_gen",
4064 ":perfetto_protos_perfetto_trace_sys_stats_zero_gen",
4065 ":perfetto_protos_perfetto_trace_track_event_zero_gen",
4066 ":perfetto_protos_perfetto_trace_trusted_lite_gen",
4067 ":perfetto_protos_perfetto_trace_zero_gen",
4068 ":perfetto_src_ipc_wire_protocol_gen",
4069 ":perfetto_src_perfetto_cmd_protos_gen",
Sami Kyostila389861f2019-07-09 20:52:43 +01004070 "src/base/event_fd.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004071 "src/base/file_utils.cc",
4072 "src/base/metatrace.cc",
4073 "src/base/paged_memory.cc",
4074 "src/base/pipe.cc",
4075 "src/base/string_splitter.cc",
4076 "src/base/string_utils.cc",
4077 "src/base/string_view.cc",
4078 "src/base/temp_file.cc",
4079 "src/base/thread_checker.cc",
4080 "src/base/thread_task_runner.cc",
4081 "src/base/time.cc",
4082 "src/base/unix_socket.cc",
4083 "src/base/unix_task_runner.cc",
4084 "src/base/virtual_destructors.cc",
Sami Kyostila389861f2019-07-09 20:52:43 +01004085 "src/base/waitable_event.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004086 "src/base/watchdog_posix.cc",
4087 "src/ipc/buffered_frame_deserializer.cc",
4088 "src/ipc/client_impl.cc",
4089 "src/ipc/deferred.cc",
4090 "src/ipc/host_impl.cc",
4091 "src/ipc/service_proxy.cc",
4092 "src/ipc/virtual_destructors.cc",
4093 "src/perfetto_cmd/trigger_perfetto.cc",
4094 "src/perfetto_cmd/trigger_perfetto_main.cc",
4095 "src/perfetto_cmd/trigger_producer.cc",
4096 "src/protozero/message.cc",
4097 "src/protozero/message_handle.cc",
4098 "src/protozero/proto_decoder.cc",
4099 "src/protozero/scattered_heap_buffer.cc",
4100 "src/protozero/scattered_stream_null_delegate.cc",
4101 "src/protozero/scattered_stream_writer.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004102 "src/tracing/core/chrome_config.cc",
4103 "src/tracing/core/commit_data_request.cc",
4104 "src/tracing/core/data_source_config.cc",
4105 "src/tracing/core/data_source_descriptor.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004106 "src/tracing/core/id_allocator.cc",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01004107 "src/tracing/core/metatrace_writer.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004108 "src/tracing/core/null_trace_writer.cc",
4109 "src/tracing/core/observable_events.cc",
4110 "src/tracing/core/packet_stream_validator.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004111 "src/tracing/core/shared_memory_abi.cc",
4112 "src/tracing/core/shared_memory_arbiter_impl.cc",
4113 "src/tracing/core/sliced_protobuf_input_stream.cc",
4114 "src/tracing/core/startup_trace_writer.cc",
4115 "src/tracing/core/startup_trace_writer_registry.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004116 "src/tracing/core/test_config.cc",
4117 "src/tracing/core/trace_buffer.cc",
4118 "src/tracing/core/trace_config.cc",
4119 "src/tracing/core/trace_packet.cc",
4120 "src/tracing/core/trace_stats.cc",
4121 "src/tracing/core/trace_writer_impl.cc",
4122 "src/tracing/core/tracing_service_impl.cc",
Primiano Tucci2854a0a2019-06-03 14:51:18 +01004123 "src/tracing/core/tracing_service_state.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004124 "src/tracing/core/virtual_destructors.cc",
Primiano Tucci2c5488f2019-06-01 03:27:28 +01004125 "src/tracing/trace_writer_base.cc",
Hector Dearman696ff772019-04-23 18:38:53 +01004126 ],
4127 shared_libs: [
4128 "liblog",
4129 "libprotobuf-cpp-lite",
4130 ],
4131 static_libs: [
Hector Dearman696ff772019-04-23 18:38:53 +01004132 "perfetto_src_tracing_ipc",
4133 ],
4134 generated_headers: [
4135 "perfetto_protos_perfetto_common_lite_gen_headers",
4136 "perfetto_protos_perfetto_common_zero_gen_headers",
4137 "perfetto_protos_perfetto_config_lite_gen_headers",
4138 "perfetto_protos_perfetto_config_zero_gen_headers",
4139 "perfetto_protos_perfetto_ipc_ipc_gen_headers",
4140 "perfetto_protos_perfetto_trace_android_zero_gen_headers",
4141 "perfetto_protos_perfetto_trace_chrome_zero_gen_headers",
4142 "perfetto_protos_perfetto_trace_filesystem_zero_gen_headers",
4143 "perfetto_protos_perfetto_trace_ftrace_zero_gen_headers",
Raymond Chiu9a707c22019-05-22 13:19:47 -07004144 "perfetto_protos_perfetto_trace_gpu_zero_gen_headers",
Hector Dearman696ff772019-04-23 18:38:53 +01004145 "perfetto_protos_perfetto_trace_interned_data_zero_gen_headers",
4146 "perfetto_protos_perfetto_trace_minimal_lite_gen_headers",
Primiano Tuccib02d8dc2019-06-04 11:46:43 +01004147 "perfetto_protos_perfetto_trace_perfetto_zero_gen_headers",
Hector Dearman696ff772019-04-23 18:38:53 +01004148 "perfetto_protos_perfetto_trace_power_zero_gen_headers",
4149 "perfetto_protos_perfetto_trace_profiling_zero_gen_headers",
4150 "perfetto_protos_perfetto_trace_ps_zero_gen_headers",
4151 "perfetto_protos_perfetto_trace_sys_stats_zero_gen_headers",
4152 "perfetto_protos_perfetto_trace_track_event_zero_gen_headers",
4153 "perfetto_protos_perfetto_trace_trusted_lite_gen_headers",
4154 "perfetto_protos_perfetto_trace_zero_gen_headers",
4155 "perfetto_src_ipc_wire_protocol_gen_headers",
4156 "perfetto_src_perfetto_cmd_protos_gen_headers",
4157 ],
4158 defaults: [
4159 "perfetto_defaults",
4160 ],
4161 cflags: [
4162 "-DGOOGLE_PROTOBUF_NO_RTTI",
4163 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
4164 "-DPERFETTO_BUILD_WITH_ANDROID",
Primiano Tucci676f0cc2018-12-03 20:03:26 +01004165 ],
Primiano Tucci4e49c022017-12-21 18:22:44 +01004166}
Lalit Maganti83e712a2018-02-05 15:48:00 +00004167
4168// These targets are appended to the autogenerated Android.bp by tools/gen_android_bp.
Lalit Magantia88807d2018-03-05 18:21:38 +00004169cc_library_static {
4170 name: "perfetto_cts_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004171 srcs: [
4172 "src/base/android_task_runner.cc",
4173 "src/base/test/test_task_runner.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02004174 "src/traced/probes/ftrace/cpu_reader.cc",
4175 "src/traced/probes/ftrace/event_info.cc",
4176 "src/traced/probes/ftrace/format_parser.cc",
4177 "src/traced/probes/ftrace/ftrace_controller.cc",
4178 "src/traced/probes/ftrace/ftrace_procfs.cc",
4179 "src/traced/probes/ftrace/proto_translation_table.cc",
Isabelle Taylord404ea12018-02-19 17:28:01 +00004180 "src/traced/probes/probes_producer.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004181 "test/end_to_end_integrationtest.cc",
Lalit Magantic4c3ceb2018-03-29 20:38:13 +01004182 "test/fake_producer.cc",
4183 "test/task_runner_thread.cc",
4184 "test/test_helper.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004185 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00004186 export_include_dirs: [
4187 ".",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004188 ],
4189 shared_libs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +00004190 "libprotobuf-cpp-lite",
4191 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00004192 static_libs: [
Primiano Tucci106605c2019-01-08 21:12:58 +00004193 "libgmock",
Lalit Maganti61681882018-03-14 15:29:01 +00004194 "libgtest",
Lalit Magantia88807d2018-03-05 18:21:38 +00004195 "perfetto_src_tracing_ipc",
Primiano Tucci07e104d2018-04-03 20:45:35 +02004196 "perfetto_trace_protos",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004197 ],
Lalit Magantib34c7a22018-03-07 11:53:20 +00004198 cflags: [
4199 "-DPERFETTO_BUILD_WITH_ANDROID",
4200 ],
Lalit Maganti83e712a2018-02-05 15:48:00 +00004201}
4202
Lalit Magantia88807d2018-03-05 18:21:38 +00004203cc_library_static {
4204 name: "perfetto_cts_jni_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004205 srcs: [
4206 "src/base/android_task_runner.cc",
4207 "src/base/test/test_task_runner.cc",
4208 "test/fake_producer.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004209 ],
4210 shared_libs: [
Lalit Magantia88807d2018-03-05 18:21:38 +00004211 "libprotobuf-cpp-lite",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004212 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00004213 export_include_dirs: [
4214 ".",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004215 ],
Lalit Magantia88807d2018-03-05 18:21:38 +00004216 static_libs: [
Lalit Maganti61681882018-03-14 15:29:01 +00004217 "libgtest",
Lalit Magantia88807d2018-03-05 18:21:38 +00004218 "perfetto_src_tracing_ipc",
4219 ],
Lalit Magantib34c7a22018-03-07 11:53:20 +00004220 cflags: [
4221 "-DPERFETTO_BUILD_WITH_ANDROID",
4222 ],
Lalit Maganti6820cb62018-10-05 13:34:22 +01004223}
4224
Lalit Magantif5d666d2018-10-23 14:23:24 +01004225java_library_host {
4226 name: "perfetto_config-full",
Lalit Maganti6820cb62018-10-05 13:34:22 +01004227 proto: {
Lalit Magantif5d666d2018-10-23 14:23:24 +01004228 type: "full",
Lalit Maganti6820cb62018-10-05 13:34:22 +01004229 },
4230 srcs: [
4231 "protos/perfetto/config/perfetto_config.proto",
4232 ],
Primiano Tucci0b651b82019-06-03 17:16:23 +01004233}
4234
4235// This sample target shows how to use the perfetto client API from within the
4236// Android tree.
4237cc_binary {
4238 name: "libperfetto_client_example",
4239 srcs: [
4240 "test/android_client_api_example.cc",
4241 ],
4242 static_libs: [
4243 "libperfetto_client_experimental",
4244 "perfetto_src_tracing_ipc",
4245 "perfetto_trace_protos",
4246 ],
4247 shared_libs: [
4248 "libprotobuf-cpp-lite",
4249 "liblog",
4250 ],
4251 local_include_dirs: [
4252 "include",
4253 ],
4254 cflags: [
4255 "-DGOOGLE_PROTOBUF_NO_RTTI",
4256 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
4257 "-DPERFETTO_BUILD_WITH_ANDROID",
4258 ],
Hector Dearmanfded4f62019-03-26 17:09:41 +00004259}