| 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", |
| 55 "src/google/protobuf/map.h", | 56 "src/google/protobuf/map.h", |
| 56 "src/google/protobuf/map_entry_lite.h", | 57 "src/google/protobuf/map_entry_lite.h", |
| 57 "src/google/protobuf/map_field_lite.h", | 58 "src/google/protobuf/map_field_lite.h", |
| 58 "src/google/protobuf/map_type_handler.h", | 59 "src/google/protobuf/map_type_handler.h", |
| 59 "src/google/protobuf/message_lite.cc", | 60 "src/google/protobuf/message_lite.cc", |
| 60 "src/google/protobuf/message_lite.h", | 61 "src/google/protobuf/message_lite.h", |
| 61 "src/google/protobuf/repeated_field.cc", | 62 "src/google/protobuf/repeated_field.cc", |
| 62 "src/google/protobuf/repeated_field.h", | 63 "src/google/protobuf/repeated_field.h", |
| 63 "src/google/protobuf/stubs/atomicops.h", | 64 "src/google/protobuf/stubs/atomicops.h", |
| 64 "src/google/protobuf/stubs/atomicops_internals_arm64_gcc.h", | 65 "src/google/protobuf/stubs/atomicops_internals_arm64_gcc.h", |
| 65 "src/google/protobuf/stubs/atomicops_internals_arm_gcc.h", | 66 "src/google/protobuf/stubs/atomicops_internals_arm_gcc.h", |
| 66 "src/google/protobuf/stubs/atomicops_internals_arm_qnx.h", | 67 "src/google/protobuf/stubs/atomicops_internals_arm_qnx.h", |
| 67 "src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h", | 68 "src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h", |
| 69 "src/google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h", |
| 68 "src/google/protobuf/stubs/atomicops_internals_generic_gcc.h", | 70 "src/google/protobuf/stubs/atomicops_internals_generic_gcc.h", |
| 69 "src/google/protobuf/stubs/atomicops_internals_macosx.h", | 71 "src/google/protobuf/stubs/atomicops_internals_macosx.h", |
| 70 "src/google/protobuf/stubs/atomicops_internals_mips_gcc.h", | 72 "src/google/protobuf/stubs/atomicops_internals_mips_gcc.h", |
| 71 "src/google/protobuf/stubs/atomicops_internals_pnacl.h", | |
| 72 "src/google/protobuf/stubs/atomicops_internals_power.h", | 73 "src/google/protobuf/stubs/atomicops_internals_power.h", |
| 73 "src/google/protobuf/stubs/atomicops_internals_ppc_gcc.h", | 74 "src/google/protobuf/stubs/atomicops_internals_ppc_gcc.h", |
| 74 "src/google/protobuf/stubs/atomicops_internals_solaris.h", | 75 "src/google/protobuf/stubs/atomicops_internals_solaris.h", |
| 75 "src/google/protobuf/stubs/atomicops_internals_tsan.h", | 76 "src/google/protobuf/stubs/atomicops_internals_tsan.h", |
| 76 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", | 77 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", |
| 77 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.h", | 78 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.h", |
| 78 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc", | 79 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc", |
| 79 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.h", | 80 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.h", |
| 80 "src/google/protobuf/stubs/atomic_sequence_num.h", | 81 "src/google/protobuf/stubs/atomic_sequence_num.h", |
| 81 "src/google/protobuf/stubs/bytestream.cc", | 82 "src/google/protobuf/stubs/bytestream.cc", |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 ":protobuf_config", | 157 ":protobuf_config", |
| 157 | 158 |
| 158 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 159 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 159 "//build/config/compiler:no_size_t_to_int_warning", | 160 "//build/config/compiler:no_size_t_to_int_warning", |
| 160 ] | 161 ] |
| 161 | 162 |
| 162 deps = [ | 163 deps = [ |
| 163 "//build/config/sanitizers:deps", | 164 "//build/config/sanitizers:deps", |
| 164 ] | 165 ] |
| 165 | 166 |
| 167 if (is_android) { |
| 168 libs = [ "log" ] # Used by src/google/protobuf/stubs/common.cc |
| 169 } |
| 170 |
| 166 cflags = protobuf_lite_cflags | 171 cflags = protobuf_lite_cflags |
| 167 | 172 |
| 168 # Required for component builds. See http://crbug.com/172800. | 173 # Required for component builds. See http://crbug.com/172800. |
| 169 if (is_component_build) { | 174 if (is_component_build) { |
| 170 public_configs += [ ":protobuf_use_dlls" ] | 175 public_configs += [ ":protobuf_use_dlls" ] |
| 171 defines = [ "LIBPROTOBUF_EXPORTS" ] | 176 defines = [ "LIBPROTOBUF_EXPORTS" ] |
| 172 } | 177 } |
| 173 } | 178 } |
| 174 | 179 |
| 175 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't | 180 # 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... |
| 305 "src/google/protobuf/wire_format.cc", | 310 "src/google/protobuf/wire_format.cc", |
| 306 "src/google/protobuf/wire_format.h", | 311 "src/google/protobuf/wire_format.h", |
| 307 "src/google/protobuf/wrappers.pb.cc", | 312 "src/google/protobuf/wrappers.pb.cc", |
| 308 "src/google/protobuf/wrappers.pb.h", | 313 "src/google/protobuf/wrappers.pb.h", |
| 309 ] | 314 ] |
| 310 | 315 |
| 311 deps = [ | 316 deps = [ |
| 312 "//build/config/sanitizers:deps", | 317 "//build/config/sanitizers:deps", |
| 313 ] | 318 ] |
| 314 | 319 |
| 320 if (is_android) { |
| 321 libs = [ "log" ] # Used by src/google/protobuf/stubs/common.cc |
| 322 } |
| 323 |
| 315 configs -= [ "//build/config/compiler:chromium_code" ] | 324 configs -= [ "//build/config/compiler:chromium_code" ] |
| 316 configs += [ | 325 configs += [ |
| 317 "//build/config/compiler:no_chromium_code", | 326 "//build/config/compiler:no_chromium_code", |
| 318 | 327 |
| 319 # Must be after no_chromium_code for warning flags to be ordered | 328 # Must be after no_chromium_code for warning flags to be ordered |
| 320 # correctly. | 329 # correctly. |
| 321 ":protobuf_warnings", | 330 ":protobuf_warnings", |
| 322 ] | 331 ] |
| 323 if (is_win) { | 332 if (is_win) { |
| 324 configs -= [ "//build/config/win:lean_and_mean" ] | 333 configs -= [ "//build/config/win:lean_and_mean" ] |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 "src/google/protobuf/compiler/java/java_message_builder_lite.cc", | 454 "src/google/protobuf/compiler/java/java_message_builder_lite.cc", |
| 446 "src/google/protobuf/compiler/java/java_message_builder_lite.h", | 455 "src/google/protobuf/compiler/java/java_message_builder_lite.h", |
| 447 "src/google/protobuf/compiler/java/java_message_field.cc", | 456 "src/google/protobuf/compiler/java/java_message_field.cc", |
| 448 "src/google/protobuf/compiler/java/java_message_field.h", | 457 "src/google/protobuf/compiler/java/java_message_field.h", |
| 449 "src/google/protobuf/compiler/java/java_message_field_lite.cc", | 458 "src/google/protobuf/compiler/java/java_message_field_lite.cc", |
| 450 "src/google/protobuf/compiler/java/java_message_field_lite.h", | 459 "src/google/protobuf/compiler/java/java_message_field_lite.h", |
| 451 "src/google/protobuf/compiler/java/java_message_lite.cc", | 460 "src/google/protobuf/compiler/java/java_message_lite.cc", |
| 452 "src/google/protobuf/compiler/java/java_message_lite.h", | 461 "src/google/protobuf/compiler/java/java_message_lite.h", |
| 453 "src/google/protobuf/compiler/java/java_name_resolver.cc", | 462 "src/google/protobuf/compiler/java/java_name_resolver.cc", |
| 454 "src/google/protobuf/compiler/java/java_name_resolver.h", | 463 "src/google/protobuf/compiler/java/java_name_resolver.h", |
| 464 "src/google/protobuf/compiler/java/java_options.h", |
| 455 "src/google/protobuf/compiler/java/java_primitive_field.cc", | 465 "src/google/protobuf/compiler/java/java_primitive_field.cc", |
| 456 "src/google/protobuf/compiler/java/java_primitive_field.h", | 466 "src/google/protobuf/compiler/java/java_primitive_field.h", |
| 457 "src/google/protobuf/compiler/java/java_primitive_field_lite.cc", | 467 "src/google/protobuf/compiler/java/java_primitive_field_lite.cc", |
| 458 "src/google/protobuf/compiler/java/java_primitive_field_lite.h", | 468 "src/google/protobuf/compiler/java/java_primitive_field_lite.h", |
| 459 "src/google/protobuf/compiler/java/java_service.cc", | 469 "src/google/protobuf/compiler/java/java_service.cc", |
| 460 "src/google/protobuf/compiler/java/java_service.h", | 470 "src/google/protobuf/compiler/java/java_service.h", |
| 461 "src/google/protobuf/compiler/java/java_shared_code_generator.cc", | 471 "src/google/protobuf/compiler/java/java_shared_code_generator.cc", |
| 462 "src/google/protobuf/compiler/java/java_shared_code_generator.h", | 472 "src/google/protobuf/compiler/java/java_shared_code_generator.h", |
| 463 "src/google/protobuf/compiler/java/java_string_field.cc", | 473 "src/google/protobuf/compiler/java/java_string_field.cc", |
| 464 "src/google/protobuf/compiler/java/java_string_field.h", | 474 "src/google/protobuf/compiler/java/java_string_field.h", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 479 "src/google/protobuf/compiler/javanano/javanano_helpers.cc", | 489 "src/google/protobuf/compiler/javanano/javanano_helpers.cc", |
| 480 "src/google/protobuf/compiler/javanano/javanano_helpers.h", | 490 "src/google/protobuf/compiler/javanano/javanano_helpers.h", |
| 481 "src/google/protobuf/compiler/javanano/javanano_map_field.cc", | 491 "src/google/protobuf/compiler/javanano/javanano_map_field.cc", |
| 482 "src/google/protobuf/compiler/javanano/javanano_map_field.h", | 492 "src/google/protobuf/compiler/javanano/javanano_map_field.h", |
| 483 "src/google/protobuf/compiler/javanano/javanano_message.cc", | 493 "src/google/protobuf/compiler/javanano/javanano_message.cc", |
| 484 "src/google/protobuf/compiler/javanano/javanano_message.h", | 494 "src/google/protobuf/compiler/javanano/javanano_message.h", |
| 485 "src/google/protobuf/compiler/javanano/javanano_message_field.cc", | 495 "src/google/protobuf/compiler/javanano/javanano_message_field.cc", |
| 486 "src/google/protobuf/compiler/javanano/javanano_message_field.h", | 496 "src/google/protobuf/compiler/javanano/javanano_message_field.h", |
| 487 "src/google/protobuf/compiler/javanano/javanano_primitive_field.cc", | 497 "src/google/protobuf/compiler/javanano/javanano_primitive_field.cc", |
| 488 "src/google/protobuf/compiler/javanano/javanano_primitive_field.h", | 498 "src/google/protobuf/compiler/javanano/javanano_primitive_field.h", |
| 499 "src/google/protobuf/compiler/js/embed.cc", |
| 489 "src/google/protobuf/compiler/js/js_generator.cc", | 500 "src/google/protobuf/compiler/js/js_generator.cc", |
| 490 "src/google/protobuf/compiler/js/js_generator.h", | 501 "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", |
| 491 "src/google/protobuf/compiler/objectivec/objectivec_enum.cc", | 504 "src/google/protobuf/compiler/objectivec/objectivec_enum.cc", |
| 492 "src/google/protobuf/compiler/objectivec/objectivec_enum.h", | 505 "src/google/protobuf/compiler/objectivec/objectivec_enum.h", |
| 493 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc", | 506 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc", |
| 494 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.h", | 507 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.h", |
| 495 "src/google/protobuf/compiler/objectivec/objectivec_extension.cc", | 508 "src/google/protobuf/compiler/objectivec/objectivec_extension.cc", |
| 496 "src/google/protobuf/compiler/objectivec/objectivec_extension.h", | 509 "src/google/protobuf/compiler/objectivec/objectivec_extension.h", |
| 497 "src/google/protobuf/compiler/objectivec/objectivec_field.cc", | 510 "src/google/protobuf/compiler/objectivec/objectivec_field.cc", |
| 498 "src/google/protobuf/compiler/objectivec/objectivec_field.h", | 511 "src/google/protobuf/compiler/objectivec/objectivec_field.h", |
| 499 "src/google/protobuf/compiler/objectivec/objectivec_file.cc", | 512 "src/google/protobuf/compiler/objectivec/objectivec_file.cc", |
| 500 "src/google/protobuf/compiler/objectivec/objectivec_file.h", | 513 "src/google/protobuf/compiler/objectivec/objectivec_file.h", |
| 501 "src/google/protobuf/compiler/objectivec/objectivec_generator.cc", | 514 "src/google/protobuf/compiler/objectivec/objectivec_generator.cc", |
| 502 "src/google/protobuf/compiler/objectivec/objectivec_generator.h", | 515 "src/google/protobuf/compiler/objectivec/objectivec_generator.h", |
| 503 "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc", | 516 "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc", |
| 504 "src/google/protobuf/compiler/objectivec/objectivec_helpers.h", | 517 "src/google/protobuf/compiler/objectivec/objectivec_helpers.h", |
| 505 "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc", | 518 "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc", |
| 506 "src/google/protobuf/compiler/objectivec/objectivec_map_field.h", | 519 "src/google/protobuf/compiler/objectivec/objectivec_map_field.h", |
| 507 "src/google/protobuf/compiler/objectivec/objectivec_message.cc", | 520 "src/google/protobuf/compiler/objectivec/objectivec_message.cc", |
| 508 "src/google/protobuf/compiler/objectivec/objectivec_message.h", | 521 "src/google/protobuf/compiler/objectivec/objectivec_message.h", |
| 509 "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc", | 522 "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc", |
| 510 "src/google/protobuf/compiler/objectivec/objectivec_message_field.h", | 523 "src/google/protobuf/compiler/objectivec/objectivec_message_field.h", |
| 511 "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc", | 524 "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc", |
| 512 "src/google/protobuf/compiler/objectivec/objectivec_oneof.h", | 525 "src/google/protobuf/compiler/objectivec/objectivec_oneof.h", |
| 513 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc", | 526 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc", |
| 514 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.h", | 527 "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", |
| 515 "src/google/protobuf/compiler/plugin.cc", | 530 "src/google/protobuf/compiler/plugin.cc", |
| 516 "src/google/protobuf/compiler/plugin.h", | 531 "src/google/protobuf/compiler/plugin.h", |
| 517 "src/google/protobuf/compiler/plugin.pb.cc", | 532 "src/google/protobuf/compiler/plugin.pb.cc", |
| 518 "src/google/protobuf/compiler/plugin.pb.h", | 533 "src/google/protobuf/compiler/plugin.pb.h", |
| 519 "src/google/protobuf/compiler/python/python_generator.cc", | 534 "src/google/protobuf/compiler/python/python_generator.cc", |
| 520 "src/google/protobuf/compiler/python/python_generator.h", | 535 "src/google/protobuf/compiler/python/python_generator.h", |
| 521 "src/google/protobuf/compiler/ruby/ruby_generator.cc", | 536 "src/google/protobuf/compiler/ruby/ruby_generator.cc", |
| 522 "src/google/protobuf/compiler/ruby/ruby_generator.h", | 537 "src/google/protobuf/compiler/ruby/ruby_generator.h", |
| 523 "src/google/protobuf/compiler/subprocess.cc", | 538 "src/google/protobuf/compiler/subprocess.cc", |
| 524 "src/google/protobuf/compiler/subprocess.h", | 539 "src/google/protobuf/compiler/subprocess.h", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 573 |
| 559 cflags = protobuf_lite_cflags | 574 cflags = protobuf_lite_cflags |
| 560 | 575 |
| 561 deps = [ | 576 deps = [ |
| 562 ":protoc_lib", | 577 ":protoc_lib", |
| 563 | 578 |
| 564 # Default manifest on Windows (a no-op elsewhere). | 579 # Default manifest on Windows (a no-op elsewhere). |
| 565 "//build/win:default_exe_manifest", | 580 "//build/win:default_exe_manifest", |
| 566 ] | 581 ] |
| 567 } | 582 } |
| 583 |
| 584 executable("js_embed") { |
| 585 sources = [ |
| 586 "src/google/protobuf/compiler/js/embed.cc", |
| 587 ] |
| 588 |
| 589 configs -= [ "//build/config/compiler:chromium_code" ] |
| 590 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 591 } |
| 568 } | 592 } |
| 569 | 593 |
| 570 google_python_dir = "$root_out_dir/pyproto/google" | 594 google_python_dir = "$root_out_dir/pyproto/google" |
| 571 | 595 |
| 572 copy("copy_google") { | 596 copy("copy_google") { |
| 573 sources = [ | 597 sources = [ |
| 574 "__init__.py", | 598 "__init__.py", |
| 575 ] | 599 ] |
| 576 outputs = [ | 600 outputs = [ |
| 577 "$google_python_dir/{{source_file_part}}", | 601 "$google_python_dir/{{source_file_part}}", |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 ":copy_google_protobuf_internal", | 667 ":copy_google_protobuf_internal", |
| 644 ":copy_six", | 668 ":copy_six", |
| 645 ] | 669 ] |
| 646 | 670 |
| 647 # Targets that depend on this should depend on the copied data files. | 671 # Targets that depend on this should depend on the copied data files. |
| 648 data = get_target_outputs(":copy_google") | 672 data = get_target_outputs(":copy_google") |
| 649 data += get_target_outputs(":copy_six") | 673 data += get_target_outputs(":copy_six") |
| 650 data += get_target_outputs(":copy_google_protobuf") | 674 data += get_target_outputs(":copy_google_protobuf") |
| 651 data += get_target_outputs(":copy_google_protobuf_internal") | 675 data += get_target_outputs(":copy_google_protobuf_internal") |
| 652 } | 676 } |
| OLD | NEW |