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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 "src/google/protobuf/extension_set.h", | 45 "src/google/protobuf/extension_set.h", |
46 "src/google/protobuf/generated_message_util.cc", | 46 "src/google/protobuf/generated_message_util.cc", |
47 "src/google/protobuf/generated_message_util.h", | 47 "src/google/protobuf/generated_message_util.h", |
48 "src/google/protobuf/io/coded_stream.cc", | 48 "src/google/protobuf/io/coded_stream.cc", |
49 "src/google/protobuf/io/coded_stream.h", | 49 "src/google/protobuf/io/coded_stream.h", |
50 "src/google/protobuf/io/coded_stream_inl.h", | 50 "src/google/protobuf/io/coded_stream_inl.h", |
51 "src/google/protobuf/io/zero_copy_stream.cc", | 51 "src/google/protobuf/io/zero_copy_stream.cc", |
52 "src/google/protobuf/io/zero_copy_stream.h", | 52 "src/google/protobuf/io/zero_copy_stream.h", |
53 "src/google/protobuf/io/zero_copy_stream_impl_lite.cc", | 53 "src/google/protobuf/io/zero_copy_stream_impl_lite.cc", |
54 "src/google/protobuf/io/zero_copy_stream_impl_lite.h", | 54 "src/google/protobuf/io/zero_copy_stream_impl_lite.h", |
55 "src/google/protobuf/has_bits.h", | |
56 "src/google/protobuf/map.h", | 55 "src/google/protobuf/map.h", |
57 "src/google/protobuf/map_entry_lite.h", | 56 "src/google/protobuf/map_entry_lite.h", |
58 "src/google/protobuf/map_field_lite.h", | 57 "src/google/protobuf/map_field_lite.h", |
59 "src/google/protobuf/map_type_handler.h", | 58 "src/google/protobuf/map_type_handler.h", |
60 "src/google/protobuf/message_lite.cc", | 59 "src/google/protobuf/message_lite.cc", |
61 "src/google/protobuf/message_lite.h", | 60 "src/google/protobuf/message_lite.h", |
62 "src/google/protobuf/repeated_field.cc", | 61 "src/google/protobuf/repeated_field.cc", |
63 "src/google/protobuf/repeated_field.h", | 62 "src/google/protobuf/repeated_field.h", |
64 "src/google/protobuf/stubs/atomicops.h", | 63 "src/google/protobuf/stubs/atomicops.h", |
65 "src/google/protobuf/stubs/atomicops_internals_arm64_gcc.h", | 64 "src/google/protobuf/stubs/atomicops_internals_arm64_gcc.h", |
66 "src/google/protobuf/stubs/atomicops_internals_arm_gcc.h", | 65 "src/google/protobuf/stubs/atomicops_internals_arm_gcc.h", |
67 "src/google/protobuf/stubs/atomicops_internals_arm_qnx.h", | 66 "src/google/protobuf/stubs/atomicops_internals_arm_qnx.h", |
68 "src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h", | 67 "src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h", |
69 "src/google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h", | |
70 "src/google/protobuf/stubs/atomicops_internals_generic_gcc.h", | 68 "src/google/protobuf/stubs/atomicops_internals_generic_gcc.h", |
71 "src/google/protobuf/stubs/atomicops_internals_macosx.h", | 69 "src/google/protobuf/stubs/atomicops_internals_macosx.h", |
72 "src/google/protobuf/stubs/atomicops_internals_mips_gcc.h", | 70 "src/google/protobuf/stubs/atomicops_internals_mips_gcc.h", |
| 71 "src/google/protobuf/stubs/atomicops_internals_pnacl.h", |
73 "src/google/protobuf/stubs/atomicops_internals_power.h", | 72 "src/google/protobuf/stubs/atomicops_internals_power.h", |
74 "src/google/protobuf/stubs/atomicops_internals_ppc_gcc.h", | 73 "src/google/protobuf/stubs/atomicops_internals_ppc_gcc.h", |
75 "src/google/protobuf/stubs/atomicops_internals_solaris.h", | 74 "src/google/protobuf/stubs/atomicops_internals_solaris.h", |
76 "src/google/protobuf/stubs/atomicops_internals_tsan.h", | 75 "src/google/protobuf/stubs/atomicops_internals_tsan.h", |
77 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", | 76 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", |
78 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.h", | 77 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.h", |
79 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc", | 78 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc", |
80 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.h", | 79 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.h", |
81 "src/google/protobuf/stubs/atomic_sequence_num.h", | 80 "src/google/protobuf/stubs/atomic_sequence_num.h", |
82 "src/google/protobuf/stubs/bytestream.cc", | 81 "src/google/protobuf/stubs/bytestream.cc", |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 ":protobuf_config", | 156 ":protobuf_config", |
158 | 157 |
159 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 158 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
160 "//build/config/compiler:no_size_t_to_int_warning", | 159 "//build/config/compiler:no_size_t_to_int_warning", |
161 ] | 160 ] |
162 | 161 |
163 deps = [ | 162 deps = [ |
164 "//build/config/sanitizers:deps", | 163 "//build/config/sanitizers:deps", |
165 ] | 164 ] |
166 | 165 |
167 if (is_android) { | |
168 libs = [ "log" ] # Used by src/google/protobuf/stubs/common.cc | |
169 } | |
170 | |
171 cflags = protobuf_lite_cflags | 166 cflags = protobuf_lite_cflags |
172 | 167 |
173 # Required for component builds. See http://crbug.com/172800. | 168 # Required for component builds. See http://crbug.com/172800. |
174 if (is_component_build) { | 169 if (is_component_build) { |
175 public_configs += [ ":protobuf_use_dlls" ] | 170 public_configs += [ ":protobuf_use_dlls" ] |
176 defines = [ "LIBPROTOBUF_EXPORTS" ] | 171 defines = [ "LIBPROTOBUF_EXPORTS" ] |
177 } | 172 } |
178 } | 173 } |
179 | 174 |
180 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't | 175 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 "src/google/protobuf/wire_format.cc", | 305 "src/google/protobuf/wire_format.cc", |
311 "src/google/protobuf/wire_format.h", | 306 "src/google/protobuf/wire_format.h", |
312 "src/google/protobuf/wrappers.pb.cc", | 307 "src/google/protobuf/wrappers.pb.cc", |
313 "src/google/protobuf/wrappers.pb.h", | 308 "src/google/protobuf/wrappers.pb.h", |
314 ] | 309 ] |
315 | 310 |
316 deps = [ | 311 deps = [ |
317 "//build/config/sanitizers:deps", | 312 "//build/config/sanitizers:deps", |
318 ] | 313 ] |
319 | 314 |
320 if (is_android) { | |
321 libs = [ "log" ] # Used by src/google/protobuf/stubs/common.cc | |
322 } | |
323 | |
324 configs -= [ "//build/config/compiler:chromium_code" ] | 315 configs -= [ "//build/config/compiler:chromium_code" ] |
325 configs += [ | 316 configs += [ |
326 "//build/config/compiler:no_chromium_code", | 317 "//build/config/compiler:no_chromium_code", |
327 | 318 |
328 # Must be after no_chromium_code for warning flags to be ordered | 319 # Must be after no_chromium_code for warning flags to be ordered |
329 # correctly. | 320 # correctly. |
330 ":protobuf_warnings", | 321 ":protobuf_warnings", |
331 ] | 322 ] |
332 if (is_win) { | 323 if (is_win) { |
333 configs -= [ "//build/config/win:lean_and_mean" ] | 324 configs -= [ "//build/config/win:lean_and_mean" ] |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 "src/google/protobuf/compiler/java/java_message_builder_lite.cc", | 445 "src/google/protobuf/compiler/java/java_message_builder_lite.cc", |
455 "src/google/protobuf/compiler/java/java_message_builder_lite.h", | 446 "src/google/protobuf/compiler/java/java_message_builder_lite.h", |
456 "src/google/protobuf/compiler/java/java_message_field.cc", | 447 "src/google/protobuf/compiler/java/java_message_field.cc", |
457 "src/google/protobuf/compiler/java/java_message_field.h", | 448 "src/google/protobuf/compiler/java/java_message_field.h", |
458 "src/google/protobuf/compiler/java/java_message_field_lite.cc", | 449 "src/google/protobuf/compiler/java/java_message_field_lite.cc", |
459 "src/google/protobuf/compiler/java/java_message_field_lite.h", | 450 "src/google/protobuf/compiler/java/java_message_field_lite.h", |
460 "src/google/protobuf/compiler/java/java_message_lite.cc", | 451 "src/google/protobuf/compiler/java/java_message_lite.cc", |
461 "src/google/protobuf/compiler/java/java_message_lite.h", | 452 "src/google/protobuf/compiler/java/java_message_lite.h", |
462 "src/google/protobuf/compiler/java/java_name_resolver.cc", | 453 "src/google/protobuf/compiler/java/java_name_resolver.cc", |
463 "src/google/protobuf/compiler/java/java_name_resolver.h", | 454 "src/google/protobuf/compiler/java/java_name_resolver.h", |
464 "src/google/protobuf/compiler/java/java_options.h", | |
465 "src/google/protobuf/compiler/java/java_primitive_field.cc", | 455 "src/google/protobuf/compiler/java/java_primitive_field.cc", |
466 "src/google/protobuf/compiler/java/java_primitive_field.h", | 456 "src/google/protobuf/compiler/java/java_primitive_field.h", |
467 "src/google/protobuf/compiler/java/java_primitive_field_lite.cc", | 457 "src/google/protobuf/compiler/java/java_primitive_field_lite.cc", |
468 "src/google/protobuf/compiler/java/java_primitive_field_lite.h", | 458 "src/google/protobuf/compiler/java/java_primitive_field_lite.h", |
469 "src/google/protobuf/compiler/java/java_service.cc", | 459 "src/google/protobuf/compiler/java/java_service.cc", |
470 "src/google/protobuf/compiler/java/java_service.h", | 460 "src/google/protobuf/compiler/java/java_service.h", |
471 "src/google/protobuf/compiler/java/java_shared_code_generator.cc", | 461 "src/google/protobuf/compiler/java/java_shared_code_generator.cc", |
472 "src/google/protobuf/compiler/java/java_shared_code_generator.h", | 462 "src/google/protobuf/compiler/java/java_shared_code_generator.h", |
473 "src/google/protobuf/compiler/java/java_string_field.cc", | 463 "src/google/protobuf/compiler/java/java_string_field.cc", |
474 "src/google/protobuf/compiler/java/java_string_field.h", | 464 "src/google/protobuf/compiler/java/java_string_field.h", |
(...skipping 14 matching lines...) Expand all Loading... |
489 "src/google/protobuf/compiler/javanano/javanano_helpers.cc", | 479 "src/google/protobuf/compiler/javanano/javanano_helpers.cc", |
490 "src/google/protobuf/compiler/javanano/javanano_helpers.h", | 480 "src/google/protobuf/compiler/javanano/javanano_helpers.h", |
491 "src/google/protobuf/compiler/javanano/javanano_map_field.cc", | 481 "src/google/protobuf/compiler/javanano/javanano_map_field.cc", |
492 "src/google/protobuf/compiler/javanano/javanano_map_field.h", | 482 "src/google/protobuf/compiler/javanano/javanano_map_field.h", |
493 "src/google/protobuf/compiler/javanano/javanano_message.cc", | 483 "src/google/protobuf/compiler/javanano/javanano_message.cc", |
494 "src/google/protobuf/compiler/javanano/javanano_message.h", | 484 "src/google/protobuf/compiler/javanano/javanano_message.h", |
495 "src/google/protobuf/compiler/javanano/javanano_message_field.cc", | 485 "src/google/protobuf/compiler/javanano/javanano_message_field.cc", |
496 "src/google/protobuf/compiler/javanano/javanano_message_field.h", | 486 "src/google/protobuf/compiler/javanano/javanano_message_field.h", |
497 "src/google/protobuf/compiler/javanano/javanano_primitive_field.cc", | 487 "src/google/protobuf/compiler/javanano/javanano_primitive_field.cc", |
498 "src/google/protobuf/compiler/javanano/javanano_primitive_field.h", | 488 "src/google/protobuf/compiler/javanano/javanano_primitive_field.h", |
499 "src/google/protobuf/compiler/js/embed.cc", | |
500 "src/google/protobuf/compiler/js/js_generator.cc", | 489 "src/google/protobuf/compiler/js/js_generator.cc", |
501 "src/google/protobuf/compiler/js/js_generator.h", | 490 "src/google/protobuf/compiler/js/js_generator.h", |
502 "src/google/protobuf/compiler/js/well_known_types_embed.cc", | |
503 "src/google/protobuf/compiler/js/well_known_types_embed.h", | |
504 "src/google/protobuf/compiler/objectivec/objectivec_enum.cc", | 491 "src/google/protobuf/compiler/objectivec/objectivec_enum.cc", |
505 "src/google/protobuf/compiler/objectivec/objectivec_enum.h", | 492 "src/google/protobuf/compiler/objectivec/objectivec_enum.h", |
506 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc", | 493 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc", |
507 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.h", | 494 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.h", |
508 "src/google/protobuf/compiler/objectivec/objectivec_extension.cc", | 495 "src/google/protobuf/compiler/objectivec/objectivec_extension.cc", |
509 "src/google/protobuf/compiler/objectivec/objectivec_extension.h", | 496 "src/google/protobuf/compiler/objectivec/objectivec_extension.h", |
510 "src/google/protobuf/compiler/objectivec/objectivec_field.cc", | 497 "src/google/protobuf/compiler/objectivec/objectivec_field.cc", |
511 "src/google/protobuf/compiler/objectivec/objectivec_field.h", | 498 "src/google/protobuf/compiler/objectivec/objectivec_field.h", |
512 "src/google/protobuf/compiler/objectivec/objectivec_file.cc", | 499 "src/google/protobuf/compiler/objectivec/objectivec_file.cc", |
513 "src/google/protobuf/compiler/objectivec/objectivec_file.h", | 500 "src/google/protobuf/compiler/objectivec/objectivec_file.h", |
514 "src/google/protobuf/compiler/objectivec/objectivec_generator.cc", | 501 "src/google/protobuf/compiler/objectivec/objectivec_generator.cc", |
515 "src/google/protobuf/compiler/objectivec/objectivec_generator.h", | 502 "src/google/protobuf/compiler/objectivec/objectivec_generator.h", |
516 "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc", | 503 "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc", |
517 "src/google/protobuf/compiler/objectivec/objectivec_helpers.h", | 504 "src/google/protobuf/compiler/objectivec/objectivec_helpers.h", |
518 "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc", | 505 "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc", |
519 "src/google/protobuf/compiler/objectivec/objectivec_map_field.h", | 506 "src/google/protobuf/compiler/objectivec/objectivec_map_field.h", |
520 "src/google/protobuf/compiler/objectivec/objectivec_message.cc", | 507 "src/google/protobuf/compiler/objectivec/objectivec_message.cc", |
521 "src/google/protobuf/compiler/objectivec/objectivec_message.h", | 508 "src/google/protobuf/compiler/objectivec/objectivec_message.h", |
522 "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc", | 509 "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc", |
523 "src/google/protobuf/compiler/objectivec/objectivec_message_field.h", | 510 "src/google/protobuf/compiler/objectivec/objectivec_message_field.h", |
524 "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc", | 511 "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc", |
525 "src/google/protobuf/compiler/objectivec/objectivec_oneof.h", | 512 "src/google/protobuf/compiler/objectivec/objectivec_oneof.h", |
526 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc", | 513 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc", |
527 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.h", | 514 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.h", |
528 "src/google/protobuf/compiler/php/php_generator.cc", | |
529 "src/google/protobuf/compiler/php/php_generator.h", | |
530 "src/google/protobuf/compiler/plugin.cc", | 515 "src/google/protobuf/compiler/plugin.cc", |
531 "src/google/protobuf/compiler/plugin.h", | 516 "src/google/protobuf/compiler/plugin.h", |
532 "src/google/protobuf/compiler/plugin.pb.cc", | 517 "src/google/protobuf/compiler/plugin.pb.cc", |
533 "src/google/protobuf/compiler/plugin.pb.h", | 518 "src/google/protobuf/compiler/plugin.pb.h", |
534 "src/google/protobuf/compiler/python/python_generator.cc", | 519 "src/google/protobuf/compiler/python/python_generator.cc", |
535 "src/google/protobuf/compiler/python/python_generator.h", | 520 "src/google/protobuf/compiler/python/python_generator.h", |
536 "src/google/protobuf/compiler/ruby/ruby_generator.cc", | 521 "src/google/protobuf/compiler/ruby/ruby_generator.cc", |
537 "src/google/protobuf/compiler/ruby/ruby_generator.h", | 522 "src/google/protobuf/compiler/ruby/ruby_generator.h", |
538 "src/google/protobuf/compiler/subprocess.cc", | 523 "src/google/protobuf/compiler/subprocess.cc", |
539 "src/google/protobuf/compiler/subprocess.h", | 524 "src/google/protobuf/compiler/subprocess.h", |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 ":copy_google_protobuf_internal", | 643 ":copy_google_protobuf_internal", |
659 ":copy_six", | 644 ":copy_six", |
660 ] | 645 ] |
661 | 646 |
662 # Targets that depend on this should depend on the copied data files. | 647 # Targets that depend on this should depend on the copied data files. |
663 data = get_target_outputs(":copy_google") | 648 data = get_target_outputs(":copy_google") |
664 data += get_target_outputs(":copy_six") | 649 data += get_target_outputs(":copy_six") |
665 data += get_target_outputs(":copy_google_protobuf") | 650 data += get_target_outputs(":copy_google_protobuf") |
666 data += get_target_outputs(":copy_google_protobuf_internal") | 651 data += get_target_outputs(":copy_google_protobuf_internal") |
667 } | 652 } |
OLD | NEW |