blob: b301a5cdf2fdad3dfe7932bfe6d36025500bbbb1 [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",
Primiano Tucci53589332017-12-19 11:31:13 +0100451 "src/tracing/test/tracing_integration_test.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000452 "tools/sanitizers_unittests/sanitizers_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000453 ],
454 shared_libs: [
455 "libandroid",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000456 "liblog",
457 "libprotobuf-cpp-lite",
Sami Kyostila2357b032017-12-06 18:38:17 +0000458 ],
459 static_libs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000460 "libgmock",
461 ],
462 generated_headers: [
463 "perfetto_protos_ftrace_lite_gen_headers",
464 "perfetto_protos_ftrace_zero_gen_headers",
465 "perfetto_protos_lite_gen_headers",
466 "perfetto_protos_tracing_service_lite_gen_headers",
467 "perfetto_protos_tracing_service_tracing_service_gen_headers",
Primiano Tuccid7b59c42017-12-19 01:43:07 +0100468 "perfetto_protos_zero_gen_headers",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000469 "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen_headers",
470 "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen_headers",
471 "perfetto_src_ipc_test_messages_gen_headers",
472 "perfetto_src_ipc_wire_protocol_gen_headers",
473 "perfetto_src_protozero_testing_messages_lite_gen_headers",
474 "perfetto_src_protozero_testing_messages_zero_gen_headers",
475 ],
476 defaults: [
477 "perfetto_defaults",
Sami Kyostila2357b032017-12-06 18:38:17 +0000478 ],
479}
480
Sami Kyostilab27619f2017-12-13 19:22:16 +0000481// GN target: //src/protozero:testing_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000482genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000483 name: "perfetto_src_protozero_testing_messages_zero_gen_headers",
Sami Kyostila2357b032017-12-06 18:38:17 +0000484 srcs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000485 "src/protozero/test/example_proto/library.proto",
486 "src/protozero/test/example_proto/library_internals/galaxies.proto",
487 "src/protozero/test/example_proto/test_messages.proto",
488 "src/protozero/test/example_proto/upper_import.proto",
489 ],
490 tools: [
491 "aprotoc",
492 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
493 ],
494 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)",
495 out: [
496 "external/perfetto/src/protozero/test/example_proto/library.pbzero.h",
497 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.h",
498 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.h",
499 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.h",
500 ],
501 export_include_dirs: [
502 ".",
503 ],
504}
505
506// GN target: //src/ftrace_reader:ftrace_reader_test_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000507genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000508 name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen_headers",
509 srcs: [
510 "src/ftrace_reader/test/test_messages.proto",
511 ],
512 tools: [
513 "aprotoc",
514 ],
515 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
516 out: [
517 "external/perfetto/src/ftrace_reader/test/test_messages.pb.h",
518 ],
519 export_include_dirs: [
520 ".",
521 ],
522}
523
524// GN target: //protos/tracing_service:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000525genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000526 name: "perfetto_protos_tracing_service_lite_gen_headers",
527 srcs: [
528 "protos/tracing_service/data_source_config.proto",
529 "protos/tracing_service/data_source_descriptor.proto",
530 "protos/tracing_service/trace_config.proto",
531 ],
532 tools: [
533 "aprotoc",
534 ],
535 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
536 out: [
537 "external/perfetto/protos/tracing_service/data_source_config.pb.h",
538 "external/perfetto/protos/tracing_service/data_source_descriptor.pb.h",
539 "external/perfetto/protos/tracing_service/trace_config.pb.h",
540 ],
541 export_include_dirs: [
542 ".",
543 ],
544}
545
546// GN target: //protos/ftrace:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000547genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000548 name: "perfetto_protos_ftrace_lite_gen",
549 srcs: [
550 "protos/ftrace/ftrace_event.proto",
551 "protos/ftrace/ftrace_event_bundle.proto",
552 "protos/ftrace/print.proto",
553 "protos/ftrace/sched_switch.proto",
554 "protos/ftrace/test_bundle_wrapper.proto",
555 ],
556 tools: [
557 "aprotoc",
558 ],
559 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
560 out: [
561 "external/perfetto/protos/ftrace/ftrace_event.pb.cc",
562 "external/perfetto/protos/ftrace/ftrace_event_bundle.pb.cc",
563 "external/perfetto/protos/ftrace/print.pb.cc",
564 "external/perfetto/protos/ftrace/sched_switch.pb.cc",
565 "external/perfetto/protos/ftrace/test_bundle_wrapper.pb.cc",
566 ],
567}
568
569// GN target: //protos/ftrace:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000570genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000571 name: "perfetto_protos_ftrace_lite_gen_headers",
572 srcs: [
573 "protos/ftrace/ftrace_event.proto",
574 "protos/ftrace/ftrace_event_bundle.proto",
575 "protos/ftrace/print.proto",
576 "protos/ftrace/sched_switch.proto",
577 "protos/ftrace/test_bundle_wrapper.proto",
578 ],
579 tools: [
580 "aprotoc",
581 ],
582 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
583 out: [
584 "external/perfetto/protos/ftrace/ftrace_event.pb.h",
585 "external/perfetto/protos/ftrace/ftrace_event_bundle.pb.h",
586 "external/perfetto/protos/ftrace/print.pb.h",
587 "external/perfetto/protos/ftrace/sched_switch.pb.h",
588 "external/perfetto/protos/ftrace/test_bundle_wrapper.pb.h",
589 ],
590 export_include_dirs: [
591 ".",
592 ],
593}
594
595// GN target: //protos/tracing_service:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000596genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000597 name: "perfetto_protos_tracing_service_lite_gen",
598 srcs: [
599 "protos/tracing_service/data_source_config.proto",
600 "protos/tracing_service/data_source_descriptor.proto",
601 "protos/tracing_service/trace_config.proto",
602 ],
603 tools: [
604 "aprotoc",
605 ],
606 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
607 out: [
608 "external/perfetto/protos/tracing_service/data_source_config.pb.cc",
609 "external/perfetto/protos/tracing_service/data_source_descriptor.pb.cc",
610 "external/perfetto/protos/tracing_service/trace_config.pb.cc",
611 ],
612}
613
614// GN target: //protos/ftrace:zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000615genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000616 name: "perfetto_protos_ftrace_zero_gen_headers",
617 srcs: [
618 "protos/ftrace/ftrace_event.proto",
619 "protos/ftrace/ftrace_event_bundle.proto",
620 "protos/ftrace/print.proto",
621 "protos/ftrace/sched_switch.proto",
622 "protos/ftrace/test_bundle_wrapper.proto",
623 ],
624 tools: [
625 "aprotoc",
626 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
627 ],
628 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)",
629 out: [
630 "external/perfetto/protos/ftrace/ftrace_event.pbzero.h",
631 "external/perfetto/protos/ftrace/ftrace_event_bundle.pbzero.h",
632 "external/perfetto/protos/ftrace/print.pbzero.h",
633 "external/perfetto/protos/ftrace/sched_switch.pbzero.h",
634 "external/perfetto/protos/ftrace/test_bundle_wrapper.pbzero.h",
635 ],
636 export_include_dirs: [
637 ".",
638 ],
639}
640
641// GN target: //src/protozero/protoc_plugin:protoc_plugin(//gn/standalone/toolchain:gcc_like_host)
642cc_binary_host {
643 name: "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
644 srcs: [
645 "src/protozero/protoc_plugin/protozero_generator.cc",
646 "src/protozero/protoc_plugin/protozero_plugin.cc",
647 ],
648 shared_libs: [
649 "libprotoc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000650 ],
651 defaults: [
652 "perfetto_defaults",
653 ],
654}
655
656// GN target: //src/protozero:testing_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000657genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000658 name: "perfetto_src_protozero_testing_messages_zero_gen",
659 srcs: [
660 "src/protozero/test/example_proto/library.proto",
661 "src/protozero/test/example_proto/library_internals/galaxies.proto",
662 "src/protozero/test/example_proto/test_messages.proto",
663 "src/protozero/test/example_proto/upper_import.proto",
664 ],
665 tools: [
666 "aprotoc",
667 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
668 ],
669 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)",
670 out: [
671 "external/perfetto/src/protozero/test/example_proto/library.pbzero.cc",
672 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.cc",
673 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.cc",
674 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.cc",
675 ],
Sami Kyostila2357b032017-12-06 18:38:17 +0000676}