Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: third_party/protobuf/protobuf.gyp

Issue 1291903002: Pull new version of protobuf sources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 4355, # 'this' used in base member initializer list
19 4506, # no definition for inline function
26 ], 20 ],
27 'defines!': [ 21 'defines!': [
28 'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself. 22 'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself.
29 ], 23 ],
30 }, 24 },
31 }], 25 }],
32 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj a"', { 26 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj a"', {
33 'variables': { 27 'variables': {
34 'ninja_output_dir': 'ninja-protoc', 28 'ninja_output_dir': 'ninja-protoc',
35 'ninja_product_dir': 29 'ninja_product_dir':
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 # 98 #
105 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl 99 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl
106 { 100 {
107 'target_name': 'protobuf_full_do_not_use', 101 'target_name': 'protobuf_full_do_not_use',
108 'type': 'static_library', 102 'type': 'static_library',
109 'toolsets': ['host','target'], 103 'toolsets': ['host','target'],
110 'includes': [ 104 'includes': [
111 'protobuf_lite.gypi', 105 'protobuf_lite.gypi',
112 ], 106 ],
113 'sources': [ 107 'sources': [
114 'src/google/protobuf/descriptor.h', 108 'src/google/protobuf/any.cc',
115 'src/google/protobuf/descriptor.pb.h', 109 'src/google/protobuf/any.h',
116 'src/google/protobuf/descriptor_database.h', 110 'src/google/protobuf/any.pb.cc',
117 'src/google/protobuf/dynamic_message.h', 111 'src/google/protobuf/any.pb.h',
118 'src/google/protobuf/generated_enum_reflection.h', 112 'src/google/protobuf/api.pb.cc',
119 'src/google/protobuf/generated_message_reflection.h', 113 'src/google/protobuf/api.pb.h',
120 'src/google/protobuf/message.h', 114 'src/google/protobuf/compiler/importer.cc',
121 'src/google/protobuf/reflection_ops.h',
122 'src/google/protobuf/service.h',
123 'src/google/protobuf/text_format.h',
124 'src/google/protobuf/wire_format.h',
125 'src/google/protobuf/io/gzip_stream.h',
126 'src/google/protobuf/io/printer.h',
127 'src/google/protobuf/io/tokenizer.h',
128 'src/google/protobuf/io/zero_copy_stream_impl.h',
129 'src/google/protobuf/compiler/code_generator.h',
130 'src/google/protobuf/compiler/command_line_interface.h',
131 'src/google/protobuf/compiler/importer.h', 115 'src/google/protobuf/compiler/importer.h',
132 'src/google/protobuf/compiler/java/java_doc_comment.cc', 116 'src/google/protobuf/compiler/parser.cc',
133 'src/google/protobuf/compiler/java/java_doc_comment.h',
134 'src/google/protobuf/compiler/parser.h', 117 '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',
139 'src/google/protobuf/stubs/substitute.h',
140 'src/google/protobuf/stubs/stl_util.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', 118 'src/google/protobuf/descriptor.cc',
148 'src/google/protobuf/descriptor.pb.cc', 119 'src/google/protobuf/descriptor.pb.cc',
149 'src/google/protobuf/descriptor_database.cc', 120 'src/google/protobuf/descriptor_database.cc',
121 'src/google/protobuf/descriptor_database.h',
122 'src/google/protobuf/duration.pb.cc',
123 'src/google/protobuf/duration.pb.h',
150 'src/google/protobuf/dynamic_message.cc', 124 'src/google/protobuf/dynamic_message.cc',
151 'src/google/protobuf/extension_set.cc', 125 'src/google/protobuf/dynamic_message.h',
152 'src/google/protobuf/extension_set.h', 126 'src/google/protobuf/empty.pb.cc',
127 'src/google/protobuf/empty.pb.h',
153 'src/google/protobuf/extension_set_heavy.cc', 128 'src/google/protobuf/extension_set_heavy.cc',
129 'src/google/protobuf/field_mask.pb.cc',
130 'src/google/protobuf/field_mask.pb.h',
154 'src/google/protobuf/generated_message_reflection.cc', 131 'src/google/protobuf/generated_message_reflection.cc',
132 'src/google/protobuf/generated_message_reflection.h',
133 # gzip_stream.cc pulls in zlib, but it's not actually used by
134 # protoc, just by test code; so instead of compiling zlib for the
135 # host, let's just exclude these.
136 # 'src/google/protobuf/io/gzip_stream.cc',
137 # 'src/google/protobuf/io/gzip_stream.h',
138 'src/google/protobuf/io/printer.cc',
139 'src/google/protobuf/io/printer.h',
140 'src/google/protobuf/io/strtod.cc',
141 'src/google/protobuf/io/strtod.h',
142 'src/google/protobuf/io/tokenizer.cc',
143 'src/google/protobuf/io/tokenizer.h',
144 'src/google/protobuf/io/zero_copy_stream_impl.cc',
145 'src/google/protobuf/io/zero_copy_stream_impl.h',
146 'src/google/protobuf/map.h',
147 'src/google/protobuf/map_entry_lite.h',
148 'src/google/protobuf/map_field.cc',
149 'src/google/protobuf/map_field.h',
150 'src/google/protobuf/map_field_inl.h',
151 'src/google/protobuf/map_field_lite.h',
152 'src/google/protobuf/map_type_handler.h',
155 'src/google/protobuf/message.cc', 153 'src/google/protobuf/message.cc',
156 'src/google/protobuf/reflection_ops.cc', 154 'src/google/protobuf/reflection_ops.cc',
155 'src/google/protobuf/reflection_ops.h',
157 'src/google/protobuf/service.cc', 156 'src/google/protobuf/service.cc',
157 'src/google/protobuf/service.h',
158 'src/google/protobuf/source_context.pb.cc',
159 'src/google/protobuf/source_context.pb.h',
160 'src/google/protobuf/struct.pb.cc',
161 'src/google/protobuf/struct.pb.h',
162 'src/google/protobuf/stubs/mathlimits.cc',
163 'src/google/protobuf/stubs/mathutil.h',
164 'src/google/protobuf/stubs/shared_ptr.h',
165 'src/google/protobuf/stubs/singleton.h',
166 'src/google/protobuf/stubs/status_macros.h',
167 'src/google/protobuf/stubs/structurally_valid.cc',
168 'src/google/protobuf/stubs/substitute.cc',
169 'src/google/protobuf/stubs/substitute.h',
158 'src/google/protobuf/text_format.cc', 170 'src/google/protobuf/text_format.cc',
171 'src/google/protobuf/text_format.h',
172 'src/google/protobuf/timestamp.pb.cc',
173 'src/google/protobuf/timestamp.pb.h',
174 'src/google/protobuf/type.pb.cc',
175 'src/google/protobuf/type.pb.h',
176 'src/google/protobuf/util/field_comparator.cc',
177 'src/google/protobuf/util/field_comparator.h',
178 'src/google/protobuf/util/internal/constants.h',
179 'src/google/protobuf/util/internal/datapiece.cc',
180 'src/google/protobuf/util/internal/datapiece.h',
181 'src/google/protobuf/util/internal/default_value_objectwriter.cc',
182 'src/google/protobuf/util/internal/default_value_objectwriter.h',
183 'src/google/protobuf/util/internal/error_listener.cc',
184 'src/google/protobuf/util/internal/error_listener.h',
185 'src/google/protobuf/util/internal/field_mask_utility.cc',
186 'src/google/protobuf/util/internal/field_mask_utility.h',
187 'src/google/protobuf/util/internal/json_escaping.cc',
188 'src/google/protobuf/util/internal/json_escaping.h',
189 'src/google/protobuf/util/internal/json_objectwriter.cc',
190 'src/google/protobuf/util/internal/json_objectwriter.h',
191 'src/google/protobuf/util/internal/json_stream_parser.cc',
192 'src/google/protobuf/util/internal/json_stream_parser.h',
193 'src/google/protobuf/util/internal/location_tracker.h',
194 'src/google/protobuf/util/internal/object_location_tracker.h',
195 'src/google/protobuf/util/internal/object_source.h',
196 'src/google/protobuf/util/internal/object_writer.cc',
197 'src/google/protobuf/util/internal/object_writer.h',
198 'src/google/protobuf/util/internal/protostream_objectsource.cc',
199 'src/google/protobuf/util/internal/protostream_objectsource.h',
200 'src/google/protobuf/util/internal/protostream_objectwriter.cc',
201 'src/google/protobuf/util/internal/protostream_objectwriter.h',
202 'src/google/protobuf/util/internal/snake2camel_objectwriter.h',
203 'src/google/protobuf/util/internal/structured_objectwriter.h',
204 'src/google/protobuf/util/internal/type_info.cc',
205 'src/google/protobuf/util/internal/type_info.h',
206 'src/google/protobuf/util/internal/type_info_test_helper.cc',
207 'src/google/protobuf/util/internal/type_info_test_helper.h',
208 'src/google/protobuf/util/internal/utility.cc',
209 'src/google/protobuf/util/internal/utility.h',
210 'src/google/protobuf/util/json_util.cc',
211 'src/google/protobuf/util/json_util.h',
212 'src/google/protobuf/util/message_differencer.cc',
213 'src/google/protobuf/util/message_differencer.h',
214 'src/google/protobuf/util/type_resolver.h',
215 'src/google/protobuf/util/type_resolver_util.cc',
216 'src/google/protobuf/util/type_resolver_util.h',
159 'src/google/protobuf/wire_format.cc', 217 'src/google/protobuf/wire_format.cc',
160 # This file pulls in zlib, but it's not actually used by protoc, so 218 'src/google/protobuf/wire_format.h',
161 # instead of compiling zlib for the host, let's just exclude this. 219 'src/google/protobuf/wrappers.pb.cc',
162 # 'src/src/google/protobuf/io/gzip_stream.cc', 220 '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 ], 221 ],
169 }, 222 },
170 { 223 {
171 'target_name': 'protoc', 224 'target_name': 'protoc',
172 'conditions': [ 225 'conditions': [
173 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni nja"', { 226 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni nja"', {
174 'type': 'executable', 227 'type': 'executable',
175 'toolsets': ['host'], 228 'toolsets': ['host'],
176 'sources': [ 229 'sources': [
177 'src/google/protobuf/compiler/code_generator.cc', 230 'src/google/protobuf/compiler/code_generator.cc',
231 'src/google/protobuf/compiler/code_generator.h',
178 'src/google/protobuf/compiler/command_line_interface.cc', 232 'src/google/protobuf/compiler/command_line_interface.cc',
179 'src/google/protobuf/compiler/plugin.cc', 233 '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', 234 'src/google/protobuf/compiler/cpp/cpp_enum.cc',
186 'src/google/protobuf/compiler/cpp/cpp_enum.h', 235 'src/google/protobuf/compiler/cpp/cpp_enum.h',
187 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', 236 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc',
188 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', 237 'src/google/protobuf/compiler/cpp/cpp_enum_field.h',
189 'src/google/protobuf/compiler/cpp/cpp_extension.cc', 238 'src/google/protobuf/compiler/cpp/cpp_extension.cc',
190 'src/google/protobuf/compiler/cpp/cpp_extension.h', 239 'src/google/protobuf/compiler/cpp/cpp_extension.h',
191 'src/google/protobuf/compiler/cpp/cpp_field.cc', 240 'src/google/protobuf/compiler/cpp/cpp_field.cc',
192 'src/google/protobuf/compiler/cpp/cpp_field.h', 241 'src/google/protobuf/compiler/cpp/cpp_field.h',
193 'src/google/protobuf/compiler/cpp/cpp_file.cc', 242 'src/google/protobuf/compiler/cpp/cpp_file.cc',
194 'src/google/protobuf/compiler/cpp/cpp_file.h', 243 'src/google/protobuf/compiler/cpp/cpp_file.h',
195 'src/google/protobuf/compiler/cpp/cpp_generator.cc', 244 'src/google/protobuf/compiler/cpp/cpp_generator.cc',
245 'src/google/protobuf/compiler/cpp/cpp_generator.h',
196 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', 246 'src/google/protobuf/compiler/cpp/cpp_helpers.cc',
197 'src/google/protobuf/compiler/cpp/cpp_helpers.h', 247 'src/google/protobuf/compiler/cpp/cpp_helpers.h',
248 'src/google/protobuf/compiler/cpp/cpp_map_field.cc',
249 'src/google/protobuf/compiler/cpp/cpp_map_field.h',
198 'src/google/protobuf/compiler/cpp/cpp_message.cc', 250 'src/google/protobuf/compiler/cpp/cpp_message.cc',
199 'src/google/protobuf/compiler/cpp/cpp_message.h', 251 'src/google/protobuf/compiler/cpp/cpp_message.h',
200 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', 252 'src/google/protobuf/compiler/cpp/cpp_message_field.cc',
201 'src/google/protobuf/compiler/cpp/cpp_message_field.h', 253 'src/google/protobuf/compiler/cpp/cpp_message_field.h',
254 'src/google/protobuf/compiler/cpp/cpp_options.h',
202 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', 255 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc',
203 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', 256 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h',
204 'src/google/protobuf/compiler/cpp/cpp_service.cc', 257 'src/google/protobuf/compiler/cpp/cpp_service.cc',
205 'src/google/protobuf/compiler/cpp/cpp_service.h', 258 'src/google/protobuf/compiler/cpp/cpp_service.h',
206 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', 259 'src/google/protobuf/compiler/cpp/cpp_string_field.cc',
207 'src/google/protobuf/compiler/cpp/cpp_string_field.h', 260 'src/google/protobuf/compiler/cpp/cpp_string_field.h',
261 'src/google/protobuf/compiler/csharp/csharp_enum.cc',
262 'src/google/protobuf/compiler/csharp/csharp_enum.h',
263 'src/google/protobuf/compiler/csharp/csharp_enum_field.cc',
264 'src/google/protobuf/compiler/csharp/csharp_enum_field.h',
265 'src/google/protobuf/compiler/csharp/csharp_field_base.cc',
266 'src/google/protobuf/compiler/csharp/csharp_field_base.h',
267 'src/google/protobuf/compiler/csharp/csharp_generator.cc',
268 'src/google/protobuf/compiler/csharp/csharp_generator.h',
269 'src/google/protobuf/compiler/csharp/csharp_helpers.cc',
270 'src/google/protobuf/compiler/csharp/csharp_helpers.h',
271 'src/google/protobuf/compiler/csharp/csharp_map_field.cc',
272 'src/google/protobuf/compiler/csharp/csharp_map_field.h',
273 'src/google/protobuf/compiler/csharp/csharp_message.cc',
274 'src/google/protobuf/compiler/csharp/csharp_message.h',
275 'src/google/protobuf/compiler/csharp/csharp_message_field.cc',
276 'src/google/protobuf/compiler/csharp/csharp_message_field.h',
277 'src/google/protobuf/compiler/csharp/csharp_names.h',
278 'src/google/protobuf/compiler/csharp/csharp_primitive_field.cc',
279 'src/google/protobuf/compiler/csharp/csharp_primitive_field.h',
280 'src/google/protobuf/compiler/csharp/csharp_repeated_enum_field. cc',
281 'src/google/protobuf/compiler/csharp/csharp_repeated_enum_field. h',
282 'src/google/protobuf/compiler/csharp/csharp_repeated_message_fie ld.cc',
283 'src/google/protobuf/compiler/csharp/csharp_repeated_message_fie ld.h',
284 'src/google/protobuf/compiler/csharp/csharp_repeated_primitive_f ield.cc',
285 'src/google/protobuf/compiler/csharp/csharp_repeated_primitive_f ield.h',
286 'src/google/protobuf/compiler/csharp/csharp_source_generator_bas e.cc',
287 'src/google/protobuf/compiler/csharp/csharp_source_generator_bas e.h',
288 'src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc',
289 'src/google/protobuf/compiler/csharp/csharp_umbrella_class.h',
290 'src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc',
291 'src/google/protobuf/compiler/csharp/csharp_wrapper_field.h',
292 'src/google/protobuf/compiler/java/java_context.cc',
293 'src/google/protobuf/compiler/java/java_context.h',
294 'src/google/protobuf/compiler/java/java_doc_comment.cc',
295 'src/google/protobuf/compiler/java/java_doc_comment.h',
208 'src/google/protobuf/compiler/java/java_enum.cc', 296 'src/google/protobuf/compiler/java/java_enum.cc',
209 'src/google/protobuf/compiler/java/java_enum.h', 297 'src/google/protobuf/compiler/java/java_enum.h',
210 'src/google/protobuf/compiler/java/java_enum_field.cc', 298 'src/google/protobuf/compiler/java/java_enum_field.cc',
211 'src/google/protobuf/compiler/java/java_enum_field.h', 299 'src/google/protobuf/compiler/java/java_enum_field.h',
300 'src/google/protobuf/compiler/java/java_enum_field_lite.cc',
301 'src/google/protobuf/compiler/java/java_enum_field_lite.h',
212 'src/google/protobuf/compiler/java/java_extension.cc', 302 'src/google/protobuf/compiler/java/java_extension.cc',
213 'src/google/protobuf/compiler/java/java_extension.h', 303 'src/google/protobuf/compiler/java/java_extension.h',
214 'src/google/protobuf/compiler/java/java_field.cc', 304 'src/google/protobuf/compiler/java/java_field.cc',
215 'src/google/protobuf/compiler/java/java_field.h', 305 'src/google/protobuf/compiler/java/java_field.h',
216 'src/google/protobuf/compiler/java/java_file.cc', 306 'src/google/protobuf/compiler/java/java_file.cc',
217 'src/google/protobuf/compiler/java/java_file.h', 307 'src/google/protobuf/compiler/java/java_file.h',
218 'src/google/protobuf/compiler/java/java_generator.cc', 308 'src/google/protobuf/compiler/java/java_generator.cc',
309 'src/google/protobuf/compiler/java/java_generator.h',
310 'src/google/protobuf/compiler/java/java_generator_factory.cc',
311 'src/google/protobuf/compiler/java/java_generator_factory.h',
219 'src/google/protobuf/compiler/java/java_helpers.cc', 312 'src/google/protobuf/compiler/java/java_helpers.cc',
220 'src/google/protobuf/compiler/java/java_helpers.h', 313 'src/google/protobuf/compiler/java/java_helpers.h',
314 'src/google/protobuf/compiler/java/java_lazy_message_field.cc',
315 'src/google/protobuf/compiler/java/java_lazy_message_field.h',
316 'src/google/protobuf/compiler/java/java_lazy_message_field_lite. cc',
317 'src/google/protobuf/compiler/java/java_lazy_message_field_lite. h',
318 'src/google/protobuf/compiler/java/java_map_field.cc',
319 'src/google/protobuf/compiler/java/java_map_field.h',
320 'src/google/protobuf/compiler/java/java_map_field_lite.cc',
321 'src/google/protobuf/compiler/java/java_map_field_lite.h',
221 'src/google/protobuf/compiler/java/java_message.cc', 322 'src/google/protobuf/compiler/java/java_message.cc',
222 'src/google/protobuf/compiler/java/java_message.h', 323 'src/google/protobuf/compiler/java/java_message.h',
324 'src/google/protobuf/compiler/java/java_message_builder.cc',
325 'src/google/protobuf/compiler/java/java_message_builder.h',
326 'src/google/protobuf/compiler/java/java_message_builder_lite.cc' ,
327 'src/google/protobuf/compiler/java/java_message_builder_lite.h',
223 'src/google/protobuf/compiler/java/java_message_field.cc', 328 'src/google/protobuf/compiler/java/java_message_field.cc',
224 'src/google/protobuf/compiler/java/java_message_field.h', 329 'src/google/protobuf/compiler/java/java_message_field.h',
330 'src/google/protobuf/compiler/java/java_message_field_lite.cc',
331 'src/google/protobuf/compiler/java/java_message_field_lite.h',
332 'src/google/protobuf/compiler/java/java_message_lite.cc',
333 'src/google/protobuf/compiler/java/java_message_lite.h',
334 'src/google/protobuf/compiler/java/java_name_resolver.cc',
335 'src/google/protobuf/compiler/java/java_name_resolver.h',
225 'src/google/protobuf/compiler/java/java_primitive_field.cc', 336 'src/google/protobuf/compiler/java/java_primitive_field.cc',
226 'src/google/protobuf/compiler/java/java_primitive_field.h', 337 'src/google/protobuf/compiler/java/java_primitive_field.h',
338 'src/google/protobuf/compiler/java/java_primitive_field_lite.cc' ,
339 'src/google/protobuf/compiler/java/java_primitive_field_lite.h',
227 'src/google/protobuf/compiler/java/java_service.cc', 340 'src/google/protobuf/compiler/java/java_service.cc',
228 'src/google/protobuf/compiler/java/java_service.h', 341 'src/google/protobuf/compiler/java/java_service.h',
342 'src/google/protobuf/compiler/java/java_shared_code_generator.cc ',
343 'src/google/protobuf/compiler/java/java_shared_code_generator.h' ,
229 'src/google/protobuf/compiler/java/java_string_field.cc', 344 'src/google/protobuf/compiler/java/java_string_field.cc',
230 'src/google/protobuf/compiler/java/java_string_field.h', 345 'src/google/protobuf/compiler/java/java_string_field.h',
346 'src/google/protobuf/compiler/java/java_string_field_lite.cc',
347 'src/google/protobuf/compiler/java/java_string_field_lite.h',
348 'src/google/protobuf/compiler/javanano/javanano_enum.cc',
349 'src/google/protobuf/compiler/javanano/javanano_enum.h',
350 'src/google/protobuf/compiler/javanano/javanano_enum_field.cc',
351 'src/google/protobuf/compiler/javanano/javanano_enum_field.h',
352 'src/google/protobuf/compiler/javanano/javanano_extension.cc',
353 'src/google/protobuf/compiler/javanano/javanano_extension.h',
354 'src/google/protobuf/compiler/javanano/javanano_field.cc',
355 'src/google/protobuf/compiler/javanano/javanano_field.h',
356 'src/google/protobuf/compiler/javanano/javanano_file.cc',
357 'src/google/protobuf/compiler/javanano/javanano_file.h',
358 'src/google/protobuf/compiler/javanano/javanano_generator.cc',
359 'src/google/protobuf/compiler/javanano/javanano_generator.h',
360 'src/google/protobuf/compiler/javanano/javanano_helpers.cc',
361 'src/google/protobuf/compiler/javanano/javanano_helpers.h',
362 'src/google/protobuf/compiler/javanano/javanano_map_field.cc',
363 'src/google/protobuf/compiler/javanano/javanano_map_field.h',
364 'src/google/protobuf/compiler/javanano/javanano_message.cc',
365 'src/google/protobuf/compiler/javanano/javanano_message.h',
366 'src/google/protobuf/compiler/javanano/javanano_message_field.cc ',
367 'src/google/protobuf/compiler/javanano/javanano_message_field.h' ,
368 'src/google/protobuf/compiler/javanano/javanano_params.h',
369 'src/google/protobuf/compiler/javanano/javanano_primitive_field. cc',
370 'src/google/protobuf/compiler/javanano/javanano_primitive_field. h',
371 'src/google/protobuf/compiler/main.cc',
372 'src/google/protobuf/compiler/objectivec/objectivec_enum.cc',
373 'src/google/protobuf/compiler/objectivec/objectivec_enum.h',
374 'src/google/protobuf/compiler/objectivec/objectivec_enum_field.c c',
375 'src/google/protobuf/compiler/objectivec/objectivec_enum_field.h ',
376 'src/google/protobuf/compiler/objectivec/objectivec_extension.cc ',
377 'src/google/protobuf/compiler/objectivec/objectivec_extension.h' ,
378 'src/google/protobuf/compiler/objectivec/objectivec_field.cc',
379 'src/google/protobuf/compiler/objectivec/objectivec_field.h',
380 'src/google/protobuf/compiler/objectivec/objectivec_file.cc',
381 'src/google/protobuf/compiler/objectivec/objectivec_file.h',
382 'src/google/protobuf/compiler/objectivec/objectivec_generator.cc ',
383 'src/google/protobuf/compiler/objectivec/objectivec_generator.h' ,
384 'src/google/protobuf/compiler/objectivec/objectivec_helpers.cc',
385 'src/google/protobuf/compiler/objectivec/objectivec_helpers.h',
386 'src/google/protobuf/compiler/objectivec/objectivec_map_field.cc ',
387 'src/google/protobuf/compiler/objectivec/objectivec_map_field.h' ,
388 'src/google/protobuf/compiler/objectivec/objectivec_message.cc',
389 'src/google/protobuf/compiler/objectivec/objectivec_message.h',
390 'src/google/protobuf/compiler/objectivec/objectivec_message_fiel d.cc',
391 'src/google/protobuf/compiler/objectivec/objectivec_message_fiel d.h',
392 'src/google/protobuf/compiler/objectivec/objectivec_oneof.cc',
393 'src/google/protobuf/compiler/objectivec/objectivec_oneof.h',
394 'src/google/protobuf/compiler/objectivec/objectivec_primitive_fi eld.cc',
395 'src/google/protobuf/compiler/objectivec/objectivec_primitive_fi eld.h',
396 'src/google/protobuf/compiler/plugin.cc',
397 'src/google/protobuf/compiler/plugin.h',
398 'src/google/protobuf/compiler/plugin.pb.cc',
399 'src/google/protobuf/compiler/plugin.pb.h',
231 'src/google/protobuf/compiler/python/python_generator.cc', 400 'src/google/protobuf/compiler/python/python_generator.cc',
232 'src/google/protobuf/compiler/main.cc', 401 'src/google/protobuf/compiler/python/python_generator.h',
402 'src/google/protobuf/compiler/ruby/ruby_generator.cc',
403 'src/google/protobuf/compiler/ruby/ruby_generator.h',
404 'src/google/protobuf/compiler/subprocess.cc',
405 'src/google/protobuf/compiler/subprocess.h',
406 'src/google/protobuf/compiler/zip_writer.cc',
407 'src/google/protobuf/compiler/zip_writer.h',
233 ], 408 ],
234 'dependencies': [ 409 'dependencies': [
235 'protobuf_full_do_not_use', 410 'protobuf_full_do_not_use',
236 ], 411 ],
237 'include_dirs': [
238 '<(config_h_dir)',
239 'src/src',
240 ],
241 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR _FLAVOR)"!="ninja" 412 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR _FLAVOR)"!="ninja"
242 'type': 'none', 413 'type': 'none',
243 'toolsets': ['host'], 414 'toolsets': ['host'],
244 'dependencies': [ 415 'dependencies': [
245 'compile_protoc', 416 'compile_protoc',
246 ], 417 ],
247 'actions': [ 418 'actions': [
248 { 419 {
249 'action_name': 'copy protoc', 420 'action_name': 'copy protoc',
250 'inputs': [ 421 'inputs': [
(...skipping 13 matching lines...) Expand all
264 ], 435 ],
265 }, 436 },
266 { 437 {
267 # Generate the python module needed by all protoc-generated Python cod e. 438 # Generate the python module needed by all protoc-generated Python cod e.
268 'target_name': 'py_proto', 439 'target_name': 'py_proto',
269 'type': 'none', 440 'type': 'none',
270 'copies': [ 441 'copies': [
271 { 442 {
272 'destination': '<(PRODUCT_DIR)/pyproto/google/', 443 'destination': '<(PRODUCT_DIR)/pyproto/google/',
273 'files': [ 444 'files': [
274 # google/ module gets an empty __init__.py. 445 'python/google/__init__.py',
275 '__init__.py',
276 ], 446 ],
277 }, 447 },
278 { 448 {
279 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', 449 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf',
280 'files': [ 450 'files': [
281 'python/google/protobuf/__init__.py', 451 'python/google/protobuf/__init__.py',
282 'python/google/protobuf/descriptor.py', 452 'python/google/protobuf/descriptor.py',
283 'python/google/protobuf/descriptor_database.py', 453 'python/google/protobuf/descriptor_database.py',
454 # TODO(ncarter): protoc's python generator treats
455 # descriptor.proto specially, but only when the input path is
456 # exactly "google/protobuf/descriptor.proto". I'm not sure how
457 # to execute a rule from a different directory. For now, use a
458 # manually-generated copy of descriptor_pb2.py.
459 'python/google/protobuf/descriptor_pb2.py',
284 'python/google/protobuf/descriptor_pool.py', 460 'python/google/protobuf/descriptor_pool.py',
285 'python/google/protobuf/message.py', 461 'python/google/protobuf/message.py',
286 'python/google/protobuf/message_factory.py', 462 'python/google/protobuf/message_factory.py',
463 'python/google/protobuf/proto_builder.py',
287 'python/google/protobuf/reflection.py', 464 'python/google/protobuf/reflection.py',
288 'python/google/protobuf/service.py', 465 'python/google/protobuf/service.py',
289 'python/google/protobuf/service_reflection.py', 466 'python/google/protobuf/service_reflection.py',
467 'python/google/protobuf/symbol_database.py',
468 'python/google/protobuf/text_encoding.py',
290 'python/google/protobuf/text_format.py', 469 'python/google/protobuf/text_format.py',
291
292 # TODO(ncarter): protoc's python generator treats
293 # descriptor.proto specially, but it's not possible to trigger
294 # the special treatment unless you run protoc from ./src/src
295 # (the treatment is based on the path to the .proto file
296 # matching a constant exactly). I'm not sure how to convince
297 # gyp to execute a rule from a different directory. Until this
298 # is resolved, use a copy of descriptor_pb2.py that I manually
299 # generated.
300 'descriptor_pb2.py',
301 ], 470 ],
302 }, 471 },
303 { 472 {
304 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', 473 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal',
305 'files': [ 474 'files': [
306 'python/google/protobuf/internal/__init__.py', 475 'python/google/protobuf/internal/__init__.py',
307 'python/google/protobuf/internal/api_implementation.py', 476 'python/google/protobuf/internal/api_implementation.py',
308 'python/google/protobuf/internal/containers.py', 477 'python/google/protobuf/internal/containers.py',
309 'python/google/protobuf/internal/cpp_message.py',
310 'python/google/protobuf/internal/decoder.py', 478 'python/google/protobuf/internal/decoder.py',
311 'python/google/protobuf/internal/encoder.py', 479 'python/google/protobuf/internal/encoder.py',
312 'python/google/protobuf/internal/enum_type_wrapper.py', 480 'python/google/protobuf/internal/enum_type_wrapper.py',
313 'python/google/protobuf/internal/generator_test.py', 481 'python/google/protobuf/internal/generator_test.py',
314 'python/google/protobuf/internal/message_listener.py', 482 'python/google/protobuf/internal/message_listener.py',
315 'python/google/protobuf/internal/python_message.py', 483 'python/google/protobuf/internal/python_message.py',
316 'python/google/protobuf/internal/type_checkers.py', 484 'python/google/protobuf/internal/type_checkers.py',
317 'python/google/protobuf/internal/wire_format.py', 485 'python/google/protobuf/internal/wire_format.py',
318 ], 486 ],
319 }, 487 },
488 {
489 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/pyext',
490 'files': [
491 'python/google/protobuf/pyext/__init__.py',
492 'python/google/protobuf/pyext/cpp_message.py',
493 ],
494 },
320 ], 495 ],
321 # # We can't generate a proper descriptor_pb2.py -- see earlier comment. 496 },
322 # 'rules': [
323 # {
324 # 'rule_name': 'genproto',
325 # 'extension': 'proto',
326 # 'inputs': [
327 # '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
328 # ],
329 # 'variables': {
330 # # The protoc compiler requires a proto_path argument with the
331 # # directory containing the .proto file.
332 # 'rule_input_relpath': 'src/google/protobuf',
333 # },
334 # 'outputs': [
335 # '<(PRODUCT_DIR)/pyproto/google/protobuf/<(RULE_INPUT_ROOT)_pb2 .py',
336 # ],
337 # 'action': [
338 # '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX) ',
339 # '-I./src',
340 # '-I.',
341 # '--python_out=<(PRODUCT_DIR)/pyproto/google/protobuf',
342 # 'google/protobuf/descriptor.proto',
343 # ],
344 # 'message': 'Generating Python code from <(RULE_INPUT_PATH)',
345 # },
346 # ],
347 # 'dependencies': [
348 # 'protoc#host',
349 # ],
350 # 'sources': [
351 # 'src/google/protobuf/descriptor.proto',
352 # ],
353 },
354 ], 497 ],
355 }, { # use_system_protobuf==1 498 }, { # use_system_protobuf==1
356 'targets': [ 499 'targets': [
357 { 500 {
358 'target_name': 'protobuf_lite', 501 'target_name': 'protobuf_lite',
359 'type': 'none', 502 'type': 'none',
360 'direct_dependent_settings': { 503 'direct_dependent_settings': {
361 'cflags': [ 504 'cflags': [
362 # Use full protobuf, because vanilla protobuf doesn't have 505 # Use full protobuf, because vanilla protobuf doesn't have
363 # our custom patch to retain unknown fields in lite mode. 506 # our custom patch to retain unknown fields in lite mode.
(...skipping 25 matching lines...) Expand all
389 'toolsets': ['host', 'target'], 532 'toolsets': ['host', 'target'],
390 }, 533 },
391 { 534 {
392 'target_name': 'py_proto', 535 'target_name': 'py_proto',
393 'type': 'none', 536 'type': 'none',
394 }, 537 },
395 ], 538 ],
396 }], 539 }],
397 ], 540 ],
398 } 541 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698