blob: 024a3e5eabe373495122b6de9e566eba3811e1df [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
Sami Kyostilab27619f2017-12-13 19:22:16 +000017// GN target: //src/ipc:wire_protocol_gen
Sami Kyostila71625d72017-12-18 10:29:49 +000018genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +000019 name: "perfetto_src_ipc_wire_protocol_gen_headers",
Sami Kyostila2357b032017-12-06 18:38:17 +000020 srcs: [
Sami Kyostila2357b032017-12-06 18:38:17 +000021 "src/ipc/wire_protocol.proto",
Sami Kyostilab27619f2017-12-13 19:22:16 +000022 ],
23 tools: [
24 "aprotoc",
25 ],
26 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
Sami Kyostila2357b032017-12-06 18:38:17 +000027 out: [
28 "external/perfetto/src/ipc/wire_protocol.pb.h",
Sami Kyostilab27619f2017-12-13 19:22:16 +000029 ],
30 export_include_dirs: [
31 ".",
32 ],
Sami Kyostila2357b032017-12-06 18:38:17 +000033}
34
Sami Kyostilab27619f2017-12-13 19:22:16 +000035// GN target: //src/ftrace_reader:ftrace_reader_test_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +000036genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +000037 name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen",
38 srcs: [
39 "src/ftrace_reader/test/test_messages.proto",
40 ],
41 tools: [
42 "aprotoc",
43 ],
44 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
45 out: [
46 "external/perfetto/src/ftrace_reader/test/test_messages.pb.cc",
47 ],
48}
49
50// GN target: //src/ipc:test_messages_gen
Sami Kyostila71625d72017-12-18 10:29:49 +000051genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +000052 name: "perfetto_src_ipc_test_messages_gen_headers",
53 srcs: [
Sami Kyostila2357b032017-12-06 18:38:17 +000054 "src/ipc/test/client_unittest_messages.proto",
55 "src/ipc/test/deferred_unittest_messages.proto",
56 "src/ipc/test/greeter_service.proto",
Sami Kyostilab27619f2017-12-13 19:22:16 +000057 ],
58 tools: [
59 "aprotoc",
60 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
61 ],
62 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 Kyostila2357b032017-12-06 18:38:17 +000063 out: [
64 "external/perfetto/src/ipc/test/client_unittest_messages.ipc.h",
65 "external/perfetto/src/ipc/test/client_unittest_messages.pb.h",
66 "external/perfetto/src/ipc/test/deferred_unittest_messages.ipc.h",
67 "external/perfetto/src/ipc/test/deferred_unittest_messages.pb.h",
68 "external/perfetto/src/ipc/test/greeter_service.ipc.h",
69 "external/perfetto/src/ipc/test/greeter_service.pb.h",
Sami Kyostilab27619f2017-12-13 19:22:16 +000070 ],
71 export_include_dirs: [
72 ".",
73 ],
Sami Kyostila2357b032017-12-06 18:38:17 +000074}
75
Sami Kyostilab27619f2017-12-13 19:22:16 +000076cc_defaults {
77 name: "perfetto_defaults",
78 cflags: [
79 "-Wno-error=return-type",
80 "-Wno-sign-compare",
81 "-Wno-sign-promo",
82 "-Wno-unused-parameter",
83 ],
84 local_include_dirs: [
85 "include",
86 ],
87}
Sami Kyostila2357b032017-12-06 18:38:17 +000088
Sami Kyostilab27619f2017-12-13 19:22:16 +000089// GN target: //protos/tracing_service:tracing_service_gen
Sami Kyostila71625d72017-12-18 10:29:49 +000090genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +000091 name: "perfetto_protos_tracing_service_tracing_service_gen_headers",
Sami Kyostila2357b032017-12-06 18:38:17 +000092 srcs: [
Primiano Tucci114b6492017-12-11 23:09:45 +000093 "protos/tracing_service/consumer_port.proto",
94 "protos/tracing_service/producer_port.proto",
Sami Kyostilab27619f2017-12-13 19:22:16 +000095 ],
96 tools: [
97 "aprotoc",
98 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
99 ],
100 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 Kyostila2357b032017-12-06 18:38:17 +0000101 out: [
Primiano Tucci114b6492017-12-11 23:09:45 +0000102 "external/perfetto/protos/tracing_service/consumer_port.ipc.h",
103 "external/perfetto/protos/tracing_service/consumer_port.pb.h",
104 "external/perfetto/protos/tracing_service/producer_port.ipc.h",
105 "external/perfetto/protos/tracing_service/producer_port.pb.h",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000106 ],
107 export_include_dirs: [
108 ".",
109 ],
Sami Kyostila2357b032017-12-06 18:38:17 +0000110}
111
Sami Kyostilab27619f2017-12-13 19:22:16 +0000112// GN target: //src/ftrace_reader:ftrace_reader_test_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000113genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000114 name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen",
Sami Kyostila2357b032017-12-06 18:38:17 +0000115 srcs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000116 "src/ftrace_reader/test/test_messages.proto",
117 ],
118 tools: [
119 "aprotoc",
120 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
121 ],
122 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
123 out: [
124 "external/perfetto/src/ftrace_reader/test/test_messages.pbzero.cc",
125 ],
Sami Kyostila2357b032017-12-06 18:38:17 +0000126}
127
Sami Kyostilab27619f2017-12-13 19:22:16 +0000128// GN target: //protos/tracing_service:tracing_service_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000129genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000130 name: "perfetto_protos_tracing_service_tracing_service_gen",
131 srcs: [
132 "protos/tracing_service/consumer_port.proto",
133 "protos/tracing_service/producer_port.proto",
134 ],
135 tools: [
136 "aprotoc",
137 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
138 ],
139 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)",
140 out: [
141 "external/perfetto/protos/tracing_service/consumer_port.ipc.cc",
142 "external/perfetto/protos/tracing_service/consumer_port.pb.cc",
143 "external/perfetto/protos/tracing_service/producer_port.ipc.cc",
144 "external/perfetto/protos/tracing_service/producer_port.pb.cc",
145 ],
146}
Sami Kyostila2357b032017-12-06 18:38:17 +0000147
Sami Kyostilab27619f2017-12-13 19:22:16 +0000148// GN target: //src/protozero:testing_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000149genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000150 name: "perfetto_src_protozero_testing_messages_lite_gen_headers",
151 srcs: [
152 "src/protozero/test/example_proto/library.proto",
153 "src/protozero/test/example_proto/library_internals/galaxies.proto",
154 "src/protozero/test/example_proto/test_messages.proto",
155 "src/protozero/test/example_proto/upper_import.proto",
156 ],
157 tools: [
158 "aprotoc",
159 ],
160 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
161 out: [
162 "external/perfetto/src/protozero/test/example_proto/library.pb.h",
163 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pb.h",
164 "external/perfetto/src/protozero/test/example_proto/test_messages.pb.h",
165 "external/perfetto/src/protozero/test/example_proto/upper_import.pb.h",
166 ],
167 export_include_dirs: [
168 ".",
169 ],
170}
171
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100172// GN target: //protos:zero_gen
173genrule {
174 name: "perfetto_protos_zero_gen",
175 srcs: [
176 "protos/test_event.proto",
177 "protos/trace_packet.proto",
178 ],
179 tools: [
180 "aprotoc",
181 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
182 ],
183 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
184 out: [
185 "external/perfetto/protos/test_event.pbzero.cc",
186 "external/perfetto/protos/trace_packet.pbzero.cc",
187 ],
188}
189
Sami Kyostilab27619f2017-12-13 19:22:16 +0000190// GN target: //src/ipc:test_messages_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000191genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000192 name: "perfetto_src_ipc_test_messages_gen",
193 srcs: [
194 "src/ipc/test/client_unittest_messages.proto",
195 "src/ipc/test/deferred_unittest_messages.proto",
196 "src/ipc/test/greeter_service.proto",
197 ],
198 tools: [
199 "aprotoc",
200 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
201 ],
202 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)",
203 out: [
204 "external/perfetto/src/ipc/test/client_unittest_messages.ipc.cc",
205 "external/perfetto/src/ipc/test/client_unittest_messages.pb.cc",
206 "external/perfetto/src/ipc/test/deferred_unittest_messages.ipc.cc",
207 "external/perfetto/src/ipc/test/deferred_unittest_messages.pb.cc",
208 "external/perfetto/src/ipc/test/greeter_service.ipc.cc",
209 "external/perfetto/src/ipc/test/greeter_service.pb.cc",
210 ],
211}
212
213// GN target: //protos:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000214genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000215 name: "perfetto_protos_lite_gen_headers",
216 srcs: [
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100217 "protos/test_event.proto",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000218 "protos/trace_packet.proto",
219 ],
220 tools: [
221 "aprotoc",
222 ],
223 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
224 out: [
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100225 "external/perfetto/protos/test_event.pb.h",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000226 "external/perfetto/protos/trace_packet.pb.h",
227 ],
228 export_include_dirs: [
229 ".",
230 ],
231}
232
233// GN target: //src/ipc/protoc_plugin:ipc_plugin(//gn/standalone/toolchain:gcc_like_host)
234cc_binary_host {
235 name: "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
236 srcs: [
237 "src/ipc/protoc_plugin/ipc_generator.cc",
238 "src/ipc/protoc_plugin/ipc_plugin.cc",
239 ],
240 shared_libs: [
241 "libprotoc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000242 ],
Sami Kyostila2357b032017-12-06 18:38:17 +0000243 defaults: [
244 "perfetto_defaults",
Sami Kyostila2357b032017-12-06 18:38:17 +0000245 ],
Sami Kyostilab27619f2017-12-13 19:22:16 +0000246}
247
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100248// GN target: //protos:zero_gen
249genrule {
250 name: "perfetto_protos_zero_gen_headers",
251 srcs: [
252 "protos/test_event.proto",
253 "protos/trace_packet.proto",
254 ],
255 tools: [
256 "aprotoc",
257 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
258 ],
259 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
260 out: [
261 "external/perfetto/protos/test_event.pbzero.h",
262 "external/perfetto/protos/trace_packet.pbzero.h",
263 ],
264 export_include_dirs: [
265 ".",
266 ],
267}
268
269// GN target: //protos:lite_gen
270genrule {
271 name: "perfetto_protos_lite_gen",
272 srcs: [
273 "protos/test_event.proto",
274 "protos/trace_packet.proto",
275 ],
276 tools: [
277 "aprotoc",
278 ],
279 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
280 out: [
281 "external/perfetto/protos/test_event.pb.cc",
282 "external/perfetto/protos/trace_packet.pb.cc",
283 ],
284}
285
Sami Kyostilab27619f2017-12-13 19:22:16 +0000286// GN target: //src/ftrace_reader:ftrace_reader_test_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000287genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000288 name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen_headers",
Sami Kyostila2357b032017-12-06 18:38:17 +0000289 srcs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000290 "src/ftrace_reader/test/test_messages.proto",
291 ],
292 tools: [
293 "aprotoc",
294 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
295 ],
296 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
297 out: [
298 "external/perfetto/src/ftrace_reader/test/test_messages.pbzero.h",
299 ],
300 export_include_dirs: [
301 ".",
302 ],
303}
304
Sami Kyostilab27619f2017-12-13 19:22:16 +0000305// GN target: //protos/ftrace:zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000306genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000307 name: "perfetto_protos_ftrace_zero_gen",
308 srcs: [
309 "protos/ftrace/ftrace_event.proto",
310 "protos/ftrace/ftrace_event_bundle.proto",
311 "protos/ftrace/print.proto",
312 "protos/ftrace/sched_switch.proto",
313 "protos/ftrace/test_bundle_wrapper.proto",
314 ],
315 tools: [
316 "aprotoc",
317 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
318 ],
319 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
320 out: [
321 "external/perfetto/protos/ftrace/ftrace_event.pbzero.cc",
322 "external/perfetto/protos/ftrace/ftrace_event_bundle.pbzero.cc",
323 "external/perfetto/protos/ftrace/print.pbzero.cc",
324 "external/perfetto/protos/ftrace/sched_switch.pbzero.cc",
325 "external/perfetto/protos/ftrace/test_bundle_wrapper.pbzero.cc",
326 ],
327}
328
329// GN target: //src/ipc:wire_protocol_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000330genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000331 name: "perfetto_src_ipc_wire_protocol_gen",
332 srcs: [
333 "src/ipc/wire_protocol.proto",
334 ],
335 tools: [
336 "aprotoc",
337 ],
338 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
339 out: [
340 "external/perfetto/src/ipc/wire_protocol.pb.cc",
341 ],
342}
343
344// GN target: //src/protozero:testing_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000345genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000346 name: "perfetto_src_protozero_testing_messages_lite_gen",
347 srcs: [
348 "src/protozero/test/example_proto/library.proto",
349 "src/protozero/test/example_proto/library_internals/galaxies.proto",
350 "src/protozero/test/example_proto/test_messages.proto",
351 "src/protozero/test/example_proto/upper_import.proto",
352 ],
353 tools: [
354 "aprotoc",
355 ],
356 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
357 out: [
358 "external/perfetto/src/protozero/test/example_proto/library.pb.cc",
359 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pb.cc",
360 "external/perfetto/src/protozero/test/example_proto/test_messages.pb.cc",
361 "external/perfetto/src/protozero/test/example_proto/upper_import.pb.cc",
362 ],
363}
364
365// GN target: //:perfetto_tests
366cc_test {
367 name: "perfetto_tests",
368 srcs: [
369 ":perfetto_protos_ftrace_lite_gen",
370 ":perfetto_protos_ftrace_zero_gen",
371 ":perfetto_protos_lite_gen",
372 ":perfetto_protos_tracing_service_lite_gen",
373 ":perfetto_protos_tracing_service_tracing_service_gen",
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100374 ":perfetto_protos_zero_gen",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000375 ":perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen",
376 ":perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen",
377 ":perfetto_src_ipc_test_messages_gen",
378 ":perfetto_src_ipc_wire_protocol_gen",
379 ":perfetto_src_protozero_testing_messages_lite_gen",
380 ":perfetto_src_protozero_testing_messages_zero_gen",
381 "src/base/android_task_runner.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000382 "src/base/scoped_file_unittest.cc",
383 "src/base/task_runner_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000384 "src/base/test/test_task_runner.cc",
385 "src/base/thread_checker.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000386 "src/base/thread_checker_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000387 "src/base/unix_task_runner.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000388 "src/base/utils_unittest.cc",
389 "src/base/weak_ptr_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000390 "src/ftrace_reader/cpu_reader.cc",
391 "src/ftrace_reader/cpu_reader_unittest.cc",
392 "src/ftrace_reader/event_info.cc",
Hector Dearman83d98032017-12-11 16:37:43 +0000393 "src/ftrace_reader/event_info_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000394 "src/ftrace_reader/format_parser.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000395 "src/ftrace_reader/format_parser_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000396 "src/ftrace_reader/ftrace_controller.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000397 "src/ftrace_reader/ftrace_controller_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000398 "src/ftrace_reader/ftrace_procfs.cc",
399 "src/ftrace_reader/ftrace_to_proto.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000400 "src/ftrace_reader/ftrace_to_proto_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000401 "src/ftrace_reader/proto_translation_table.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000402 "src/ftrace_reader/proto_translation_table_unittest.cc",
403 "src/ftrace_reader/test/scattered_stream_delegate_for_testing.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000404 "src/ipc/buffered_frame_deserializer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000405 "src/ipc/buffered_frame_deserializer_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000406 "src/ipc/client_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000407 "src/ipc/client_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000408 "src/ipc/deferred.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000409 "src/ipc/deferred_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000410 "src/ipc/host_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000411 "src/ipc/host_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000412 "src/ipc/service_proxy.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000413 "src/ipc/test/ipc_integrationtest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000414 "src/ipc/unix_socket.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000415 "src/ipc/unix_socket_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000416 "src/protozero/proto_utils.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000417 "src/protozero/proto_utils_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000418 "src/protozero/protozero_message.cc",
419 "src/protozero/protozero_message_handle.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000420 "src/protozero/protozero_message_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000421 "src/protozero/scattered_stream_writer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000422 "src/protozero/scattered_stream_writer_unittest.cc",
423 "src/protozero/test/fake_scattered_buffer.cc",
424 "src/protozero/test/protozero_conformance_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000425 "src/tracing/core/chunked_protobuf_input_stream.cc",
426 "src/tracing/core/chunked_protobuf_input_stream_unittest.cc",
427 "src/tracing/core/data_source_config.cc",
428 "src/tracing/core/data_source_descriptor.cc",
Primiano Tucci422caff2017-12-18 23:58:52 +0100429 "src/tracing/core/id_allocator.cc",
430 "src/tracing/core/id_allocator_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000431 "src/tracing/core/service_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000432 "src/tracing/core/service_impl_unittest.cc",
Primiano Tuccif5d6d532017-12-19 00:59:34 +0100433 "src/tracing/core/shared_memory_abi.cc",
434 "src/tracing/core/shared_memory_abi_unittest.cc",
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100435 "src/tracing/core/shared_memory_arbiter.cc",
436 "src/tracing/core/shared_memory_arbiter_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000437 "src/tracing/core/trace_config.cc",
438 "src/tracing/core/trace_packet.cc",
439 "src/tracing/core/trace_packet_unittest.cc",
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100440 "src/tracing/core/trace_writer_impl.cc",
441 "src/tracing/core/trace_writer_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000442 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
443 "src/tracing/ipc/posix_shared_memory.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000444 "src/tracing/ipc/posix_shared_memory_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000445 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
Primiano Tucciaf429f92017-12-19 01:51:50 +0100446 "src/tracing/ipc/service/consumer_ipc_service.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000447 "src/tracing/ipc/service/producer_ipc_service.cc",
448 "src/tracing/ipc/service/service_ipc_host_impl.cc",
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100449 "src/tracing/test/aligned_buffer_test.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000450 "src/tracing/test/test_shared_memory.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000451 "tools/sanitizers_unittests/sanitizers_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000452 ],
453 shared_libs: [
454 "libandroid",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000455 "liblog",
456 "libprotobuf-cpp-lite",
Sami Kyostila2357b032017-12-06 18:38:17 +0000457 ],
458 static_libs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000459 "libgmock",
460 ],
461 generated_headers: [
462 "perfetto_protos_ftrace_lite_gen_headers",
463 "perfetto_protos_ftrace_zero_gen_headers",
464 "perfetto_protos_lite_gen_headers",
465 "perfetto_protos_tracing_service_lite_gen_headers",
466 "perfetto_protos_tracing_service_tracing_service_gen_headers",
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100467 "perfetto_protos_zero_gen_headers",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000468 "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen_headers",
469 "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen_headers",
470 "perfetto_src_ipc_test_messages_gen_headers",
471 "perfetto_src_ipc_wire_protocol_gen_headers",
472 "perfetto_src_protozero_testing_messages_lite_gen_headers",
473 "perfetto_src_protozero_testing_messages_zero_gen_headers",
474 ],
475 defaults: [
476 "perfetto_defaults",
Sami Kyostila2357b032017-12-06 18:38:17 +0000477 ],
478}
479
Sami Kyostilab27619f2017-12-13 19:22:16 +0000480// GN target: //src/protozero:testing_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000481genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000482 name: "perfetto_src_protozero_testing_messages_zero_gen_headers",
Sami Kyostila2357b032017-12-06 18:38:17 +0000483 srcs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000484 "src/protozero/test/example_proto/library.proto",
485 "src/protozero/test/example_proto/library_internals/galaxies.proto",
486 "src/protozero/test/example_proto/test_messages.proto",
487 "src/protozero/test/example_proto/upper_import.proto",
488 ],
489 tools: [
490 "aprotoc",
491 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
492 ],
493 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
494 out: [
495 "external/perfetto/src/protozero/test/example_proto/library.pbzero.h",
496 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.h",
497 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.h",
498 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.h",
499 ],
500 export_include_dirs: [
501 ".",
502 ],
503}
504
505// GN target: //src/ftrace_reader:ftrace_reader_test_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000506genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000507 name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen_headers",
508 srcs: [
509 "src/ftrace_reader/test/test_messages.proto",
510 ],
511 tools: [
512 "aprotoc",
513 ],
514 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
515 out: [
516 "external/perfetto/src/ftrace_reader/test/test_messages.pb.h",
517 ],
518 export_include_dirs: [
519 ".",
520 ],
521}
522
523// GN target: //protos/tracing_service:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000524genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000525 name: "perfetto_protos_tracing_service_lite_gen_headers",
526 srcs: [
527 "protos/tracing_service/data_source_config.proto",
528 "protos/tracing_service/data_source_descriptor.proto",
529 "protos/tracing_service/trace_config.proto",
530 ],
531 tools: [
532 "aprotoc",
533 ],
534 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
535 out: [
536 "external/perfetto/protos/tracing_service/data_source_config.pb.h",
537 "external/perfetto/protos/tracing_service/data_source_descriptor.pb.h",
538 "external/perfetto/protos/tracing_service/trace_config.pb.h",
539 ],
540 export_include_dirs: [
541 ".",
542 ],
543}
544
545// GN target: //protos/ftrace:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000546genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000547 name: "perfetto_protos_ftrace_lite_gen",
548 srcs: [
549 "protos/ftrace/ftrace_event.proto",
550 "protos/ftrace/ftrace_event_bundle.proto",
551 "protos/ftrace/print.proto",
552 "protos/ftrace/sched_switch.proto",
553 "protos/ftrace/test_bundle_wrapper.proto",
554 ],
555 tools: [
556 "aprotoc",
557 ],
558 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
559 out: [
560 "external/perfetto/protos/ftrace/ftrace_event.pb.cc",
561 "external/perfetto/protos/ftrace/ftrace_event_bundle.pb.cc",
562 "external/perfetto/protos/ftrace/print.pb.cc",
563 "external/perfetto/protos/ftrace/sched_switch.pb.cc",
564 "external/perfetto/protos/ftrace/test_bundle_wrapper.pb.cc",
565 ],
566}
567
568// GN target: //protos/ftrace:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000569genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000570 name: "perfetto_protos_ftrace_lite_gen_headers",
571 srcs: [
572 "protos/ftrace/ftrace_event.proto",
573 "protos/ftrace/ftrace_event_bundle.proto",
574 "protos/ftrace/print.proto",
575 "protos/ftrace/sched_switch.proto",
576 "protos/ftrace/test_bundle_wrapper.proto",
577 ],
578 tools: [
579 "aprotoc",
580 ],
581 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
582 out: [
583 "external/perfetto/protos/ftrace/ftrace_event.pb.h",
584 "external/perfetto/protos/ftrace/ftrace_event_bundle.pb.h",
585 "external/perfetto/protos/ftrace/print.pb.h",
586 "external/perfetto/protos/ftrace/sched_switch.pb.h",
587 "external/perfetto/protos/ftrace/test_bundle_wrapper.pb.h",
588 ],
589 export_include_dirs: [
590 ".",
591 ],
592}
593
594// GN target: //protos/tracing_service:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000595genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000596 name: "perfetto_protos_tracing_service_lite_gen",
597 srcs: [
598 "protos/tracing_service/data_source_config.proto",
599 "protos/tracing_service/data_source_descriptor.proto",
600 "protos/tracing_service/trace_config.proto",
601 ],
602 tools: [
603 "aprotoc",
604 ],
605 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
606 out: [
607 "external/perfetto/protos/tracing_service/data_source_config.pb.cc",
608 "external/perfetto/protos/tracing_service/data_source_descriptor.pb.cc",
609 "external/perfetto/protos/tracing_service/trace_config.pb.cc",
610 ],
611}
612
613// GN target: //protos/ftrace:zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000614genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000615 name: "perfetto_protos_ftrace_zero_gen_headers",
616 srcs: [
617 "protos/ftrace/ftrace_event.proto",
618 "protos/ftrace/ftrace_event_bundle.proto",
619 "protos/ftrace/print.proto",
620 "protos/ftrace/sched_switch.proto",
621 "protos/ftrace/test_bundle_wrapper.proto",
622 ],
623 tools: [
624 "aprotoc",
625 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
626 ],
627 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
628 out: [
629 "external/perfetto/protos/ftrace/ftrace_event.pbzero.h",
630 "external/perfetto/protos/ftrace/ftrace_event_bundle.pbzero.h",
631 "external/perfetto/protos/ftrace/print.pbzero.h",
632 "external/perfetto/protos/ftrace/sched_switch.pbzero.h",
633 "external/perfetto/protos/ftrace/test_bundle_wrapper.pbzero.h",
634 ],
635 export_include_dirs: [
636 ".",
637 ],
638}
639
640// GN target: //src/protozero/protoc_plugin:protoc_plugin(//gn/standalone/toolchain:gcc_like_host)
641cc_binary_host {
642 name: "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
643 srcs: [
644 "src/protozero/protoc_plugin/protozero_generator.cc",
645 "src/protozero/protoc_plugin/protozero_plugin.cc",
646 ],
647 shared_libs: [
648 "libprotoc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000649 ],
650 defaults: [
651 "perfetto_defaults",
652 ],
653}
654
655// GN target: //src/protozero:testing_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000656genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000657 name: "perfetto_src_protozero_testing_messages_zero_gen",
658 srcs: [
659 "src/protozero/test/example_proto/library.proto",
660 "src/protozero/test/example_proto/library_internals/galaxies.proto",
661 "src/protozero/test/example_proto/test_messages.proto",
662 "src/protozero/test/example_proto/upper_import.proto",
663 ],
664 tools: [
665 "aprotoc",
666 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
667 ],
668 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto $(in)",
669 out: [
670 "external/perfetto/src/protozero/test/example_proto/library.pbzero.cc",
671 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.cc",
672 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.cc",
673 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.cc",
674 ],
Sami Kyostila2357b032017-12-06 18:38:17 +0000675}