OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 config("protobuf_config") { | 5 config("protobuf_config") { |
6 include_dirs = [ "src" ] | 6 include_dirs = [ "src" ] |
7 defines = [ | 7 defines = [ |
8 "GOOGLE_PROTOBUF_NO_RTTI", | 8 "GOOGLE_PROTOBUF_NO_RTTI", |
9 "GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", | 9 "GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", |
10 ] | 10 ] |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 } | 213 } |
214 | 214 |
215 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't | 215 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't |
216 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls | 216 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls |
217 # into that category. Do not use in Chrome code. | 217 # into that category. Do not use in Chrome code. |
218 static_library("protobuf_full") { | 218 static_library("protobuf_full") { |
219 # Prevent people from depending on this outside our file. | 219 # Prevent people from depending on this outside our file. |
220 visibility = [ | 220 visibility = [ |
221 ":*", | 221 ":*", |
222 | 222 |
223 # The traffic_annotation tool is not part of Chrome itself, and needs to | |
224 # parse human-readable protobufs. | |
225 "//tools/traffic_annotation/*", | |
226 | |
223 # requires descriptors & reflection; testonly. | 227 # requires descriptors & reflection; testonly. |
224 "//third_party/libprotobuf-mutator:*", | 228 "//third_party/libprotobuf-mutator:*", |
225 ] | 229 ] |
226 | 230 |
227 sources = protobuf_lite_sources + protobuf_globals_sources + [ | 231 sources = protobuf_lite_sources + protobuf_globals_sources + [ |
228 "src/google/protobuf/any.cc", | 232 "src/google/protobuf/any.cc", |
battre
2017/04/07 08:42:27
I think that this indentation with tabs is wrong a
Ramin Halavati
2017/04/07 11:33:31
Done. They were changed by git cl format.
| |
229 "src/google/protobuf/any.h", | 233 "src/google/protobuf/any.h", |
230 "src/google/protobuf/any.pb.cc", | 234 "src/google/protobuf/any.pb.cc", |
231 "src/google/protobuf/any.pb.h", | 235 "src/google/protobuf/any.pb.h", |
232 "src/google/protobuf/api.pb.cc", | 236 "src/google/protobuf/api.pb.cc", |
233 "src/google/protobuf/api.pb.h", | 237 "src/google/protobuf/api.pb.h", |
234 "src/google/protobuf/compiler/importer.cc", | 238 "src/google/protobuf/compiler/importer.cc", |
235 "src/google/protobuf/compiler/importer.h", | 239 "src/google/protobuf/compiler/importer.h", |
236 "src/google/protobuf/compiler/parser.cc", | 240 "src/google/protobuf/compiler/parser.cc", |
237 "src/google/protobuf/compiler/parser.h", | 241 "src/google/protobuf/compiler/parser.h", |
238 "src/google/protobuf/descriptor.cc", | 242 "src/google/protobuf/descriptor.cc", |
239 "src/google/protobuf/descriptor.h", | 243 "src/google/protobuf/descriptor.h", |
240 "src/google/protobuf/descriptor.pb.cc", | 244 "src/google/protobuf/descriptor.pb.cc", |
241 "src/google/protobuf/descriptor.pb.h", | 245 "src/google/protobuf/descriptor.pb.h", |
242 "src/google/protobuf/descriptor_database.cc", | 246 "src/google/protobuf/descriptor_database.cc", |
243 "src/google/protobuf/descriptor_database.h", | 247 "src/google/protobuf/descriptor_database.h", |
244 "src/google/protobuf/duration.pb.cc", | 248 "src/google/protobuf/duration.pb.cc", |
245 "src/google/protobuf/duration.pb.h", | 249 "src/google/protobuf/duration.pb.h", |
246 "src/google/protobuf/dynamic_message.cc", | 250 "src/google/protobuf/dynamic_message.cc", |
247 "src/google/protobuf/dynamic_message.h", | 251 "src/google/protobuf/dynamic_message.h", |
248 "src/google/protobuf/empty.pb.cc", | 252 "src/google/protobuf/empty.pb.cc", |
249 "src/google/protobuf/empty.pb.h", | 253 "src/google/protobuf/empty.pb.h", |
250 "src/google/protobuf/extension_set_heavy.cc", | 254 "src/google/protobuf/extension_set_heavy.cc", |
251 "src/google/protobuf/field_mask.pb.cc", | 255 "src/google/protobuf/field_mask.pb.cc", |
252 "src/google/protobuf/field_mask.pb.h", | 256 "src/google/protobuf/field_mask.pb.h", |
253 "src/google/protobuf/generated_enum_reflection.h", | 257 "src/google/protobuf/generated_enum_reflection.h", |
254 "src/google/protobuf/generated_enum_util.h", | 258 "src/google/protobuf/generated_enum_util.h", |
255 "src/google/protobuf/generated_message_reflection.cc", | 259 "src/google/protobuf/generated_message_reflection.cc", |
256 "src/google/protobuf/generated_message_reflection.h", | 260 "src/google/protobuf/generated_message_reflection.h", |
257 | 261 |
258 # gzip_stream.cc pulls in zlib, but it's not actually used by protoc, just | 262 # gzip_stream.cc pulls in zlib, but it's not actually used by prot oc, just |
259 # by test code, so instead of compiling zlib for the host, let's just | 263 # by test code, so instead of compiling zlib for the host, let's j ust |
260 # exclude this. | 264 # exclude this. |
261 # "src/google/protobuf/io/gzip_stream.cc", | 265 # "src/google/protobuf/io/gzip_stream.cc", |
262 # "src/google/protobuf/io/gzip_stream.h", | 266 # "src/google/protobuf/io/gzip_stream.h", |
263 | 267 |
264 "src/google/protobuf/io/printer.cc", | 268 "src/google/protobuf/io/printer.cc", |
265 "src/google/protobuf/io/printer.h", | 269 "src/google/protobuf/io/printer.h", |
266 "src/google/protobuf/io/strtod.cc", | 270 "src/google/protobuf/io/strtod.cc", |
267 "src/google/protobuf/io/strtod.h", | 271 "src/google/protobuf/io/strtod.h", |
268 "src/google/protobuf/io/tokenizer.cc", | 272 "src/google/protobuf/io/tokenizer.cc", |
269 "src/google/protobuf/io/tokenizer.h", | 273 "src/google/protobuf/io/tokenizer.h", |
270 "src/google/protobuf/io/zero_copy_stream_impl.cc", | 274 "src/google/protobuf/io/zero_copy_stream_impl.cc", |
271 "src/google/protobuf/io/zero_copy_stream_impl.h", | 275 "src/google/protobuf/io/zero_copy_stream_impl.h", |
272 "src/google/protobuf/map_entry.h", | 276 "src/google/protobuf/map_entry.h", |
273 "src/google/protobuf/map_field.cc", | 277 "src/google/protobuf/map_field.cc", |
274 "src/google/protobuf/map_field.h", | 278 "src/google/protobuf/map_field.h", |
275 "src/google/protobuf/map_field_inl.h", | 279 "src/google/protobuf/map_field_inl.h", |
276 "src/google/protobuf/message.cc", | 280 "src/google/protobuf/message.cc", |
277 "src/google/protobuf/message.h", | 281 "src/google/protobuf/message.h", |
278 "src/google/protobuf/metadata.h", | 282 "src/google/protobuf/metadata.h", |
279 "src/google/protobuf/reflection.h", | 283 "src/google/protobuf/reflection.h", |
280 "src/google/protobuf/reflection_internal.h", | 284 "src/google/protobuf/reflection_internal.h", |
281 "src/google/protobuf/reflection_ops.cc", | 285 "src/google/protobuf/reflection_ops.cc", |
282 "src/google/protobuf/reflection_ops.h", | 286 "src/google/protobuf/reflection_ops.h", |
283 "src/google/protobuf/service.cc", | 287 "src/google/protobuf/service.cc", |
284 "src/google/protobuf/service.h", | 288 "src/google/protobuf/service.h", |
285 "src/google/protobuf/source_context.pb.cc", | 289 "src/google/protobuf/source_context.pb.cc", |
286 "src/google/protobuf/source_context.pb.h", | 290 "src/google/protobuf/source_context.pb.h", |
287 "src/google/protobuf/struct.pb.cc", | 291 "src/google/protobuf/struct.pb.cc", |
288 "src/google/protobuf/struct.pb.h", | 292 "src/google/protobuf/struct.pb.h", |
289 "src/google/protobuf/stubs/mathlimits.cc", | 293 "src/google/protobuf/stubs/mathlimits.cc", |
290 "src/google/protobuf/stubs/mathlimits.h", | 294 "src/google/protobuf/stubs/mathlimits.h", |
291 "src/google/protobuf/stubs/mathutil.h", | 295 "src/google/protobuf/stubs/mathutil.h", |
292 "src/google/protobuf/stubs/singleton.h", | 296 "src/google/protobuf/stubs/singleton.h", |
293 "src/google/protobuf/stubs/substitute.cc", | 297 "src/google/protobuf/stubs/substitute.cc", |
294 "src/google/protobuf/stubs/substitute.h", | 298 "src/google/protobuf/stubs/substitute.h", |
295 "src/google/protobuf/text_format.cc", | 299 "src/google/protobuf/text_format.cc", |
296 "src/google/protobuf/text_format.h", | 300 "src/google/protobuf/text_format.h", |
297 "src/google/protobuf/timestamp.pb.cc", | 301 "src/google/protobuf/timestamp.pb.cc", |
298 "src/google/protobuf/timestamp.pb.h", | 302 "src/google/protobuf/timestamp.pb.h", |
299 "src/google/protobuf/type.pb.cc", | 303 "src/google/protobuf/type.pb.cc", |
300 "src/google/protobuf/type.pb.h", | 304 "src/google/protobuf/type.pb.h", |
301 "src/google/protobuf/unknown_field_set.cc", | 305 "src/google/protobuf/unknown_field_set.cc", |
302 "src/google/protobuf/unknown_field_set.h", | 306 "src/google/protobuf/unknown_field_set.h", |
303 "src/google/protobuf/util/field_comparator.cc", | 307 "src/google/protobuf/util/field_comparator.cc", |
304 "src/google/protobuf/util/field_comparator.h", | 308 "src/google/protobuf/util/field_comparator.h", |
305 "src/google/protobuf/util/field_mask_util.cc", | 309 "src/google/protobuf/util/field_mask_util.cc", |
306 "src/google/protobuf/util/field_mask_util.h", | 310 "src/google/protobuf/util/field_mask_util.h", |
307 "src/google/protobuf/util/internal/constants.h", | 311 "src/google/protobuf/util/internal/constants.h", |
308 "src/google/protobuf/util/internal/datapiece.cc", | 312 "src/google/protobuf/util/internal/datapiece.cc", |
309 "src/google/protobuf/util/internal/datapiece.h", | 313 "src/google/protobuf/util/internal/datapiece.h", |
310 "src/google/protobuf/util/internal/default_value_objectwriter.cc", | 314 "src/google/protobuf/util/internal/default_value_objectwriter.cc", |
311 "src/google/protobuf/util/internal/default_value_objectwriter.h", | 315 "src/google/protobuf/util/internal/default_value_objectwriter.h", |
312 "src/google/protobuf/util/internal/error_listener.cc", | 316 "src/google/protobuf/util/internal/error_listener.cc", |
313 "src/google/protobuf/util/internal/error_listener.h", | 317 "src/google/protobuf/util/internal/error_listener.h", |
314 "src/google/protobuf/util/internal/field_mask_utility.cc", | 318 "src/google/protobuf/util/internal/field_mask_utility.cc", |
315 "src/google/protobuf/util/internal/field_mask_utility.h", | 319 "src/google/protobuf/util/internal/field_mask_utility.h", |
316 "src/google/protobuf/util/internal/json_escaping.cc", | 320 "src/google/protobuf/util/internal/json_escaping.cc", |
317 "src/google/protobuf/util/internal/json_escaping.h", | 321 "src/google/protobuf/util/internal/json_escaping.h", |
318 "src/google/protobuf/util/internal/json_objectwriter.cc", | 322 "src/google/protobuf/util/internal/json_objectwriter.cc", |
319 "src/google/protobuf/util/internal/json_objectwriter.h", | 323 "src/google/protobuf/util/internal/json_objectwriter.h", |
320 "src/google/protobuf/util/internal/json_stream_parser.cc", | 324 "src/google/protobuf/util/internal/json_stream_parser.cc", |
321 "src/google/protobuf/util/internal/json_stream_parser.h", | 325 "src/google/protobuf/util/internal/json_stream_parser.h", |
322 "src/google/protobuf/util/internal/location_tracker.h", | 326 "src/google/protobuf/util/internal/location_tracker.h", |
323 "src/google/protobuf/util/internal/object_location_tracker.h", | 327 "src/google/protobuf/util/internal/object_location_tracker.h", |
324 "src/google/protobuf/util/internal/object_source.h", | 328 "src/google/protobuf/util/internal/object_source.h", |
325 "src/google/protobuf/util/internal/object_writer.cc", | 329 "src/google/protobuf/util/internal/object_writer.cc", |
326 "src/google/protobuf/util/internal/object_writer.h", | 330 "src/google/protobuf/util/internal/object_writer.h", |
327 "src/google/protobuf/util/internal/proto_writer.cc", | 331 "src/google/protobuf/util/internal/proto_writer.cc", |
328 "src/google/protobuf/util/internal/proto_writer.h", | 332 "src/google/protobuf/util/internal/proto_writer.h", |
329 "src/google/protobuf/util/internal/protostream_objectsource.cc", | 333 "src/google/protobuf/util/internal/protostream_objectsource.cc", |
330 "src/google/protobuf/util/internal/protostream_objectsource.h", | 334 "src/google/protobuf/util/internal/protostream_objectsource.h", |
331 "src/google/protobuf/util/internal/protostream_objectwriter.cc", | 335 "src/google/protobuf/util/internal/protostream_objectwriter.cc", |
332 "src/google/protobuf/util/internal/protostream_objectwriter.h", | 336 "src/google/protobuf/util/internal/protostream_objectwriter.h", |
333 "src/google/protobuf/util/internal/structured_objectwriter.h", | 337 "src/google/protobuf/util/internal/structured_objectwriter.h", |
334 "src/google/protobuf/util/internal/type_info.cc", | 338 "src/google/protobuf/util/internal/type_info.cc", |
335 "src/google/protobuf/util/internal/type_info.h", | 339 "src/google/protobuf/util/internal/type_info.h", |
336 "src/google/protobuf/util/internal/type_info_test_helper.cc", | 340 "src/google/protobuf/util/internal/type_info_test_helper.cc", |
337 "src/google/protobuf/util/internal/type_info_test_helper.h", | 341 "src/google/protobuf/util/internal/type_info_test_helper.h", |
338 "src/google/protobuf/util/internal/utility.cc", | 342 "src/google/protobuf/util/internal/utility.cc", |
339 "src/google/protobuf/util/internal/utility.h", | 343 "src/google/protobuf/util/internal/utility.h", |
340 "src/google/protobuf/util/json_util.cc", | 344 "src/google/protobuf/util/json_util.cc", |
341 "src/google/protobuf/util/json_util.h", | 345 "src/google/protobuf/util/json_util.h", |
342 "src/google/protobuf/util/message_differencer.cc", | 346 "src/google/protobuf/util/message_differencer.cc", |
343 "src/google/protobuf/util/message_differencer.h", | 347 "src/google/protobuf/util/message_differencer.h", |
344 "src/google/protobuf/util/time_util.cc", | 348 "src/google/protobuf/util/time_util.cc", |
345 "src/google/protobuf/util/time_util.h", | 349 "src/google/protobuf/util/time_util.h", |
346 "src/google/protobuf/util/type_resolver.h", | 350 "src/google/protobuf/util/type_resolver.h", |
347 "src/google/protobuf/util/type_resolver_util.cc", | 351 "src/google/protobuf/util/type_resolver_util.cc", |
348 "src/google/protobuf/util/type_resolver_util.h", | 352 "src/google/protobuf/util/type_resolver_util.h", |
349 "src/google/protobuf/wire_format.cc", | 353 "src/google/protobuf/wire_format.cc", |
350 "src/google/protobuf/wire_format.h", | 354 "src/google/protobuf/wire_format.h", |
351 "src/google/protobuf/wrappers.pb.cc", | 355 "src/google/protobuf/wrappers.pb.cc", |
352 "src/google/protobuf/wrappers.pb.h", | 356 "src/google/protobuf/wrappers.pb.h", |
353 ] | 357 ] |
354 | 358 |
355 deps = [ | 359 deps = [ |
356 "//build/config/sanitizers:deps", | 360 "//build/config/sanitizers:deps", |
357 ] | 361 ] |
358 | 362 |
359 configs -= [ "//build/config/compiler:chromium_code" ] | 363 configs -= [ "//build/config/compiler:chromium_code" ] |
360 configs += [ | 364 configs += [ |
361 "//build/config/compiler:no_chromium_code", | 365 "//build/config/compiler:no_chromium_code", |
362 | 366 |
363 # Must be after no_chromium_code for warning flags to be ordered | 367 # Must be after no_chromium_code for warning flags to be ordered |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
687 ":copy_google_protobuf_internal", | 691 ":copy_google_protobuf_internal", |
688 ":copy_six", | 692 ":copy_six", |
689 ] | 693 ] |
690 | 694 |
691 # Targets that depend on this should depend on the copied data files. | 695 # Targets that depend on this should depend on the copied data files. |
692 data = get_target_outputs(":copy_google") | 696 data = get_target_outputs(":copy_google") |
693 data += get_target_outputs(":copy_six") | 697 data += get_target_outputs(":copy_six") |
694 data += get_target_outputs(":copy_google_protobuf") | 698 data += get_target_outputs(":copy_google_protobuf") |
695 data += get_target_outputs(":copy_google_protobuf_internal") | 699 data += get_target_outputs(":copy_google_protobuf_internal") |
696 } | 700 } |
OLD | NEW |