blob: 1e7ebef5b14d3431d5c2c1bdd815cd4616015033 [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
172// GN target: //src/ipc:test_messages_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000173genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000174 name: "perfetto_src_ipc_test_messages_gen",
175 srcs: [
176 "src/ipc/test/client_unittest_messages.proto",
177 "src/ipc/test/deferred_unittest_messages.proto",
178 "src/ipc/test/greeter_service.proto",
179 ],
180 tools: [
181 "aprotoc",
182 "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
183 ],
184 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)",
185 out: [
186 "external/perfetto/src/ipc/test/client_unittest_messages.ipc.cc",
187 "external/perfetto/src/ipc/test/client_unittest_messages.pb.cc",
188 "external/perfetto/src/ipc/test/deferred_unittest_messages.ipc.cc",
189 "external/perfetto/src/ipc/test/deferred_unittest_messages.pb.cc",
190 "external/perfetto/src/ipc/test/greeter_service.ipc.cc",
191 "external/perfetto/src/ipc/test/greeter_service.pb.cc",
192 ],
193}
194
195// GN target: //protos:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000196genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000197 name: "perfetto_protos_lite_gen_headers",
198 srcs: [
199 "protos/trace_packet.proto",
200 ],
201 tools: [
202 "aprotoc",
203 ],
204 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
205 out: [
206 "external/perfetto/protos/trace_packet.pb.h",
207 ],
208 export_include_dirs: [
209 ".",
210 ],
211}
212
213// GN target: //src/ipc/protoc_plugin:ipc_plugin(//gn/standalone/toolchain:gcc_like_host)
214cc_binary_host {
215 name: "perfetto_src_ipc_protoc_plugin_ipc_plugin___gn_standalone_toolchain_gcc_like_host_",
216 srcs: [
217 "src/ipc/protoc_plugin/ipc_generator.cc",
218 "src/ipc/protoc_plugin/ipc_plugin.cc",
219 ],
220 shared_libs: [
221 "libprotoc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000222 ],
Sami Kyostila2357b032017-12-06 18:38:17 +0000223 defaults: [
224 "perfetto_defaults",
Sami Kyostila2357b032017-12-06 18:38:17 +0000225 ],
Sami Kyostilab27619f2017-12-13 19:22:16 +0000226}
227
228// GN target: //src/ftrace_reader:ftrace_reader_test_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000229genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000230 name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen_headers",
Sami Kyostila2357b032017-12-06 18:38:17 +0000231 srcs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000232 "src/ftrace_reader/test/test_messages.proto",
233 ],
234 tools: [
235 "aprotoc",
236 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
237 ],
238 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)",
239 out: [
240 "external/perfetto/src/ftrace_reader/test/test_messages.pbzero.h",
241 ],
242 export_include_dirs: [
243 ".",
244 ],
245}
246
247// GN target: //protos:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000248genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000249 name: "perfetto_protos_lite_gen",
250 srcs: [
251 "protos/trace_packet.proto",
252 ],
253 tools: [
254 "aprotoc",
255 ],
256 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
257 out: [
258 "external/perfetto/protos/trace_packet.pb.cc",
259 ],
260}
261
262// GN target: //protos/ftrace:zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000263genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000264 name: "perfetto_protos_ftrace_zero_gen",
265 srcs: [
266 "protos/ftrace/ftrace_event.proto",
267 "protos/ftrace/ftrace_event_bundle.proto",
268 "protos/ftrace/print.proto",
269 "protos/ftrace/sched_switch.proto",
270 "protos/ftrace/test_bundle_wrapper.proto",
271 ],
272 tools: [
273 "aprotoc",
274 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
275 ],
276 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)",
277 out: [
278 "external/perfetto/protos/ftrace/ftrace_event.pbzero.cc",
279 "external/perfetto/protos/ftrace/ftrace_event_bundle.pbzero.cc",
280 "external/perfetto/protos/ftrace/print.pbzero.cc",
281 "external/perfetto/protos/ftrace/sched_switch.pbzero.cc",
282 "external/perfetto/protos/ftrace/test_bundle_wrapper.pbzero.cc",
283 ],
284}
285
286// GN target: //src/ipc:wire_protocol_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000287genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000288 name: "perfetto_src_ipc_wire_protocol_gen",
289 srcs: [
290 "src/ipc/wire_protocol.proto",
291 ],
292 tools: [
293 "aprotoc",
294 ],
295 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
296 out: [
297 "external/perfetto/src/ipc/wire_protocol.pb.cc",
298 ],
299}
300
301// GN target: //src/protozero:testing_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000302genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000303 name: "perfetto_src_protozero_testing_messages_lite_gen",
304 srcs: [
305 "src/protozero/test/example_proto/library.proto",
306 "src/protozero/test/example_proto/library_internals/galaxies.proto",
307 "src/protozero/test/example_proto/test_messages.proto",
308 "src/protozero/test/example_proto/upper_import.proto",
309 ],
310 tools: [
311 "aprotoc",
312 ],
313 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
314 out: [
315 "external/perfetto/src/protozero/test/example_proto/library.pb.cc",
316 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pb.cc",
317 "external/perfetto/src/protozero/test/example_proto/test_messages.pb.cc",
318 "external/perfetto/src/protozero/test/example_proto/upper_import.pb.cc",
319 ],
320}
321
322// GN target: //:perfetto_tests
323cc_test {
324 name: "perfetto_tests",
325 srcs: [
326 ":perfetto_protos_ftrace_lite_gen",
327 ":perfetto_protos_ftrace_zero_gen",
328 ":perfetto_protos_lite_gen",
329 ":perfetto_protos_tracing_service_lite_gen",
330 ":perfetto_protos_tracing_service_tracing_service_gen",
331 ":perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen",
332 ":perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen",
333 ":perfetto_src_ipc_test_messages_gen",
334 ":perfetto_src_ipc_wire_protocol_gen",
335 ":perfetto_src_protozero_testing_messages_lite_gen",
336 ":perfetto_src_protozero_testing_messages_zero_gen",
337 "src/base/android_task_runner.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000338 "src/base/scoped_file_unittest.cc",
339 "src/base/task_runner_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000340 "src/base/test/test_task_runner.cc",
341 "src/base/thread_checker.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000342 "src/base/thread_checker_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000343 "src/base/unix_task_runner.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000344 "src/base/utils_unittest.cc",
345 "src/base/weak_ptr_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000346 "src/ftrace_reader/cpu_reader.cc",
347 "src/ftrace_reader/cpu_reader_unittest.cc",
348 "src/ftrace_reader/event_info.cc",
Hector Dearman83d98032017-12-11 16:37:43 +0000349 "src/ftrace_reader/event_info_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000350 "src/ftrace_reader/format_parser.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000351 "src/ftrace_reader/format_parser_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000352 "src/ftrace_reader/ftrace_controller.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000353 "src/ftrace_reader/ftrace_controller_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000354 "src/ftrace_reader/ftrace_procfs.cc",
355 "src/ftrace_reader/ftrace_to_proto.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000356 "src/ftrace_reader/ftrace_to_proto_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000357 "src/ftrace_reader/proto_translation_table.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000358 "src/ftrace_reader/proto_translation_table_unittest.cc",
359 "src/ftrace_reader/test/scattered_stream_delegate_for_testing.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000360 "src/ipc/buffered_frame_deserializer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000361 "src/ipc/buffered_frame_deserializer_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000362 "src/ipc/client_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000363 "src/ipc/client_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000364 "src/ipc/deferred.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000365 "src/ipc/deferred_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000366 "src/ipc/host_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000367 "src/ipc/host_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000368 "src/ipc/service_proxy.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000369 "src/ipc/test/ipc_integrationtest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000370 "src/ipc/unix_socket.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000371 "src/ipc/unix_socket_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000372 "src/protozero/proto_utils.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000373 "src/protozero/proto_utils_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000374 "src/protozero/protozero_message.cc",
375 "src/protozero/protozero_message_handle.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000376 "src/protozero/protozero_message_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000377 "src/protozero/scattered_stream_writer.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000378 "src/protozero/scattered_stream_writer_unittest.cc",
379 "src/protozero/test/fake_scattered_buffer.cc",
380 "src/protozero/test/protozero_conformance_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000381 "src/tracing/core/chunked_protobuf_input_stream.cc",
382 "src/tracing/core/chunked_protobuf_input_stream_unittest.cc",
383 "src/tracing/core/data_source_config.cc",
384 "src/tracing/core/data_source_descriptor.cc",
385 "src/tracing/core/service_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000386 "src/tracing/core/service_impl_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000387 "src/tracing/core/trace_config.cc",
388 "src/tracing/core/trace_packet.cc",
389 "src/tracing/core/trace_packet_unittest.cc",
390 "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc",
391 "src/tracing/ipc/posix_shared_memory.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000392 "src/tracing/ipc/posix_shared_memory_unittest.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000393 "src/tracing/ipc/producer/producer_ipc_client_impl.cc",
394 "src/tracing/ipc/service/producer_ipc_service.cc",
395 "src/tracing/ipc/service/service_ipc_host_impl.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000396 "src/tracing/test/test_shared_memory.cc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000397 "tools/sanitizers_unittests/sanitizers_unittest.cc",
Sami Kyostila2357b032017-12-06 18:38:17 +0000398 ],
399 shared_libs: [
400 "libandroid",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000401 "liblog",
402 "libprotobuf-cpp-lite",
Sami Kyostila2357b032017-12-06 18:38:17 +0000403 ],
404 static_libs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000405 "libgmock",
406 ],
407 generated_headers: [
408 "perfetto_protos_ftrace_lite_gen_headers",
409 "perfetto_protos_ftrace_zero_gen_headers",
410 "perfetto_protos_lite_gen_headers",
411 "perfetto_protos_tracing_service_lite_gen_headers",
412 "perfetto_protos_tracing_service_tracing_service_gen_headers",
413 "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen_headers",
414 "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen_headers",
415 "perfetto_src_ipc_test_messages_gen_headers",
416 "perfetto_src_ipc_wire_protocol_gen_headers",
417 "perfetto_src_protozero_testing_messages_lite_gen_headers",
418 "perfetto_src_protozero_testing_messages_zero_gen_headers",
419 ],
420 defaults: [
421 "perfetto_defaults",
Sami Kyostila2357b032017-12-06 18:38:17 +0000422 ],
423}
424
Sami Kyostilab27619f2017-12-13 19:22:16 +0000425// GN target: //src/protozero:testing_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000426genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000427 name: "perfetto_src_protozero_testing_messages_zero_gen_headers",
Sami Kyostila2357b032017-12-06 18:38:17 +0000428 srcs: [
Sami Kyostilab27619f2017-12-13 19:22:16 +0000429 "src/protozero/test/example_proto/library.proto",
430 "src/protozero/test/example_proto/library_internals/galaxies.proto",
431 "src/protozero/test/example_proto/test_messages.proto",
432 "src/protozero/test/example_proto/upper_import.proto",
433 ],
434 tools: [
435 "aprotoc",
436 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
437 ],
438 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)",
439 out: [
440 "external/perfetto/src/protozero/test/example_proto/library.pbzero.h",
441 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.h",
442 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.h",
443 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.h",
444 ],
445 export_include_dirs: [
446 ".",
447 ],
448}
449
450// GN target: //src/ftrace_reader:ftrace_reader_test_messages_lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000451genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000452 name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen_headers",
453 srcs: [
454 "src/ftrace_reader/test/test_messages.proto",
455 ],
456 tools: [
457 "aprotoc",
458 ],
459 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
460 out: [
461 "external/perfetto/src/ftrace_reader/test/test_messages.pb.h",
462 ],
463 export_include_dirs: [
464 ".",
465 ],
466}
467
468// GN target: //protos/tracing_service:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000469genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000470 name: "perfetto_protos_tracing_service_lite_gen_headers",
471 srcs: [
472 "protos/tracing_service/data_source_config.proto",
473 "protos/tracing_service/data_source_descriptor.proto",
474 "protos/tracing_service/trace_config.proto",
475 ],
476 tools: [
477 "aprotoc",
478 ],
479 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
480 out: [
481 "external/perfetto/protos/tracing_service/data_source_config.pb.h",
482 "external/perfetto/protos/tracing_service/data_source_descriptor.pb.h",
483 "external/perfetto/protos/tracing_service/trace_config.pb.h",
484 ],
485 export_include_dirs: [
486 ".",
487 ],
488}
489
490// GN target: //protos/ftrace:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000491genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000492 name: "perfetto_protos_ftrace_lite_gen",
493 srcs: [
494 "protos/ftrace/ftrace_event.proto",
495 "protos/ftrace/ftrace_event_bundle.proto",
496 "protos/ftrace/print.proto",
497 "protos/ftrace/sched_switch.proto",
498 "protos/ftrace/test_bundle_wrapper.proto",
499 ],
500 tools: [
501 "aprotoc",
502 ],
503 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
504 out: [
505 "external/perfetto/protos/ftrace/ftrace_event.pb.cc",
506 "external/perfetto/protos/ftrace/ftrace_event_bundle.pb.cc",
507 "external/perfetto/protos/ftrace/print.pb.cc",
508 "external/perfetto/protos/ftrace/sched_switch.pb.cc",
509 "external/perfetto/protos/ftrace/test_bundle_wrapper.pb.cc",
510 ],
511}
512
513// GN target: //protos/ftrace:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000514genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000515 name: "perfetto_protos_ftrace_lite_gen_headers",
516 srcs: [
517 "protos/ftrace/ftrace_event.proto",
518 "protos/ftrace/ftrace_event_bundle.proto",
519 "protos/ftrace/print.proto",
520 "protos/ftrace/sched_switch.proto",
521 "protos/ftrace/test_bundle_wrapper.proto",
522 ],
523 tools: [
524 "aprotoc",
525 ],
526 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
527 out: [
528 "external/perfetto/protos/ftrace/ftrace_event.pb.h",
529 "external/perfetto/protos/ftrace/ftrace_event_bundle.pb.h",
530 "external/perfetto/protos/ftrace/print.pb.h",
531 "external/perfetto/protos/ftrace/sched_switch.pb.h",
532 "external/perfetto/protos/ftrace/test_bundle_wrapper.pb.h",
533 ],
534 export_include_dirs: [
535 ".",
536 ],
537}
538
539// GN target: //protos/tracing_service:lite_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000540genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000541 name: "perfetto_protos_tracing_service_lite_gen",
542 srcs: [
543 "protos/tracing_service/data_source_config.proto",
544 "protos/tracing_service/data_source_descriptor.proto",
545 "protos/tracing_service/trace_config.proto",
546 ],
547 tools: [
548 "aprotoc",
549 ],
550 cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)",
551 out: [
552 "external/perfetto/protos/tracing_service/data_source_config.pb.cc",
553 "external/perfetto/protos/tracing_service/data_source_descriptor.pb.cc",
554 "external/perfetto/protos/tracing_service/trace_config.pb.cc",
555 ],
556}
557
558// GN target: //protos/ftrace:zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000559genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000560 name: "perfetto_protos_ftrace_zero_gen_headers",
561 srcs: [
562 "protos/ftrace/ftrace_event.proto",
563 "protos/ftrace/ftrace_event_bundle.proto",
564 "protos/ftrace/print.proto",
565 "protos/ftrace/sched_switch.proto",
566 "protos/ftrace/test_bundle_wrapper.proto",
567 ],
568 tools: [
569 "aprotoc",
570 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
571 ],
572 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)",
573 out: [
574 "external/perfetto/protos/ftrace/ftrace_event.pbzero.h",
575 "external/perfetto/protos/ftrace/ftrace_event_bundle.pbzero.h",
576 "external/perfetto/protos/ftrace/print.pbzero.h",
577 "external/perfetto/protos/ftrace/sched_switch.pbzero.h",
578 "external/perfetto/protos/ftrace/test_bundle_wrapper.pbzero.h",
579 ],
580 export_include_dirs: [
581 ".",
582 ],
583}
584
585// GN target: //src/protozero/protoc_plugin:protoc_plugin(//gn/standalone/toolchain:gcc_like_host)
586cc_binary_host {
587 name: "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
588 srcs: [
589 "src/protozero/protoc_plugin/protozero_generator.cc",
590 "src/protozero/protoc_plugin/protozero_plugin.cc",
591 ],
592 shared_libs: [
593 "libprotoc",
Sami Kyostilab27619f2017-12-13 19:22:16 +0000594 ],
595 defaults: [
596 "perfetto_defaults",
597 ],
598}
599
600// GN target: //src/protozero:testing_messages_zero_gen
Sami Kyostila71625d72017-12-18 10:29:49 +0000601genrule {
Sami Kyostilab27619f2017-12-13 19:22:16 +0000602 name: "perfetto_src_protozero_testing_messages_zero_gen",
603 srcs: [
604 "src/protozero/test/example_proto/library.proto",
605 "src/protozero/test/example_proto/library_internals/galaxies.proto",
606 "src/protozero/test/example_proto/test_messages.proto",
607 "src/protozero/test/example_proto/upper_import.proto",
608 ],
609 tools: [
610 "aprotoc",
611 "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_",
612 ],
613 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)",
614 out: [
615 "external/perfetto/src/protozero/test/example_proto/library.pbzero.cc",
616 "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.cc",
617 "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.cc",
618 "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.cc",
619 ],
Sami Kyostila2357b032017-12-06 18:38:17 +0000620}