| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |  | 
| 2 # Use of this source code is governed by a BSD-style license that can be |  | 
| 3 # found in the LICENSE file. |  | 
| 4 |  | 
| 5 { |  | 
| 6   'conditions': [ |  | 
| 7     ['use_system_protobuf==0', { |  | 
| 8       'conditions': [ |  | 
| 9         ['OS=="win"', { |  | 
| 10           'target_defaults': { |  | 
| 11             'msvs_disabled_warnings': [ |  | 
| 12               4018,  # signed/unsigned mismatch in comparison |  | 
| 13               4065,  # switch statement contains 'default' but no 'case' labels |  | 
| 14               4146,  # unary minus operator applied to unsigned type |  | 
| 15               4244,  # implicit conversion, possible loss of data |  | 
| 16               4267,  # size_t to int truncation |  | 
| 17               4291,  # no matching operator delete for a placement new |  | 
| 18               4305,  # double to float truncation |  | 
| 19               4355,  # 'this' used in base member initializer list |  | 
| 20               4506,  # no definition for inline function (protobuf issue #240) |  | 
| 21               4715,  # not all control paths return a value (fixed in trunk) |  | 
| 22             ], |  | 
| 23             'defines!': [ |  | 
| 24               'WIN32_LEAN_AND_MEAN',  # Protobuf defines this itself. |  | 
| 25             ], |  | 
| 26           }, |  | 
| 27         }], |  | 
| 28       ], |  | 
| 29       'targets': [ |  | 
| 30         # The "lite" lib is about 1/7th the size of the heavy lib, |  | 
| 31         # but it doesn't support some of the more exotic features of |  | 
| 32         # protobufs, like reflection.  To generate C++ code that can link |  | 
| 33         # against the lite version of the library, add the option line: |  | 
| 34         # |  | 
| 35         #   option optimize_for = LITE_RUNTIME; |  | 
| 36         # |  | 
| 37         # to your .proto file. |  | 
| 38         { |  | 
| 39           'target_name': 'protobuf_lite', |  | 
| 40           'type': '<(component)', |  | 
| 41           'toolsets': ['host', 'target'], |  | 
| 42           'includes': [ |  | 
| 43             'protobuf_lite.gypi', |  | 
| 44           ], |  | 
| 45           'variables': { |  | 
| 46             'clang_warning_flags': [ |  | 
| 47               # protobuf-3 contains a few functions that are unused. |  | 
| 48               '-Wno-unused-function', |  | 
| 49             ], |  | 
| 50           }, |  | 
| 51           # Required for component builds. See http://crbug.com/172800. |  | 
| 52           'defines': [ |  | 
| 53             'LIBPROTOBUF_EXPORTS', |  | 
| 54             'PROTOBUF_USE_DLLS', |  | 
| 55           ], |  | 
| 56           'direct_dependent_settings': { |  | 
| 57             'defines': [ |  | 
| 58               'PROTOBUF_USE_DLLS', |  | 
| 59             ], |  | 
| 60           }, |  | 
| 61         }, |  | 
| 62         # This is the full, heavy protobuf lib that's needed for c++ .protos |  | 
| 63         # that don't specify the LITE_RUNTIME option.  The protocol |  | 
| 64         # compiler itself (protoc) falls into that category. |  | 
| 65         # |  | 
| 66         # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE  --agl |  | 
| 67         { |  | 
| 68           'target_name': 'protobuf_full_do_not_use', |  | 
| 69           'type': 'static_library', |  | 
| 70           'toolsets': ['host','target'], |  | 
| 71           'includes': [ |  | 
| 72             'protobuf_lite.gypi', |  | 
| 73           ], |  | 
| 74           'variables': { |  | 
| 75             'clang_warning_flags': [ |  | 
| 76               # protobuf-3 contains a few functions that are unused. |  | 
| 77               '-Wno-unused-function', |  | 
| 78             ], |  | 
| 79           }, |  | 
| 80           'sources': [ |  | 
| 81             'src/google/protobuf/any.cc', |  | 
| 82             'src/google/protobuf/any.h', |  | 
| 83             'src/google/protobuf/any.pb.cc', |  | 
| 84             'src/google/protobuf/any.pb.h', |  | 
| 85             'src/google/protobuf/api.pb.cc', |  | 
| 86             'src/google/protobuf/api.pb.h', |  | 
| 87             'src/google/protobuf/compiler/importer.cc', |  | 
| 88             'src/google/protobuf/compiler/importer.h', |  | 
| 89             'src/google/protobuf/compiler/parser.cc', |  | 
| 90             'src/google/protobuf/compiler/parser.h', |  | 
| 91             'src/google/protobuf/descriptor.cc', |  | 
| 92             'src/google/protobuf/descriptor.h', |  | 
| 93             'src/google/protobuf/descriptor.pb.cc', |  | 
| 94             'src/google/protobuf/descriptor.pb.h', |  | 
| 95             'src/google/protobuf/descriptor_database.cc', |  | 
| 96             'src/google/protobuf/descriptor_database.h', |  | 
| 97             'src/google/protobuf/duration.pb.cc', |  | 
| 98             'src/google/protobuf/duration.pb.h', |  | 
| 99             'src/google/protobuf/dynamic_message.cc', |  | 
| 100             'src/google/protobuf/dynamic_message.h', |  | 
| 101             'src/google/protobuf/empty.pb.cc', |  | 
| 102             'src/google/protobuf/empty.pb.h', |  | 
| 103             'src/google/protobuf/extension_set_heavy.cc', |  | 
| 104             'src/google/protobuf/field_mask.pb.cc', |  | 
| 105             'src/google/protobuf/field_mask.pb.h', |  | 
| 106             'src/google/protobuf/generated_enum_reflection.h', |  | 
| 107             'src/google/protobuf/generated_enum_util.h', |  | 
| 108             'src/google/protobuf/generated_message_reflection.cc', |  | 
| 109             'src/google/protobuf/generated_message_reflection.h', |  | 
| 110 |  | 
| 111             # gzip_stream.cc pulls in zlib, but it's not actually used by |  | 
| 112             # protoc, just by test code, so instead of compiling zlib for the |  | 
| 113             # host, let's just exclude this. |  | 
| 114             # 'src/google/protobuf/io/gzip_stream.cc', |  | 
| 115             # 'src/google/protobuf/io/gzip_stream.h', |  | 
| 116 |  | 
| 117             'src/google/protobuf/io/printer.cc', |  | 
| 118             'src/google/protobuf/io/printer.h', |  | 
| 119             'src/google/protobuf/io/strtod.cc', |  | 
| 120             'src/google/protobuf/io/strtod.h', |  | 
| 121             'src/google/protobuf/io/tokenizer.cc', |  | 
| 122             'src/google/protobuf/io/tokenizer.h', |  | 
| 123             'src/google/protobuf/io/zero_copy_stream_impl.cc', |  | 
| 124             'src/google/protobuf/io/zero_copy_stream_impl.h', |  | 
| 125             'src/google/protobuf/map_entry.h', |  | 
| 126             'src/google/protobuf/map_field.cc', |  | 
| 127             'src/google/protobuf/map_field.h', |  | 
| 128             'src/google/protobuf/map_field_inl.h', |  | 
| 129             'src/google/protobuf/message.cc', |  | 
| 130             'src/google/protobuf/message.h', |  | 
| 131             'src/google/protobuf/metadata.h', |  | 
| 132             'src/google/protobuf/reflection.h', |  | 
| 133             'src/google/protobuf/reflection_internal.h', |  | 
| 134             'src/google/protobuf/reflection_ops.cc', |  | 
| 135             'src/google/protobuf/reflection_ops.h', |  | 
| 136             'src/google/protobuf/service.cc', |  | 
| 137             'src/google/protobuf/service.h', |  | 
| 138             'src/google/protobuf/source_context.pb.cc', |  | 
| 139             'src/google/protobuf/source_context.pb.h', |  | 
| 140             'src/google/protobuf/struct.pb.cc', |  | 
| 141             'src/google/protobuf/struct.pb.h', |  | 
| 142             'src/google/protobuf/stubs/mathutil.h', |  | 
| 143             'src/google/protobuf/stubs/mathlimits.cc', |  | 
| 144             'src/google/protobuf/stubs/mathlimits.h', |  | 
| 145             'src/google/protobuf/stubs/substitute.cc', |  | 
| 146             'src/google/protobuf/stubs/substitute.h', |  | 
| 147             'src/google/protobuf/stubs/singleton$.h', |  | 
| 148             'src/google/protobuf/text_format.cc', |  | 
| 149             'src/google/protobuf/text_format.h', |  | 
| 150             'src/google/protobuf/timestamp.pb.cc', |  | 
| 151             'src/google/protobuf/timestamp.pb.h', |  | 
| 152             'src/google/protobuf/type.pb.cc', |  | 
| 153             'src/google/protobuf/type.pb.h', |  | 
| 154             'src/google/protobuf/unknown_field_set.cc', |  | 
| 155             'src/google/protobuf/unknown_field_set.h', |  | 
| 156             'src/google/protobuf/util/field_comparator.cc', |  | 
| 157             'src/google/protobuf/util/field_comparator.h', |  | 
| 158             'src/google/protobuf/util/field_mask_util.cc', |  | 
| 159             'src/google/protobuf/util/field_mask_util.h', |  | 
| 160             'src/google/protobuf/util/internal/constants.h', |  | 
| 161             'src/google/protobuf/util/internal/datapiece.cc', |  | 
| 162             'src/google/protobuf/util/internal/datapiece.h', |  | 
| 163             'src/google/protobuf/util/internal/default_value_objectwriter.cc', |  | 
| 164             'src/google/protobuf/util/internal/default_value_objectwriter.h', |  | 
| 165             'src/google/protobuf/util/internal/error_listener.cc', |  | 
| 166             'src/google/protobuf/util/internal/error_listener.h', |  | 
| 167             'src/google/protobuf/util/internal/field_mask_utility.cc', |  | 
| 168             'src/google/protobuf/util/internal/field_mask_utility.h', |  | 
| 169             'src/google/protobuf/util/internal/json_escaping.cc', |  | 
| 170             'src/google/protobuf/util/internal/json_escaping.h', |  | 
| 171             'src/google/protobuf/util/internal/json_objectwriter.cc', |  | 
| 172             'src/google/protobuf/util/internal/json_objectwriter.h', |  | 
| 173             'src/google/protobuf/util/internal/json_stream_parser.cc', |  | 
| 174             'src/google/protobuf/util/internal/json_stream_parser.h', |  | 
| 175             'src/google/protobuf/util/internal/location_tracker.h', |  | 
| 176             'src/google/protobuf/util/internal/object_location_tracker.h', |  | 
| 177             'src/google/protobuf/util/internal/object_source.h', |  | 
| 178             'src/google/protobuf/util/internal/object_writer.cc', |  | 
| 179             'src/google/protobuf/util/internal/object_writer.h', |  | 
| 180             'src/google/protobuf/util/internal/proto_writer.cc', |  | 
| 181             'src/google/protobuf/util/internal/proto_writer.h', |  | 
| 182             'src/google/protobuf/util/internal/protostream_objectsource.cc', |  | 
| 183             'src/google/protobuf/util/internal/protostream_objectsource.h', |  | 
| 184             'src/google/protobuf/util/internal/protostream_objectwriter.cc', |  | 
| 185             'src/google/protobuf/util/internal/protostream_objectwriter.h', |  | 
| 186             'src/google/protobuf/util/internal/structured_objectwriter.h', |  | 
| 187             'src/google/protobuf/util/internal/type_info.cc', |  | 
| 188             'src/google/protobuf/util/internal/type_info.h', |  | 
| 189             'src/google/protobuf/util/internal/type_info_test_helper.cc', |  | 
| 190             'src/google/protobuf/util/internal/type_info_test_helper.h', |  | 
| 191             'src/google/protobuf/util/internal/utility.cc', |  | 
| 192             'src/google/protobuf/util/internal/utility.h', |  | 
| 193             'src/google/protobuf/util/json_util.cc', |  | 
| 194             'src/google/protobuf/util/json_util.h', |  | 
| 195             'src/google/protobuf/util/message_differencer.cc', |  | 
| 196             'src/google/protobuf/util/message_differencer.h', |  | 
| 197             'src/google/protobuf/util/time_util.cc', |  | 
| 198             'src/google/protobuf/util/time_util.h', |  | 
| 199             'src/google/protobuf/util/type_resolver.h', |  | 
| 200             'src/google/protobuf/util/type_resolver_util.cc', |  | 
| 201             'src/google/protobuf/util/type_resolver_util.h', |  | 
| 202             'src/google/protobuf/wire_format.cc', |  | 
| 203             'src/google/protobuf/wire_format.h', |  | 
| 204             'src/google/protobuf/wrappers.pb.cc', |  | 
| 205             'src/google/protobuf/wrappers.pb.h', |  | 
| 206           ], |  | 
| 207         }, |  | 
| 208         { |  | 
| 209           'target_name': 'protoc_lib', |  | 
| 210           'type': 'static_library', |  | 
| 211           'toolsets': ['host'], |  | 
| 212           'sources': [ |  | 
| 213             "src/google/protobuf/compiler/code_generator.cc", |  | 
| 214             "src/google/protobuf/compiler/code_generator.h", |  | 
| 215             "src/google/protobuf/compiler/command_line_interface.cc", |  | 
| 216             "src/google/protobuf/compiler/command_line_interface.h", |  | 
| 217             "src/google/protobuf/compiler/cpp/cpp_enum.cc", |  | 
| 218             "src/google/protobuf/compiler/cpp/cpp_enum.h", |  | 
| 219             "src/google/protobuf/compiler/cpp/cpp_enum_field.cc", |  | 
| 220             "src/google/protobuf/compiler/cpp/cpp_enum_field.h", |  | 
| 221             "src/google/protobuf/compiler/cpp/cpp_extension.cc", |  | 
| 222             "src/google/protobuf/compiler/cpp/cpp_extension.h", |  | 
| 223             "src/google/protobuf/compiler/cpp/cpp_field.cc", |  | 
| 224             "src/google/protobuf/compiler/cpp/cpp_field.h", |  | 
| 225             "src/google/protobuf/compiler/cpp/cpp_file.cc", |  | 
| 226             "src/google/protobuf/compiler/cpp/cpp_file.h", |  | 
| 227             "src/google/protobuf/compiler/cpp/cpp_generator.cc", |  | 
| 228             "src/google/protobuf/compiler/cpp/cpp_generator.h", |  | 
| 229             "src/google/protobuf/compiler/cpp/cpp_helpers.cc", |  | 
| 230             "src/google/protobuf/compiler/cpp/cpp_helpers.h", |  | 
| 231             "src/google/protobuf/compiler/cpp/cpp_map_field.cc", |  | 
| 232             "src/google/protobuf/compiler/cpp/cpp_map_field.h", |  | 
| 233             "src/google/protobuf/compiler/cpp/cpp_message.cc", |  | 
| 234             "src/google/protobuf/compiler/cpp/cpp_message.h", |  | 
| 235             "src/google/protobuf/compiler/cpp/cpp_message_field.cc", |  | 
| 236             "src/google/protobuf/compiler/cpp/cpp_message_field.h", |  | 
| 237             "src/google/protobuf/compiler/cpp/cpp_options.h", |  | 
| 238             "src/google/protobuf/compiler/cpp/cpp_primitive_field.cc", |  | 
| 239             "src/google/protobuf/compiler/cpp/cpp_primitive_field.h", |  | 
| 240             "src/google/protobuf/compiler/cpp/cpp_service.cc", |  | 
| 241             "src/google/protobuf/compiler/cpp/cpp_service.h", |  | 
| 242             "src/google/protobuf/compiler/cpp/cpp_string_field.cc", |  | 
| 243             "src/google/protobuf/compiler/cpp/cpp_string_field.h", |  | 
| 244             "src/google/protobuf/compiler/csharp/csharp_doc_comment.cc", |  | 
| 245             "src/google/protobuf/compiler/csharp/csharp_doc_comment.h", |  | 
| 246             "src/google/protobuf/compiler/csharp/csharp_enum.cc", |  | 
| 247             "src/google/protobuf/compiler/csharp/csharp_enum.h", |  | 
| 248             "src/google/protobuf/compiler/csharp/csharp_enum_field.cc", |  | 
| 249             "src/google/protobuf/compiler/csharp/csharp_enum_field.h", |  | 
| 250             "src/google/protobuf/compiler/csharp/csharp_field_base.cc", |  | 
| 251             "src/google/protobuf/compiler/csharp/csharp_field_base.h", |  | 
| 252             "src/google/protobuf/compiler/csharp/csharp_generator.cc", |  | 
| 253             "src/google/protobuf/compiler/csharp/csharp_generator.h", |  | 
| 254             "src/google/protobuf/compiler/csharp/csharp_helpers.cc", |  | 
| 255             "src/google/protobuf/compiler/csharp/csharp_helpers.h", |  | 
| 256             "src/google/protobuf/compiler/csharp/csharp_map_field.cc", |  | 
| 257             "src/google/protobuf/compiler/csharp/csharp_map_field.h", |  | 
| 258             "src/google/protobuf/compiler/csharp/csharp_message.cc", |  | 
| 259             "src/google/protobuf/compiler/csharp/csharp_message.h", |  | 
| 260             "src/google/protobuf/compiler/csharp/csharp_message_field.cc", |  | 
| 261             "src/google/protobuf/compiler/csharp/csharp_message_field.h", |  | 
| 262             "src/google/protobuf/compiler/csharp/csharp_options.h", |  | 
| 263             "src/google/protobuf/compiler/csharp/csharp_primitive_field.cc", |  | 
| 264             "src/google/protobuf/compiler/csharp/csharp_primitive_field.h", |  | 
| 265             "src/google/protobuf/compiler/csharp/csharp_reflection_class.cc", |  | 
| 266             "src/google/protobuf/compiler/csharp/csharp_reflection_class.h", |  | 
| 267             "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc", |  | 
| 268             "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.h", |  | 
| 269             "src/google/protobuf/compiler/csharp/csharp_repeated_message_field.c
     c", |  | 
| 270             "src/google/protobuf/compiler/csharp/csharp_repeated_message_field.h
     ", |  | 
| 271             "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field
     .cc", |  | 
| 272             "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field
     .h", |  | 
| 273             "src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc
     ", |  | 
| 274             "src/google/protobuf/compiler/csharp/csharp_source_generator_base.h"
     , |  | 
| 275             "src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc", |  | 
| 276             "src/google/protobuf/compiler/csharp/csharp_wrapper_field.h", |  | 
| 277             "src/google/protobuf/compiler/java/java_context.cc", |  | 
| 278             "src/google/protobuf/compiler/java/java_context.h", |  | 
| 279             "src/google/protobuf/compiler/java/java_doc_comment.cc", |  | 
| 280             "src/google/protobuf/compiler/java/java_doc_comment.h", |  | 
| 281             "src/google/protobuf/compiler/java/java_enum.cc", |  | 
| 282             "src/google/protobuf/compiler/java/java_enum.h", |  | 
| 283             "src/google/protobuf/compiler/java/java_enum_field.cc", |  | 
| 284             "src/google/protobuf/compiler/java/java_enum_field.h", |  | 
| 285             "src/google/protobuf/compiler/java/java_enum_field_lite.cc", |  | 
| 286             "src/google/protobuf/compiler/java/java_enum_field_lite.h", |  | 
| 287             "src/google/protobuf/compiler/java/java_enum_lite.cc", |  | 
| 288             "src/google/protobuf/compiler/java/java_enum_lite.h", |  | 
| 289             "src/google/protobuf/compiler/java/java_extension.cc", |  | 
| 290             "src/google/protobuf/compiler/java/java_extension.h", |  | 
| 291             "src/google/protobuf/compiler/java/java_extension_lite.cc", |  | 
| 292             "src/google/protobuf/compiler/java/java_extension_lite.h", |  | 
| 293             "src/google/protobuf/compiler/java/java_field.cc", |  | 
| 294             "src/google/protobuf/compiler/java/java_field.h", |  | 
| 295             "src/google/protobuf/compiler/java/java_file.cc", |  | 
| 296             "src/google/protobuf/compiler/java/java_file.h", |  | 
| 297             "src/google/protobuf/compiler/java/java_generator.cc", |  | 
| 298             "src/google/protobuf/compiler/java/java_generator.h", |  | 
| 299             "src/google/protobuf/compiler/java/java_generator_factory.cc", |  | 
| 300             "src/google/protobuf/compiler/java/java_generator_factory.h", |  | 
| 301             "src/google/protobuf/compiler/java/java_helpers.cc", |  | 
| 302             "src/google/protobuf/compiler/java/java_helpers.h", |  | 
| 303             "src/google/protobuf/compiler/java/java_lazy_message_field.cc", |  | 
| 304             "src/google/protobuf/compiler/java/java_lazy_message_field.h", |  | 
| 305             "src/google/protobuf/compiler/java/java_lazy_message_field_lite.cc", |  | 
| 306             "src/google/protobuf/compiler/java/java_lazy_message_field_lite.h", |  | 
| 307             "src/google/protobuf/compiler/java/java_map_field.cc", |  | 
| 308             "src/google/protobuf/compiler/java/java_map_field.h", |  | 
| 309             "src/google/protobuf/compiler/java/java_map_field_lite.cc", |  | 
| 310             "src/google/protobuf/compiler/java/java_map_field_lite.h", |  | 
| 311             "src/google/protobuf/compiler/java/java_message.cc", |  | 
| 312             "src/google/protobuf/compiler/java/java_message.h", |  | 
| 313             "src/google/protobuf/compiler/java/java_message_builder.cc", |  | 
| 314             "src/google/protobuf/compiler/java/java_message_builder.h", |  | 
| 315             "src/google/protobuf/compiler/java/java_message_builder_lite.cc", |  | 
| 316             "src/google/protobuf/compiler/java/java_message_builder_lite.h", |  | 
| 317             "src/google/protobuf/compiler/java/java_message_field.cc", |  | 
| 318             "src/google/protobuf/compiler/java/java_message_field.h", |  | 
| 319             "src/google/protobuf/compiler/java/java_message_field_lite.cc", |  | 
| 320             "src/google/protobuf/compiler/java/java_message_field_lite.h", |  | 
| 321             "src/google/protobuf/compiler/java/java_message_lite.cc", |  | 
| 322             "src/google/protobuf/compiler/java/java_message_lite.h", |  | 
| 323             "src/google/protobuf/compiler/java/java_name_resolver.cc", |  | 
| 324             "src/google/protobuf/compiler/java/java_name_resolver.h", |  | 
| 325             "src/google/protobuf/compiler/java/java_primitive_field.cc", |  | 
| 326             "src/google/protobuf/compiler/java/java_primitive_field.h", |  | 
| 327             "src/google/protobuf/compiler/java/java_primitive_field_lite.cc", |  | 
| 328             "src/google/protobuf/compiler/java/java_primitive_field_lite.h", |  | 
| 329             "src/google/protobuf/compiler/java/java_service.cc", |  | 
| 330             "src/google/protobuf/compiler/java/java_service.h", |  | 
| 331             "src/google/protobuf/compiler/java/java_shared_code_generator.cc", |  | 
| 332             "src/google/protobuf/compiler/java/java_shared_code_generator.h", |  | 
| 333             "src/google/protobuf/compiler/java/java_string_field.cc", |  | 
| 334             "src/google/protobuf/compiler/java/java_string_field.h", |  | 
| 335             "src/google/protobuf/compiler/java/java_string_field_lite.cc", |  | 
| 336             "src/google/protobuf/compiler/java/java_string_field_lite.h", |  | 
| 337             "src/google/protobuf/compiler/javanano/javanano_enum.cc", |  | 
| 338             "src/google/protobuf/compiler/javanano/javanano_enum.h", |  | 
| 339             "src/google/protobuf/compiler/javanano/javanano_enum_field.cc", |  | 
| 340             "src/google/protobuf/compiler/javanano/javanano_enum_field.h", |  | 
| 341             "src/google/protobuf/compiler/javanano/javanano_extension.cc", |  | 
| 342             "src/google/protobuf/compiler/javanano/javanano_extension.h", |  | 
| 343             "src/google/protobuf/compiler/javanano/javanano_field.cc", |  | 
| 344             "src/google/protobuf/compiler/javanano/javanano_field.h", |  | 
| 345             "src/google/protobuf/compiler/javanano/javanano_file.cc", |  | 
| 346             "src/google/protobuf/compiler/javanano/javanano_file.h", |  | 
| 347             "src/google/protobuf/compiler/javanano/javanano_generator.cc", |  | 
| 348             "src/google/protobuf/compiler/javanano/javanano_generator.h", |  | 
| 349             "src/google/protobuf/compiler/javanano/javanano_helpers.cc", |  | 
| 350             "src/google/protobuf/compiler/javanano/javanano_helpers.h", |  | 
| 351             "src/google/protobuf/compiler/javanano/javanano_map_field.cc", |  | 
| 352             "src/google/protobuf/compiler/javanano/javanano_map_field.h", |  | 
| 353             "src/google/protobuf/compiler/javanano/javanano_message.cc", |  | 
| 354             "src/google/protobuf/compiler/javanano/javanano_message.h", |  | 
| 355             "src/google/protobuf/compiler/javanano/javanano_message_field.cc", |  | 
| 356             "src/google/protobuf/compiler/javanano/javanano_message_field.h", |  | 
| 357             "src/google/protobuf/compiler/javanano/javanano_primitive_field.cc", |  | 
| 358             "src/google/protobuf/compiler/javanano/javanano_primitive_field.h", |  | 
| 359             "src/google/protobuf/compiler/js/js_generator.cc", |  | 
| 360             "src/google/protobuf/compiler/js/js_generator.h", |  | 
| 361             "src/google/protobuf/compiler/objectivec/objectivec_enum.cc", |  | 
| 362             "src/google/protobuf/compiler/objectivec/objectivec_enum.h", |  | 
| 363             "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc", |  | 
| 364             "src/google/protobuf/compiler/objectivec/objectivec_enum_field.h", |  | 
| 365             "src/google/protobuf/compiler/objectivec/objectivec_extension.cc", |  | 
| 366             "src/google/protobuf/compiler/objectivec/objectivec_extension.h", |  | 
| 367             "src/google/protobuf/compiler/objectivec/objectivec_field.cc", |  | 
| 368             "src/google/protobuf/compiler/objectivec/objectivec_field.h", |  | 
| 369             "src/google/protobuf/compiler/objectivec/objectivec_file.cc", |  | 
| 370             "src/google/protobuf/compiler/objectivec/objectivec_file.h", |  | 
| 371             "src/google/protobuf/compiler/objectivec/objectivec_generator.cc", |  | 
| 372             "src/google/protobuf/compiler/objectivec/objectivec_generator.h", |  | 
| 373             "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc", |  | 
| 374             "src/google/protobuf/compiler/objectivec/objectivec_helpers.h", |  | 
| 375             "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc", |  | 
| 376             "src/google/protobuf/compiler/objectivec/objectivec_map_field.h", |  | 
| 377             "src/google/protobuf/compiler/objectivec/objectivec_message.cc", |  | 
| 378             "src/google/protobuf/compiler/objectivec/objectivec_message.h", |  | 
| 379             "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc
     ", |  | 
| 380             "src/google/protobuf/compiler/objectivec/objectivec_message_field.h"
     , |  | 
| 381             "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc", |  | 
| 382             "src/google/protobuf/compiler/objectivec/objectivec_oneof.h", |  | 
| 383             "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.
     cc", |  | 
| 384             "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.
     h", |  | 
| 385             "src/google/protobuf/compiler/plugin.cc", |  | 
| 386             "src/google/protobuf/compiler/plugin.h", |  | 
| 387             "src/google/protobuf/compiler/plugin.pb.cc", |  | 
| 388             "src/google/protobuf/compiler/plugin.pb.h", |  | 
| 389             "src/google/protobuf/compiler/python/python_generator.cc", |  | 
| 390             "src/google/protobuf/compiler/python/python_generator.h", |  | 
| 391             "src/google/protobuf/compiler/ruby/ruby_generator.cc", |  | 
| 392             "src/google/protobuf/compiler/ruby/ruby_generator.h", |  | 
| 393             "src/google/protobuf/compiler/subprocess.cc", |  | 
| 394             "src/google/protobuf/compiler/subprocess.h", |  | 
| 395             "src/google/protobuf/compiler/zip_writer.cc", |  | 
| 396             "src/google/protobuf/compiler/zip_writer.h", |  | 
| 397           ], |  | 
| 398           'variables': { |  | 
| 399             'clang_warning_flags': [ |  | 
| 400               # protobuf-3 contains a few functions that are unused. |  | 
| 401               '-Wno-unused-function', |  | 
| 402             ], |  | 
| 403           }, |  | 
| 404           'dependencies': [ |  | 
| 405             'protobuf_full_do_not_use', |  | 
| 406           ], |  | 
| 407           'include_dirs': [ |  | 
| 408             'src', |  | 
| 409           ], |  | 
| 410         }, |  | 
| 411         { |  | 
| 412           'target_name': 'protoc', |  | 
| 413           'type': 'executable', |  | 
| 414           'toolsets': ['host'], |  | 
| 415           'sources': [ |  | 
| 416             "src/google/protobuf/compiler/main.cc", |  | 
| 417           ], |  | 
| 418           'dependencies': [ |  | 
| 419             'protoc_lib', |  | 
| 420           ], |  | 
| 421           'include_dirs': [ |  | 
| 422             'src', |  | 
| 423           ], |  | 
| 424         }, |  | 
| 425         { |  | 
| 426           # Generate the python module needed by all protoc-generated Python cod
     e. |  | 
| 427           'target_name': 'py_proto', |  | 
| 428           'type': 'none', |  | 
| 429           'copies': [ |  | 
| 430             { |  | 
| 431               'destination': '<(PRODUCT_DIR)/pyproto/google/', |  | 
| 432               'files': [ |  | 
| 433                 '__init__.py', |  | 
| 434               ], |  | 
| 435             }, |  | 
| 436             { |  | 
| 437               'destination': '<(PRODUCT_DIR)/pyproto/google/third_party/six/', |  | 
| 438               'files': [ |  | 
| 439                 'third_party/six/six.py', |  | 
| 440               ], |  | 
| 441             }, |  | 
| 442             { |  | 
| 443               'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', |  | 
| 444               'files': [ |  | 
| 445                 'python/google/protobuf/__init__.py', |  | 
| 446                 'python/google/protobuf/descriptor.py', |  | 
| 447                 'python/google/protobuf/descriptor_database.py', |  | 
| 448                 'python/google/protobuf/descriptor_pool.py', |  | 
| 449                 'python/google/protobuf/json_format.py', |  | 
| 450                 'python/google/protobuf/message.py', |  | 
| 451                 'python/google/protobuf/message_factory.py', |  | 
| 452                 'python/google/protobuf/proto_builder.py', |  | 
| 453                 'python/google/protobuf/reflection.py', |  | 
| 454                 'python/google/protobuf/service.py', |  | 
| 455                 'python/google/protobuf/service_reflection.py', |  | 
| 456                 'python/google/protobuf/symbol_database.py', |  | 
| 457                 'python/google/protobuf/text_encoding.py', |  | 
| 458                 'python/google/protobuf/text_format.py', |  | 
| 459 |  | 
| 460                 # TODO(ncarter): protoc's python generator treats |  | 
| 461                 # descriptor.proto specially, but only when the input path is |  | 
| 462                 # exactly "google/protobuf/descriptor.proto".  I'm not sure how |  | 
| 463                 # to execute a rule from a different directory.  For now, use a |  | 
| 464                 # manually-generated copy of descriptor_pb2.py. |  | 
| 465                 'python/google/protobuf/descriptor_pb2.py', |  | 
| 466               ], |  | 
| 467             }, |  | 
| 468             { |  | 
| 469               'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', |  | 
| 470               'files': [ |  | 
| 471                 'python/google/protobuf/internal/__init__.py', |  | 
| 472                 'python/google/protobuf/internal/_parameterized.py', |  | 
| 473                 'python/google/protobuf/internal/api_implementation.py', |  | 
| 474                 'python/google/protobuf/internal/containers.py', |  | 
| 475                 'python/google/protobuf/internal/decoder.py', |  | 
| 476                 'python/google/protobuf/internal/encoder.py', |  | 
| 477                 'python/google/protobuf/internal/enum_type_wrapper.py', |  | 
| 478                 'python/google/protobuf/internal/message_listener.py', |  | 
| 479                 'python/google/protobuf/internal/python_message.py', |  | 
| 480                 'python/google/protobuf/internal/type_checkers.py', |  | 
| 481                 'python/google/protobuf/internal/well_known_types.py', |  | 
| 482                 'python/google/protobuf/internal/wire_format.py', |  | 
| 483               ], |  | 
| 484             }, |  | 
| 485           ], |  | 
| 486       #   # We can't generate a proper descriptor_pb2.py -- see earlier comment. |  | 
| 487       #   'rules': [ |  | 
| 488       #     { |  | 
| 489       #       'rule_name': 'genproto', |  | 
| 490       #       'extension': 'proto', |  | 
| 491       #       'inputs': [ |  | 
| 492       #         '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |  | 
| 493       #       ], |  | 
| 494       #       'variables': { |  | 
| 495       #         # The protoc compiler requires a proto_path argument with the |  | 
| 496       #           # directory containing the .proto file. |  | 
| 497       #           'rule_input_relpath': 'src/google/protobuf', |  | 
| 498       #         }, |  | 
| 499       #         'outputs': [ |  | 
| 500       #           '<(PRODUCT_DIR)/pyproto/google/protobuf/<(RULE_INPUT_ROOT)_pb2
     .py', |  | 
| 501       #         ], |  | 
| 502       #         'action': [ |  | 
| 503       #           '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)
     ', |  | 
| 504       #           '-I./src', |  | 
| 505       #           '-I.', |  | 
| 506       #           '--python_out=<(PRODUCT_DIR)/pyproto/google/protobuf', |  | 
| 507       #           'google/protobuf/descriptor.proto', |  | 
| 508       #         ], |  | 
| 509       #         'message': 'Generating Python code from <(RULE_INPUT_PATH)', |  | 
| 510       #       }, |  | 
| 511       #     ], |  | 
| 512       #     'dependencies': [ |  | 
| 513       #       'protoc#host', |  | 
| 514       #     ], |  | 
| 515       #     'sources': [ |  | 
| 516       #       'src/google/protobuf/descriptor.proto', |  | 
| 517       #     ], |  | 
| 518          }, |  | 
| 519       ], |  | 
| 520     }, { # use_system_protobuf==1 |  | 
| 521       'targets': [ |  | 
| 522         { |  | 
| 523           'target_name': 'protobuf_lite', |  | 
| 524           'type': 'none', |  | 
| 525           'direct_dependent_settings': { |  | 
| 526             'cflags': [ |  | 
| 527               # Use full protobuf, because vanilla protobuf doesn't have |  | 
| 528               # our custom patch to retain unknown fields in lite mode. |  | 
| 529               '<!@(pkg-config --cflags protobuf)', |  | 
| 530             ], |  | 
| 531             'defines': [ |  | 
| 532               'USE_SYSTEM_PROTOBUF', |  | 
| 533 |  | 
| 534               # This macro must be defined to suppress the use |  | 
| 535               # of dynamic_cast<>, which requires RTTI. |  | 
| 536               'GOOGLE_PROTOBUF_NO_RTTI', |  | 
| 537               'GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER', |  | 
| 538             ], |  | 
| 539           }, |  | 
| 540           'link_settings': { |  | 
| 541             # Use full protobuf, because vanilla protobuf doesn't have |  | 
| 542             # our custom patch to retain unknown fields in lite mode. |  | 
| 543             'ldflags': [ |  | 
| 544               '<!@(pkg-config --libs-only-L --libs-only-other protobuf)', |  | 
| 545             ], |  | 
| 546             'libraries': [ |  | 
| 547               '<!@(pkg-config --libs-only-l protobuf)', |  | 
| 548             ], |  | 
| 549           }, |  | 
| 550         }, |  | 
| 551         { |  | 
| 552           'target_name': 'protoc', |  | 
| 553           'type': 'none', |  | 
| 554           'toolsets': ['host', 'target'], |  | 
| 555         }, |  | 
| 556         { |  | 
| 557           'target_name': 'py_proto', |  | 
| 558           'type': 'none', |  | 
| 559         }, |  | 
| 560       ], |  | 
| 561     }], |  | 
| 562   ], |  | 
| 563 } |  | 
| OLD | NEW | 
|---|