Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 1 | // 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 Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 16 | |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 17 | // GN target: //src/ipc:wire_protocol_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 18 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 19 | name: "perfetto_src_ipc_wire_protocol_gen_headers", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 20 | srcs: [ |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 21 | "src/ipc/wire_protocol.proto", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 22 | ], |
| 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 Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 27 | out: [ |
| 28 | "external/perfetto/src/ipc/wire_protocol.pb.h", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 29 | ], |
| 30 | export_include_dirs: [ |
| 31 | ".", |
| 32 | ], |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 33 | } |
| 34 | |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 35 | // GN target: //src/ftrace_reader:ftrace_reader_test_messages_lite_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 36 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 37 | 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 Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 51 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 52 | name: "perfetto_src_ipc_test_messages_gen_headers", |
| 53 | srcs: [ |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 54 | "src/ipc/test/client_unittest_messages.proto", |
| 55 | "src/ipc/test/deferred_unittest_messages.proto", |
| 56 | "src/ipc/test/greeter_service.proto", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 57 | ], |
| 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 Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 63 | 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 Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 70 | ], |
| 71 | export_include_dirs: [ |
| 72 | ".", |
| 73 | ], |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 74 | } |
| 75 | |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 76 | cc_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 Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 88 | |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 89 | // GN target: //protos/tracing_service:tracing_service_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 90 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 91 | name: "perfetto_protos_tracing_service_tracing_service_gen_headers", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 92 | srcs: [ |
Primiano Tucci | 114b649 | 2017-12-11 23:09:45 +0000 | [diff] [blame] | 93 | "protos/tracing_service/consumer_port.proto", |
| 94 | "protos/tracing_service/producer_port.proto", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 95 | ], |
| 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 Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 101 | out: [ |
Primiano Tucci | 114b649 | 2017-12-11 23:09:45 +0000 | [diff] [blame] | 102 | "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 Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 106 | ], |
| 107 | export_include_dirs: [ |
| 108 | ".", |
| 109 | ], |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 110 | } |
| 111 | |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 112 | // GN target: //src/ftrace_reader:ftrace_reader_test_messages_zero_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 113 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 114 | name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 115 | srcs: [ |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 116 | "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 Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 126 | } |
| 127 | |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 128 | // GN target: //protos/tracing_service:tracing_service_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 129 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 130 | 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 Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 147 | |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 148 | // GN target: //src/protozero:testing_messages_lite_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 149 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 150 | 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 Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 172 | // GN target: //protos:zero_gen |
| 173 | genrule { |
| 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 Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 190 | // GN target: //src/ipc:test_messages_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 191 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 192 | 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 Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 214 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 215 | name: "perfetto_protos_lite_gen_headers", |
| 216 | srcs: [ |
Primiano Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 217 | "protos/test_event.proto", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 218 | "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 Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 225 | "external/perfetto/protos/test_event.pb.h", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 226 | "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) |
| 234 | cc_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 Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 242 | ], |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 243 | defaults: [ |
| 244 | "perfetto_defaults", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 245 | ], |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 246 | } |
| 247 | |
Primiano Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 248 | // GN target: //protos:zero_gen |
| 249 | genrule { |
| 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 |
| 270 | genrule { |
| 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 Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 286 | // GN target: //src/ftrace_reader:ftrace_reader_test_messages_zero_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 287 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 288 | name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen_headers", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 289 | srcs: [ |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 290 | "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 Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 305 | // GN target: //protos/ftrace:zero_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 306 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 307 | 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 Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 330 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 331 | 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 Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 345 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 346 | 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 |
| 366 | cc_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 Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 374 | ":perfetto_protos_zero_gen", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 375 | ":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 Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 382 | "src/base/scoped_file_unittest.cc", |
| 383 | "src/base/task_runner_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 384 | "src/base/test/test_task_runner.cc", |
| 385 | "src/base/thread_checker.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 386 | "src/base/thread_checker_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 387 | "src/base/unix_task_runner.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 388 | "src/base/utils_unittest.cc", |
| 389 | "src/base/weak_ptr_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 390 | "src/ftrace_reader/cpu_reader.cc", |
| 391 | "src/ftrace_reader/cpu_reader_unittest.cc", |
| 392 | "src/ftrace_reader/event_info.cc", |
Hector Dearman | 83d9803 | 2017-12-11 16:37:43 +0000 | [diff] [blame] | 393 | "src/ftrace_reader/event_info_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 394 | "src/ftrace_reader/format_parser.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 395 | "src/ftrace_reader/format_parser_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 396 | "src/ftrace_reader/ftrace_controller.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 397 | "src/ftrace_reader/ftrace_controller_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 398 | "src/ftrace_reader/ftrace_procfs.cc", |
| 399 | "src/ftrace_reader/ftrace_to_proto.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 400 | "src/ftrace_reader/ftrace_to_proto_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 401 | "src/ftrace_reader/proto_translation_table.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 402 | "src/ftrace_reader/proto_translation_table_unittest.cc", |
| 403 | "src/ftrace_reader/test/scattered_stream_delegate_for_testing.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 404 | "src/ipc/buffered_frame_deserializer.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 405 | "src/ipc/buffered_frame_deserializer_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 406 | "src/ipc/client_impl.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 407 | "src/ipc/client_impl_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 408 | "src/ipc/deferred.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 409 | "src/ipc/deferred_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 410 | "src/ipc/host_impl.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 411 | "src/ipc/host_impl_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 412 | "src/ipc/service_proxy.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 413 | "src/ipc/test/ipc_integrationtest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 414 | "src/ipc/unix_socket.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 415 | "src/ipc/unix_socket_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 416 | "src/protozero/proto_utils.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 417 | "src/protozero/proto_utils_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 418 | "src/protozero/protozero_message.cc", |
| 419 | "src/protozero/protozero_message_handle.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 420 | "src/protozero/protozero_message_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 421 | "src/protozero/scattered_stream_writer.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 422 | "src/protozero/scattered_stream_writer_unittest.cc", |
| 423 | "src/protozero/test/fake_scattered_buffer.cc", |
| 424 | "src/protozero/test/protozero_conformance_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 425 | "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 Tucci | 422caff | 2017-12-18 23:58:52 +0100 | [diff] [blame] | 429 | "src/tracing/core/id_allocator.cc", |
| 430 | "src/tracing/core/id_allocator_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 431 | "src/tracing/core/service_impl.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 432 | "src/tracing/core/service_impl_unittest.cc", |
Primiano Tucci | f5d6d53 | 2017-12-19 00:59:34 +0100 | [diff] [blame] | 433 | "src/tracing/core/shared_memory_abi.cc", |
| 434 | "src/tracing/core/shared_memory_abi_unittest.cc", |
Primiano Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 435 | "src/tracing/core/shared_memory_arbiter.cc", |
| 436 | "src/tracing/core/shared_memory_arbiter_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 437 | "src/tracing/core/trace_config.cc", |
| 438 | "src/tracing/core/trace_packet.cc", |
| 439 | "src/tracing/core/trace_packet_unittest.cc", |
Primiano Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 440 | "src/tracing/core/trace_writer_impl.cc", |
| 441 | "src/tracing/core/trace_writer_impl_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 442 | "src/tracing/ipc/consumer/consumer_ipc_client_impl.cc", |
| 443 | "src/tracing/ipc/posix_shared_memory.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 444 | "src/tracing/ipc/posix_shared_memory_unittest.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 445 | "src/tracing/ipc/producer/producer_ipc_client_impl.cc", |
| 446 | "src/tracing/ipc/service/producer_ipc_service.cc", |
| 447 | "src/tracing/ipc/service/service_ipc_host_impl.cc", |
Primiano Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 448 | "src/tracing/test/aligned_buffer_test.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 449 | "src/tracing/test/test_shared_memory.cc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 450 | "tools/sanitizers_unittests/sanitizers_unittest.cc", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 451 | ], |
| 452 | shared_libs: [ |
| 453 | "libandroid", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 454 | "liblog", |
| 455 | "libprotobuf-cpp-lite", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 456 | ], |
| 457 | static_libs: [ |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 458 | "libgmock", |
| 459 | ], |
| 460 | generated_headers: [ |
| 461 | "perfetto_protos_ftrace_lite_gen_headers", |
| 462 | "perfetto_protos_ftrace_zero_gen_headers", |
| 463 | "perfetto_protos_lite_gen_headers", |
| 464 | "perfetto_protos_tracing_service_lite_gen_headers", |
| 465 | "perfetto_protos_tracing_service_tracing_service_gen_headers", |
Primiano Tucci | d7b59c4 | 2017-12-19 01:43:07 +0100 | [diff] [blame^] | 466 | "perfetto_protos_zero_gen_headers", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 467 | "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen_headers", |
| 468 | "perfetto_src_ftrace_reader_ftrace_reader_test_messages_zero_gen_headers", |
| 469 | "perfetto_src_ipc_test_messages_gen_headers", |
| 470 | "perfetto_src_ipc_wire_protocol_gen_headers", |
| 471 | "perfetto_src_protozero_testing_messages_lite_gen_headers", |
| 472 | "perfetto_src_protozero_testing_messages_zero_gen_headers", |
| 473 | ], |
| 474 | defaults: [ |
| 475 | "perfetto_defaults", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 476 | ], |
| 477 | } |
| 478 | |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 479 | // GN target: //src/protozero:testing_messages_zero_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 480 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 481 | name: "perfetto_src_protozero_testing_messages_zero_gen_headers", |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 482 | srcs: [ |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 483 | "src/protozero/test/example_proto/library.proto", |
| 484 | "src/protozero/test/example_proto/library_internals/galaxies.proto", |
| 485 | "src/protozero/test/example_proto/test_messages.proto", |
| 486 | "src/protozero/test/example_proto/upper_import.proto", |
| 487 | ], |
| 488 | tools: [ |
| 489 | "aprotoc", |
| 490 | "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_", |
| 491 | ], |
| 492 | 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)", |
| 493 | out: [ |
| 494 | "external/perfetto/src/protozero/test/example_proto/library.pbzero.h", |
| 495 | "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.h", |
| 496 | "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.h", |
| 497 | "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.h", |
| 498 | ], |
| 499 | export_include_dirs: [ |
| 500 | ".", |
| 501 | ], |
| 502 | } |
| 503 | |
| 504 | // GN target: //src/ftrace_reader:ftrace_reader_test_messages_lite_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 505 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 506 | name: "perfetto_src_ftrace_reader_ftrace_reader_test_messages_lite_gen_headers", |
| 507 | srcs: [ |
| 508 | "src/ftrace_reader/test/test_messages.proto", |
| 509 | ], |
| 510 | tools: [ |
| 511 | "aprotoc", |
| 512 | ], |
| 513 | cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)", |
| 514 | out: [ |
| 515 | "external/perfetto/src/ftrace_reader/test/test_messages.pb.h", |
| 516 | ], |
| 517 | export_include_dirs: [ |
| 518 | ".", |
| 519 | ], |
| 520 | } |
| 521 | |
| 522 | // GN target: //protos/tracing_service:lite_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 523 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 524 | name: "perfetto_protos_tracing_service_lite_gen_headers", |
| 525 | srcs: [ |
| 526 | "protos/tracing_service/data_source_config.proto", |
| 527 | "protos/tracing_service/data_source_descriptor.proto", |
| 528 | "protos/tracing_service/trace_config.proto", |
| 529 | ], |
| 530 | tools: [ |
| 531 | "aprotoc", |
| 532 | ], |
| 533 | cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)", |
| 534 | out: [ |
| 535 | "external/perfetto/protos/tracing_service/data_source_config.pb.h", |
| 536 | "external/perfetto/protos/tracing_service/data_source_descriptor.pb.h", |
| 537 | "external/perfetto/protos/tracing_service/trace_config.pb.h", |
| 538 | ], |
| 539 | export_include_dirs: [ |
| 540 | ".", |
| 541 | ], |
| 542 | } |
| 543 | |
| 544 | // GN target: //protos/ftrace:lite_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 545 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 546 | name: "perfetto_protos_ftrace_lite_gen", |
| 547 | srcs: [ |
| 548 | "protos/ftrace/ftrace_event.proto", |
| 549 | "protos/ftrace/ftrace_event_bundle.proto", |
| 550 | "protos/ftrace/print.proto", |
| 551 | "protos/ftrace/sched_switch.proto", |
| 552 | "protos/ftrace/test_bundle_wrapper.proto", |
| 553 | ], |
| 554 | tools: [ |
| 555 | "aprotoc", |
| 556 | ], |
| 557 | cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)", |
| 558 | out: [ |
| 559 | "external/perfetto/protos/ftrace/ftrace_event.pb.cc", |
| 560 | "external/perfetto/protos/ftrace/ftrace_event_bundle.pb.cc", |
| 561 | "external/perfetto/protos/ftrace/print.pb.cc", |
| 562 | "external/perfetto/protos/ftrace/sched_switch.pb.cc", |
| 563 | "external/perfetto/protos/ftrace/test_bundle_wrapper.pb.cc", |
| 564 | ], |
| 565 | } |
| 566 | |
| 567 | // GN target: //protos/ftrace:lite_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 568 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 569 | name: "perfetto_protos_ftrace_lite_gen_headers", |
| 570 | srcs: [ |
| 571 | "protos/ftrace/ftrace_event.proto", |
| 572 | "protos/ftrace/ftrace_event_bundle.proto", |
| 573 | "protos/ftrace/print.proto", |
| 574 | "protos/ftrace/sched_switch.proto", |
| 575 | "protos/ftrace/test_bundle_wrapper.proto", |
| 576 | ], |
| 577 | tools: [ |
| 578 | "aprotoc", |
| 579 | ], |
| 580 | cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)", |
| 581 | out: [ |
| 582 | "external/perfetto/protos/ftrace/ftrace_event.pb.h", |
| 583 | "external/perfetto/protos/ftrace/ftrace_event_bundle.pb.h", |
| 584 | "external/perfetto/protos/ftrace/print.pb.h", |
| 585 | "external/perfetto/protos/ftrace/sched_switch.pb.h", |
| 586 | "external/perfetto/protos/ftrace/test_bundle_wrapper.pb.h", |
| 587 | ], |
| 588 | export_include_dirs: [ |
| 589 | ".", |
| 590 | ], |
| 591 | } |
| 592 | |
| 593 | // GN target: //protos/tracing_service:lite_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 594 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 595 | name: "perfetto_protos_tracing_service_lite_gen", |
| 596 | srcs: [ |
| 597 | "protos/tracing_service/data_source_config.proto", |
| 598 | "protos/tracing_service/data_source_descriptor.proto", |
| 599 | "protos/tracing_service/trace_config.proto", |
| 600 | ], |
| 601 | tools: [ |
| 602 | "aprotoc", |
| 603 | ], |
| 604 | cmd: "mkdir -p $(genDir)/external/perfetto && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto --proto_path=external/perfetto $(in)", |
| 605 | out: [ |
| 606 | "external/perfetto/protos/tracing_service/data_source_config.pb.cc", |
| 607 | "external/perfetto/protos/tracing_service/data_source_descriptor.pb.cc", |
| 608 | "external/perfetto/protos/tracing_service/trace_config.pb.cc", |
| 609 | ], |
| 610 | } |
| 611 | |
| 612 | // GN target: //protos/ftrace:zero_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 613 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 614 | name: "perfetto_protos_ftrace_zero_gen_headers", |
| 615 | srcs: [ |
| 616 | "protos/ftrace/ftrace_event.proto", |
| 617 | "protos/ftrace/ftrace_event_bundle.proto", |
| 618 | "protos/ftrace/print.proto", |
| 619 | "protos/ftrace/sched_switch.proto", |
| 620 | "protos/ftrace/test_bundle_wrapper.proto", |
| 621 | ], |
| 622 | tools: [ |
| 623 | "aprotoc", |
| 624 | "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_", |
| 625 | ], |
| 626 | 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)", |
| 627 | out: [ |
| 628 | "external/perfetto/protos/ftrace/ftrace_event.pbzero.h", |
| 629 | "external/perfetto/protos/ftrace/ftrace_event_bundle.pbzero.h", |
| 630 | "external/perfetto/protos/ftrace/print.pbzero.h", |
| 631 | "external/perfetto/protos/ftrace/sched_switch.pbzero.h", |
| 632 | "external/perfetto/protos/ftrace/test_bundle_wrapper.pbzero.h", |
| 633 | ], |
| 634 | export_include_dirs: [ |
| 635 | ".", |
| 636 | ], |
| 637 | } |
| 638 | |
| 639 | // GN target: //src/protozero/protoc_plugin:protoc_plugin(//gn/standalone/toolchain:gcc_like_host) |
| 640 | cc_binary_host { |
| 641 | name: "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_", |
| 642 | srcs: [ |
| 643 | "src/protozero/protoc_plugin/protozero_generator.cc", |
| 644 | "src/protozero/protoc_plugin/protozero_plugin.cc", |
| 645 | ], |
| 646 | shared_libs: [ |
| 647 | "libprotoc", |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 648 | ], |
| 649 | defaults: [ |
| 650 | "perfetto_defaults", |
| 651 | ], |
| 652 | } |
| 653 | |
| 654 | // GN target: //src/protozero:testing_messages_zero_gen |
Sami Kyostila | 71625d7 | 2017-12-18 10:29:49 +0000 | [diff] [blame] | 655 | genrule { |
Sami Kyostila | b27619f | 2017-12-13 19:22:16 +0000 | [diff] [blame] | 656 | name: "perfetto_src_protozero_testing_messages_zero_gen", |
| 657 | srcs: [ |
| 658 | "src/protozero/test/example_proto/library.proto", |
| 659 | "src/protozero/test/example_proto/library_internals/galaxies.proto", |
| 660 | "src/protozero/test/example_proto/test_messages.proto", |
| 661 | "src/protozero/test/example_proto/upper_import.proto", |
| 662 | ], |
| 663 | tools: [ |
| 664 | "aprotoc", |
| 665 | "perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_", |
| 666 | ], |
| 667 | 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)", |
| 668 | out: [ |
| 669 | "external/perfetto/src/protozero/test/example_proto/library.pbzero.cc", |
| 670 | "external/perfetto/src/protozero/test/example_proto/library_internals/galaxies.pbzero.cc", |
| 671 | "external/perfetto/src/protozero/test/example_proto/test_messages.pbzero.cc", |
| 672 | "external/perfetto/src/protozero/test/example_proto/upper_import.pbzero.cc", |
| 673 | ], |
Sami Kyostila | 2357b03 | 2017-12-06 18:38:17 +0000 | [diff] [blame] | 674 | } |