| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
| 6 'conditions': [ | 6 'conditions': [ |
| 7 ['use_system_protobuf==0', { | 7 ['use_system_protobuf==0', { |
| 8 'conditions': [ | 8 'conditions': [ |
| 9 ['OS!="win"', { | 9 ['OS=="win"', { |
| 10 'variables': { | |
| 11 'config_h_dir': | |
| 12 '.', # crafted for gcc/linux. | |
| 13 }, | |
| 14 }, { # else, OS=="win" | |
| 15 'variables': { | |
| 16 'config_h_dir': | |
| 17 'vsprojects', # crafted for msvc. | |
| 18 }, | |
| 19 'target_defaults': { | 10 'target_defaults': { |
| 20 'msvs_disabled_warnings': [ | 11 'msvs_disabled_warnings': [ |
| 21 4018, # signed/unsigned mismatch in comparison | 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 |
| 22 4244, # implicit conversion, possible loss of data | 15 4244, # implicit conversion, possible loss of data |
| 23 4355, # 'this' used in base member initializer list | |
| 24 4267, # size_t to int truncation | 16 4267, # size_t to int truncation |
| 25 4291, # no matching operator delete for a placement new | 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) |
| 26 ], | 21 ], |
| 27 'defines!': [ | 22 'defines!': [ |
| 28 'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself. | 23 'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself. |
| 29 ], | 24 ], |
| 30 }, | 25 }, |
| 31 }], | 26 }], |
| 32 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj
a"', { | 27 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj
a"', { |
| 33 'variables': { | 28 'variables': { |
| 34 'ninja_output_dir': 'ninja-protoc', | 29 'ninja_output_dir': 'ninja-protoc', |
| 35 'ninja_product_dir': | 30 'ninja_product_dir': |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 # option optimize_for = LITE_RUNTIME; | 75 # option optimize_for = LITE_RUNTIME; |
| 81 # | 76 # |
| 82 # to your .proto file. | 77 # to your .proto file. |
| 83 { | 78 { |
| 84 'target_name': 'protobuf_lite', | 79 'target_name': 'protobuf_lite', |
| 85 'type': '<(component)', | 80 'type': '<(component)', |
| 86 'toolsets': ['host', 'target'], | 81 'toolsets': ['host', 'target'], |
| 87 'includes': [ | 82 'includes': [ |
| 88 'protobuf_lite.gypi', | 83 'protobuf_lite.gypi', |
| 89 ], | 84 ], |
| 85 'variables': { |
| 86 'clang_warning_flags': [ |
| 87 # protobuf-3 contains a few functions that are unused. |
| 88 '-Wno-unused-function', |
| 89 ], |
| 90 }, |
| 90 # Required for component builds. See http://crbug.com/172800. | 91 # Required for component builds. See http://crbug.com/172800. |
| 91 'defines': [ | 92 'defines': [ |
| 92 'LIBPROTOBUF_EXPORTS', | 93 'LIBPROTOBUF_EXPORTS', |
| 93 'PROTOBUF_USE_DLLS', | 94 'PROTOBUF_USE_DLLS', |
| 94 ], | 95 ], |
| 95 'direct_dependent_settings': { | 96 'direct_dependent_settings': { |
| 96 'defines': [ | 97 'defines': [ |
| 97 'PROTOBUF_USE_DLLS', | 98 'PROTOBUF_USE_DLLS', |
| 98 ], | 99 ], |
| 99 }, | 100 }, |
| 100 }, | 101 }, |
| 101 # This is the full, heavy protobuf lib that's needed for c++ .protos | 102 # This is the full, heavy protobuf lib that's needed for c++ .protos |
| 102 # that don't specify the LITE_RUNTIME option. The protocol | 103 # that don't specify the LITE_RUNTIME option. The protocol |
| 103 # compiler itself (protoc) falls into that category. | 104 # compiler itself (protoc) falls into that category. |
| 104 # | 105 # |
| 105 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl | 106 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl |
| 106 { | 107 { |
| 107 'target_name': 'protobuf_full_do_not_use', | 108 'target_name': 'protobuf_full_do_not_use', |
| 108 'type': 'static_library', | 109 'type': 'static_library', |
| 109 'toolsets': ['host','target'], | 110 'toolsets': ['host','target'], |
| 110 'includes': [ | 111 'includes': [ |
| 111 'protobuf_lite.gypi', | 112 'protobuf_lite.gypi', |
| 112 ], | 113 ], |
| 114 'variables': { |
| 115 'clang_warning_flags': [ |
| 116 # protobuf-3 contains a few functions that are unused. |
| 117 '-Wno-unused-function', |
| 118 ], |
| 119 }, |
| 113 'sources': [ | 120 'sources': [ |
| 121 'src/google/protobuf/any.cc', |
| 122 'src/google/protobuf/any.h', |
| 123 'src/google/protobuf/any.pb.cc', |
| 124 'src/google/protobuf/any.pb.h', |
| 125 'src/google/protobuf/api.pb.cc', |
| 126 'src/google/protobuf/api.pb.h', |
| 127 'src/google/protobuf/compiler/importer.cc', |
| 128 'src/google/protobuf/compiler/importer.h', |
| 129 'src/google/protobuf/compiler/parser.cc', |
| 130 'src/google/protobuf/compiler/parser.h', |
| 131 'src/google/protobuf/descriptor.cc', |
| 114 'src/google/protobuf/descriptor.h', | 132 'src/google/protobuf/descriptor.h', |
| 133 'src/google/protobuf/descriptor.pb.cc', |
| 115 'src/google/protobuf/descriptor.pb.h', | 134 'src/google/protobuf/descriptor.pb.h', |
| 135 'src/google/protobuf/descriptor_database.cc', |
| 116 'src/google/protobuf/descriptor_database.h', | 136 'src/google/protobuf/descriptor_database.h', |
| 137 'src/google/protobuf/duration.pb.cc', |
| 138 'src/google/protobuf/duration.pb.h', |
| 139 'src/google/protobuf/dynamic_message.cc', |
| 117 'src/google/protobuf/dynamic_message.h', | 140 'src/google/protobuf/dynamic_message.h', |
| 141 'src/google/protobuf/empty.pb.cc', |
| 142 'src/google/protobuf/empty.pb.h', |
| 143 'src/google/protobuf/extension_set_heavy.cc', |
| 144 'src/google/protobuf/field_mask.pb.cc', |
| 145 'src/google/protobuf/field_mask.pb.h', |
| 118 'src/google/protobuf/generated_enum_reflection.h', | 146 'src/google/protobuf/generated_enum_reflection.h', |
| 147 'src/google/protobuf/generated_enum_util.h', |
| 148 'src/google/protobuf/generated_message_reflection.cc', |
| 119 'src/google/protobuf/generated_message_reflection.h', | 149 'src/google/protobuf/generated_message_reflection.h', |
| 150 |
| 151 # This file pulls in zlib, but it's not actually used by protoc, so |
| 152 # instead of compiling zlib for the host, let's just exclude this. |
| 153 # 'src/google/protobuf/io/gzip_stream.cc', |
| 154 # 'src/google/protobuf/io/gzip_stream.h', |
| 155 'src/google/protobuf/io/printer.cc', |
| 156 'src/google/protobuf/io/printer.h', |
| 157 'src/google/protobuf/io/strtod.cc', |
| 158 'src/google/protobuf/io/strtod.h', |
| 159 'src/google/protobuf/io/tokenizer.cc', |
| 160 'src/google/protobuf/io/tokenizer.h', |
| 161 'src/google/protobuf/io/zero_copy_stream_impl.cc', |
| 162 'src/google/protobuf/io/zero_copy_stream_impl.h', |
| 163 'src/google/protobuf/map_entry.h', |
| 164 'src/google/protobuf/map_field.cc', |
| 165 'src/google/protobuf/map_field.h', |
| 166 'src/google/protobuf/map_field_inl.h', |
| 167 'src/google/protobuf/message.cc', |
| 120 'src/google/protobuf/message.h', | 168 'src/google/protobuf/message.h', |
| 169 'src/google/protobuf/metadata.h', |
| 170 'src/google/protobuf/reflection.h', |
| 171 'src/google/protobuf/reflection_internal.h', |
| 172 'src/google/protobuf/reflection_ops.cc', |
| 121 'src/google/protobuf/reflection_ops.h', | 173 'src/google/protobuf/reflection_ops.h', |
| 174 'src/google/protobuf/service.cc', |
| 122 'src/google/protobuf/service.h', | 175 'src/google/protobuf/service.h', |
| 123 'src/google/protobuf/text_format.h', | 176 'src/google/protobuf/source_context.pb.cc', |
| 124 'src/google/protobuf/wire_format.h', | 177 'src/google/protobuf/source_context.pb.h', |
| 125 'src/google/protobuf/io/gzip_stream.h', | 178 'src/google/protobuf/struct.pb.cc', |
| 126 'src/google/protobuf/io/printer.h', | 179 'src/google/protobuf/struct.pb.h', |
| 127 'src/google/protobuf/io/tokenizer.h', | 180 'src/google/protobuf/stubs/mathutil.h', |
| 128 'src/google/protobuf/io/zero_copy_stream_impl.h', | 181 'src/google/protobuf/stubs/mathlimits.cc', |
| 129 'src/google/protobuf/compiler/code_generator.h', | 182 'src/google/protobuf/stubs/mathlimits.h', |
| 130 'src/google/protobuf/compiler/command_line_interface.h', | |
| 131 'src/google/protobuf/compiler/importer.h', | |
| 132 'src/google/protobuf/compiler/java/java_doc_comment.cc', | |
| 133 'src/google/protobuf/compiler/java/java_doc_comment.h', | |
| 134 'src/google/protobuf/compiler/parser.h', | |
| 135 | |
| 136 'src/google/protobuf/stubs/strutil.cc', | |
| 137 'src/google/protobuf/stubs/strutil.h', | |
| 138 'src/google/protobuf/stubs/substitute.cc', | 183 'src/google/protobuf/stubs/substitute.cc', |
| 139 'src/google/protobuf/stubs/substitute.h', | 184 'src/google/protobuf/stubs/substitute.h', |
| 140 'src/google/protobuf/stubs/stl_util.h', | 185 'src/google/protobuf/stubs/singleton$.h', |
| 141 'src/google/protobuf/stubs/stringprintf.cc', | |
| 142 'src/google/protobuf/stubs/stringprintf.h', | |
| 143 'src/google/protobuf/stubs/structurally_valid.cc', | |
| 144 'src/google/protobuf/stubs/template_util.h', | |
| 145 'src/google/protobuf/stubs/type_traits.h', | |
| 146 | |
| 147 'src/google/protobuf/descriptor.cc', | |
| 148 'src/google/protobuf/descriptor.pb.cc', | |
| 149 'src/google/protobuf/descriptor_database.cc', | |
| 150 'src/google/protobuf/dynamic_message.cc', | |
| 151 'src/google/protobuf/extension_set.cc', | |
| 152 'src/google/protobuf/extension_set.h', | |
| 153 'src/google/protobuf/extension_set_heavy.cc', | |
| 154 'src/google/protobuf/generated_message_reflection.cc', | |
| 155 'src/google/protobuf/message.cc', | |
| 156 'src/google/protobuf/reflection_ops.cc', | |
| 157 'src/google/protobuf/service.cc', | |
| 158 'src/google/protobuf/text_format.cc', | 186 'src/google/protobuf/text_format.cc', |
| 187 'src/google/protobuf/text_format.h', |
| 188 'src/google/protobuf/timestamp.pb.cc', |
| 189 'src/google/protobuf/timestamp.pb.h', |
| 190 'src/google/protobuf/type.pb.cc', |
| 191 'src/google/protobuf/type.pb.h', |
| 192 'src/google/protobuf/unknown_field_set.cc', |
| 193 'src/google/protobuf/unknown_field_set.h', |
| 194 'src/google/protobuf/util/field_comparator.cc', |
| 195 'src/google/protobuf/util/field_comparator.h', |
| 196 'src/google/protobuf/util/field_mask_util.cc', |
| 197 'src/google/protobuf/util/field_mask_util.h', |
| 198 'src/google/protobuf/util/internal/constants.h', |
| 199 'src/google/protobuf/util/internal/datapiece.cc', |
| 200 'src/google/protobuf/util/internal/datapiece.h', |
| 201 'src/google/protobuf/util/internal/default_value_objectwriter.cc', |
| 202 'src/google/protobuf/util/internal/default_value_objectwriter.h', |
| 203 'src/google/protobuf/util/internal/error_listener.cc', |
| 204 'src/google/protobuf/util/internal/error_listener.h', |
| 205 'src/google/protobuf/util/internal/field_mask_utility.cc', |
| 206 'src/google/protobuf/util/internal/field_mask_utility.h', |
| 207 'src/google/protobuf/util/internal/json_escaping.cc', |
| 208 'src/google/protobuf/util/internal/json_escaping.h', |
| 209 'src/google/protobuf/util/internal/json_objectwriter.cc', |
| 210 'src/google/protobuf/util/internal/json_objectwriter.h', |
| 211 'src/google/protobuf/util/internal/json_stream_parser.cc', |
| 212 'src/google/protobuf/util/internal/json_stream_parser.h', |
| 213 'src/google/protobuf/util/internal/location_tracker.h', |
| 214 'src/google/protobuf/util/internal/object_location_tracker.h', |
| 215 'src/google/protobuf/util/internal/object_source.h', |
| 216 'src/google/protobuf/util/internal/object_writer.cc', |
| 217 'src/google/protobuf/util/internal/object_writer.h', |
| 218 'src/google/protobuf/util/internal/proto_writer.cc', |
| 219 'src/google/protobuf/util/internal/proto_writer.h', |
| 220 'src/google/protobuf/util/internal/protostream_objectsource.cc', |
| 221 'src/google/protobuf/util/internal/protostream_objectsource.h', |
| 222 'src/google/protobuf/util/internal/protostream_objectwriter.cc', |
| 223 'src/google/protobuf/util/internal/protostream_objectwriter.h', |
| 224 'src/google/protobuf/util/internal/structured_object_writer.h', |
| 225 'src/google/protobuf/util/internal/type_info.cc', |
| 226 'src/google/protobuf/util/internal/type_info.h', |
| 227 'src/google/protobuf/util/internal/type_info_test_helper.cc', |
| 228 'src/google/protobuf/util/internal/type_info_test_helper.h', |
| 229 'src/google/protobuf/util/internal/utility.cc', |
| 230 'src/google/protobuf/util/internal/utility.h', |
| 231 'src/google/protobuf/util/json_util.cc', |
| 232 'src/google/protobuf/util/json_util.h', |
| 233 'src/google/protobuf/util/message_differencer.cc', |
| 234 'src/google/protobuf/util/message_differencer.h', |
| 235 'src/google/protobuf/util/time_util.cc', |
| 236 'src/google/protobuf/util/time_util.h', |
| 237 'src/google/protobuf/util/type_resolver.h', |
| 238 'src/google/protobuf/util/type_resolver_util.cc', |
| 239 'src/google/protobuf/util/type_resolver_util.h', |
| 159 'src/google/protobuf/wire_format.cc', | 240 'src/google/protobuf/wire_format.cc', |
| 160 # This file pulls in zlib, but it's not actually used by protoc, so | 241 'src/google/protobuf/wire_format.h', |
| 161 # instead of compiling zlib for the host, let's just exclude this. | 242 'src/google/protobuf/wrappers.pb.cc', |
| 162 # 'src/src/google/protobuf/io/gzip_stream.cc', | 243 'src/google/protobuf/wrappers.pb.h', |
| 163 'src/google/protobuf/io/printer.cc', | |
| 164 'src/google/protobuf/io/tokenizer.cc', | |
| 165 'src/google/protobuf/io/zero_copy_stream_impl.cc', | |
| 166 'src/google/protobuf/compiler/importer.cc', | |
| 167 'src/google/protobuf/compiler/parser.cc', | |
| 168 ], | 244 ], |
| 169 }, | 245 }, |
| 170 { | 246 { |
| 171 'target_name': 'protoc', | 247 'target_name': 'protoc', |
| 172 'conditions': [ | 248 'conditions': [ |
| 173 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni
nja"', { | 249 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni
nja"', { |
| 174 'type': 'executable', | 250 'type': 'executable', |
| 175 'toolsets': ['host'], | 251 'toolsets': ['host'], |
| 176 'sources': [ | 252 'sources': [ |
| 177 'src/google/protobuf/compiler/code_generator.cc', | 253 'src/google/protobuf/compiler/code_generator.cc', |
| 254 'src/google/protobuf/compiler/code_generator.h', |
| 178 'src/google/protobuf/compiler/command_line_interface.cc', | 255 'src/google/protobuf/compiler/command_line_interface.cc', |
| 179 'src/google/protobuf/compiler/plugin.cc', | 256 'src/google/protobuf/compiler/command_line_interface.h', |
| 180 'src/google/protobuf/compiler/plugin.pb.cc', | |
| 181 'src/google/protobuf/compiler/subprocess.cc', | |
| 182 'src/google/protobuf/compiler/subprocess.h', | |
| 183 'src/google/protobuf/compiler/zip_writer.cc', | |
| 184 'src/google/protobuf/compiler/zip_writer.h', | |
| 185 'src/google/protobuf/compiler/cpp/cpp_enum.cc', | 257 'src/google/protobuf/compiler/cpp/cpp_enum.cc', |
| 186 'src/google/protobuf/compiler/cpp/cpp_enum.h', | 258 'src/google/protobuf/compiler/cpp/cpp_enum.h', |
| 187 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', | 259 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', |
| 188 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', | 260 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', |
| 189 'src/google/protobuf/compiler/cpp/cpp_extension.cc', | 261 'src/google/protobuf/compiler/cpp/cpp_extension.cc', |
| 190 'src/google/protobuf/compiler/cpp/cpp_extension.h', | 262 'src/google/protobuf/compiler/cpp/cpp_extension.h', |
| 191 'src/google/protobuf/compiler/cpp/cpp_field.cc', | 263 'src/google/protobuf/compiler/cpp/cpp_field.cc', |
| 192 'src/google/protobuf/compiler/cpp/cpp_field.h', | 264 'src/google/protobuf/compiler/cpp/cpp_field.h', |
| 193 'src/google/protobuf/compiler/cpp/cpp_file.cc', | 265 'src/google/protobuf/compiler/cpp/cpp_file.cc', |
| 194 'src/google/protobuf/compiler/cpp/cpp_file.h', | 266 'src/google/protobuf/compiler/cpp/cpp_file.h', |
| 195 'src/google/protobuf/compiler/cpp/cpp_generator.cc', | 267 'src/google/protobuf/compiler/cpp/cpp_generator.cc', |
| 268 'src/google/protobuf/compiler/cpp/cpp_generator.h', |
| 196 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', | 269 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', |
| 197 'src/google/protobuf/compiler/cpp/cpp_helpers.h', | 270 'src/google/protobuf/compiler/cpp/cpp_helpers.h', |
| 271 'src/google/protobuf/compiler/cpp/cpp_map_field.cc', |
| 272 'src/google/protobuf/compiler/cpp/cpp_map_field.h', |
| 198 'src/google/protobuf/compiler/cpp/cpp_message.cc', | 273 'src/google/protobuf/compiler/cpp/cpp_message.cc', |
| 199 'src/google/protobuf/compiler/cpp/cpp_message.h', | 274 'src/google/protobuf/compiler/cpp/cpp_message.h', |
| 200 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', | 275 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', |
| 201 'src/google/protobuf/compiler/cpp/cpp_message_field.h', | 276 'src/google/protobuf/compiler/cpp/cpp_message_field.h', |
| 202 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', | 277 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', |
| 203 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', | 278 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', |
| 204 'src/google/protobuf/compiler/cpp/cpp_service.cc', | 279 'src/google/protobuf/compiler/cpp/cpp_service.cc', |
| 205 'src/google/protobuf/compiler/cpp/cpp_service.h', | 280 'src/google/protobuf/compiler/cpp/cpp_service.h', |
| 206 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', | 281 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', |
| 207 'src/google/protobuf/compiler/cpp/cpp_string_field.h', | 282 'src/google/protobuf/compiler/cpp/cpp_string_field.h', |
| 208 'src/google/protobuf/compiler/java/java_enum.cc', | 283 'src/google/protobuf/compiler/main.cc', |
| 209 'src/google/protobuf/compiler/java/java_enum.h', | 284 'src/google/protobuf/compiler/plugin.cc', |
| 210 'src/google/protobuf/compiler/java/java_enum_field.cc', | 285 'src/google/protobuf/compiler/plugin.h', |
| 211 'src/google/protobuf/compiler/java/java_enum_field.h', | 286 'src/google/protobuf/compiler/plugin.pb.cc', |
| 212 'src/google/protobuf/compiler/java/java_extension.cc', | 287 'src/google/protobuf/compiler/plugin.pb.h', |
| 213 'src/google/protobuf/compiler/java/java_extension.h', | |
| 214 'src/google/protobuf/compiler/java/java_field.cc', | |
| 215 'src/google/protobuf/compiler/java/java_field.h', | |
| 216 'src/google/protobuf/compiler/java/java_file.cc', | |
| 217 'src/google/protobuf/compiler/java/java_file.h', | |
| 218 'src/google/protobuf/compiler/java/java_generator.cc', | |
| 219 'src/google/protobuf/compiler/java/java_helpers.cc', | |
| 220 'src/google/protobuf/compiler/java/java_helpers.h', | |
| 221 'src/google/protobuf/compiler/java/java_message.cc', | |
| 222 'src/google/protobuf/compiler/java/java_message.h', | |
| 223 'src/google/protobuf/compiler/java/java_message_field.cc', | |
| 224 'src/google/protobuf/compiler/java/java_message_field.h', | |
| 225 'src/google/protobuf/compiler/java/java_primitive_field.cc', | |
| 226 'src/google/protobuf/compiler/java/java_primitive_field.h', | |
| 227 'src/google/protobuf/compiler/java/java_service.cc', | |
| 228 'src/google/protobuf/compiler/java/java_service.h', | |
| 229 'src/google/protobuf/compiler/java/java_string_field.cc', | |
| 230 'src/google/protobuf/compiler/java/java_string_field.h', | |
| 231 'src/google/protobuf/compiler/python/python_generator.cc', | 288 'src/google/protobuf/compiler/python/python_generator.cc', |
| 232 'src/google/protobuf/compiler/main.cc', | 289 'src/google/protobuf/compiler/python/python_generator.h', |
| 290 'src/google/protobuf/compiler/subprocess.cc', |
| 291 'src/google/protobuf/compiler/subprocess.h', |
| 292 'src/google/protobuf/compiler/zip_writer.cc', |
| 293 'src/google/protobuf/compiler/zip_writer.h', |
| 233 ], | 294 ], |
| 295 'variables': { |
| 296 'clang_warning_flags': [ |
| 297 # protobuf-3 contains a few functions that are unused. |
| 298 '-Wno-unused-function', |
| 299 ], |
| 300 }, |
| 234 'dependencies': [ | 301 'dependencies': [ |
| 235 'protobuf_full_do_not_use', | 302 'protobuf_full_do_not_use', |
| 236 ], | 303 ], |
| 237 'include_dirs': [ | 304 'include_dirs': [ |
| 238 '<(config_h_dir)', | |
| 239 'src/src', | 305 'src/src', |
| 240 ], | 306 ], |
| 241 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR
_FLAVOR)"!="ninja" | 307 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR
_FLAVOR)"!="ninja" |
| 242 'type': 'none', | 308 'type': 'none', |
| 243 'toolsets': ['host'], | 309 'toolsets': ['host'], |
| 244 'dependencies': [ | 310 'dependencies': [ |
| 245 'compile_protoc', | 311 'compile_protoc', |
| 246 ], | 312 ], |
| 247 'actions': [ | 313 'actions': [ |
| 248 { | 314 { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 264 ], | 330 ], |
| 265 }, | 331 }, |
| 266 { | 332 { |
| 267 # Generate the python module needed by all protoc-generated Python cod
e. | 333 # Generate the python module needed by all protoc-generated Python cod
e. |
| 268 'target_name': 'py_proto', | 334 'target_name': 'py_proto', |
| 269 'type': 'none', | 335 'type': 'none', |
| 270 'copies': [ | 336 'copies': [ |
| 271 { | 337 { |
| 272 'destination': '<(PRODUCT_DIR)/pyproto/google/', | 338 'destination': '<(PRODUCT_DIR)/pyproto/google/', |
| 273 'files': [ | 339 'files': [ |
| 274 # google/ module gets an empty __init__.py. | |
| 275 '__init__.py', | 340 '__init__.py', |
| 276 ], | 341 ], |
| 277 }, | 342 }, |
| 278 { | 343 { |
| 344 'destination': '<(PRODUCT_DIR)/pyproto/google/third_party/six/', |
| 345 'files': [ |
| 346 'third_party/six/six.py', |
| 347 ], |
| 348 }, |
| 349 { |
| 279 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', | 350 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', |
| 280 'files': [ | 351 'files': [ |
| 281 'python/google/protobuf/__init__.py', | 352 'python/google/protobuf/__init__.py', |
| 282 'python/google/protobuf/descriptor.py', | 353 'python/google/protobuf/descriptor.py', |
| 283 'python/google/protobuf/descriptor_database.py', | 354 'python/google/protobuf/descriptor_database.py', |
| 284 'python/google/protobuf/descriptor_pool.py', | 355 'python/google/protobuf/descriptor_pool.py', |
| 356 'python/google/protobuf/json_format.py', |
| 285 'python/google/protobuf/message.py', | 357 'python/google/protobuf/message.py', |
| 286 'python/google/protobuf/message_factory.py', | 358 'python/google/protobuf/message_factory.py', |
| 359 'python/google/protobuf/proto_builder.py', |
| 287 'python/google/protobuf/reflection.py', | 360 'python/google/protobuf/reflection.py', |
| 288 'python/google/protobuf/service.py', | 361 'python/google/protobuf/service.py', |
| 289 'python/google/protobuf/service_reflection.py', | 362 'python/google/protobuf/service_reflection.py', |
| 363 'python/google/protobuf/symbol_database.py', |
| 364 'python/google/protobuf/text_encoding.py', |
| 290 'python/google/protobuf/text_format.py', | 365 'python/google/protobuf/text_format.py', |
| 291 | 366 |
| 292 # TODO(ncarter): protoc's python generator treats | 367 # TODO(ncarter): protoc's python generator treats |
| 293 # descriptor.proto specially, but it's not possible to trigger | 368 # descriptor.proto specially, but it's not possible to trigger |
| 294 # the special treatment unless you run protoc from ./src/src | 369 # the special treatment unless you run protoc from ./src/src |
| 295 # (the treatment is based on the path to the .proto file | 370 # (the treatment is based on the path to the .proto file |
| 296 # matching a constant exactly). I'm not sure how to convince | 371 # matching a constant exactly). I'm not sure how to convince |
| 297 # gyp to execute a rule from a different directory. Until this | 372 # gyp to execute a rule from a different directory. Until this |
| 298 # is resolved, use a copy of descriptor_pb2.py that I manually | 373 # is resolved, use a copy of descriptor_pb2.py that I manually |
| 299 # generated. | 374 # generated. |
| 300 'descriptor_pb2.py', | 375 'python/google/protobuf/descriptor_pb2.py', |
| 301 ], | 376 ], |
| 302 }, | 377 }, |
| 303 { | 378 { |
| 304 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', | 379 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', |
| 305 'files': [ | 380 'files': [ |
| 306 'python/google/protobuf/internal/__init__.py', | 381 'python/google/protobuf/internal/__init__.py', |
| 382 'python/google/protobuf/internal/_parameterized.py', |
| 307 'python/google/protobuf/internal/api_implementation.py', | 383 'python/google/protobuf/internal/api_implementation.py', |
| 308 'python/google/protobuf/internal/containers.py', | 384 'python/google/protobuf/internal/containers.py', |
| 309 'python/google/protobuf/internal/cpp_message.py', | |
| 310 'python/google/protobuf/internal/decoder.py', | 385 'python/google/protobuf/internal/decoder.py', |
| 311 'python/google/protobuf/internal/encoder.py', | 386 'python/google/protobuf/internal/encoder.py', |
| 312 'python/google/protobuf/internal/enum_type_wrapper.py', | 387 'python/google/protobuf/internal/enum_type_wrapper.py', |
| 313 'python/google/protobuf/internal/generator_test.py', | |
| 314 'python/google/protobuf/internal/message_listener.py', | 388 'python/google/protobuf/internal/message_listener.py', |
| 315 'python/google/protobuf/internal/python_message.py', | 389 'python/google/protobuf/internal/python_message.py', |
| 316 'python/google/protobuf/internal/type_checkers.py', | 390 'python/google/protobuf/internal/type_checkers.py', |
| 391 'python/google/protobuf/internal/well_known_types.py', |
| 317 'python/google/protobuf/internal/wire_format.py', | 392 'python/google/protobuf/internal/wire_format.py', |
| 318 ], | 393 ], |
| 319 }, | 394 }, |
| 320 ], | 395 ], |
| 321 # # We can't generate a proper descriptor_pb2.py -- see earlier comment. | 396 # # We can't generate a proper descriptor_pb2.py -- see earlier comment. |
| 322 # 'rules': [ | 397 # 'rules': [ |
| 323 # { | 398 # { |
| 324 # 'rule_name': 'genproto', | 399 # 'rule_name': 'genproto', |
| 325 # 'extension': 'proto', | 400 # 'extension': 'proto', |
| 326 # 'inputs': [ | 401 # 'inputs': [ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 'toolsets': ['host', 'target'], | 464 'toolsets': ['host', 'target'], |
| 390 }, | 465 }, |
| 391 { | 466 { |
| 392 'target_name': 'py_proto', | 467 'target_name': 'py_proto', |
| 393 'type': 'none', | 468 'type': 'none', |
| 394 }, | 469 }, |
| 395 ], | 470 ], |
| 396 }], | 471 }], |
| 397 ], | 472 ], |
| 398 } | 473 } |
| OLD | NEW |