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