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

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

Issue 1322483002: Revert https://codereview.chromium.org/1291903002 (protobuf roll). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « third_party/protobuf/post_process_dist.sh ('k') | third_party/protobuf/protobuf-lite.pc.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'target_defaults': { 8 'conditions': [
9 'conditions': [ 9 ['OS!="win"', {
10 ['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': {
11 'msvs_disabled_warnings': [ 20 'msvs_disabled_warnings': [
12 4018, # signed/unsigned mismatch in comparison 21 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 22 4244, # implicit conversion, possible loss of data
23 4355, # 'this' used in base member initializer list
16 4267, # size_t to int truncation 24 4267, # size_t to int truncation
17 4291, # no matching operator delete for a placement new 25 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
20 ], 26 ],
21 'defines!': [ 27 'defines!': [
22 'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself. 28 'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself.
23 ], 29 ],
24 }], 30 },
25 ['OS=="mac" or OS=="ios"', { 31 }],
26 'defines': [
27 # Chromium builds don't yet support __thread on Mac -- not sure if
28 # the limiting factor is using libc++ or having OS X >=10.7.
29 # Remove this for Mac once the above aren't issues.
30 #
31 # The "ios" bit is for host binaries built on the Mac as part of
32 # the iOS build process -- target binaries would work anyway due
33 # to the preprocessor checks for iOS in the codebase. What we
34 # really want is something like
35 # '_toolchain="host" and host_os=="mac"', but host_os isn't
36 # properly defined in all cases, and it's not worth trying to fix
37 # it, especially since we can do this more correctly in GN.
38 'GOOGLE_PROTOBUF_NO_THREADLOCAL',
39 ],
40 }],
41 ],
42 },
43 'conditions': [
44 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj a"', { 32 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj a"', {
45 'variables': { 33 'variables': {
46 'ninja_output_dir': 'ninja-protoc', 34 'ninja_output_dir': 'ninja-protoc',
47 'ninja_product_dir': 35 'ninja_product_dir':
48 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)', 36 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)',
49 # Gyp to rerun 37 # Gyp to rerun
50 're_run_targets': [ 38 're_run_targets': [
51 'third_party/protobuf/protobuf.gyp', 39 'third_party/protobuf/protobuf.gyp',
52 ], 40 ],
53 }, 41 },
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 # 104 #
117 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl 105 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl
118 { 106 {
119 'target_name': 'protobuf_full_do_not_use', 107 'target_name': 'protobuf_full_do_not_use',
120 'type': 'static_library', 108 'type': 'static_library',
121 'toolsets': ['host','target'], 109 'toolsets': ['host','target'],
122 'includes': [ 110 'includes': [
123 'protobuf_lite.gypi', 111 'protobuf_lite.gypi',
124 ], 112 ],
125 'sources': [ 113 'sources': [
126 'src/google/protobuf/any.cc', 114 'src/google/protobuf/descriptor.h',
127 'src/google/protobuf/any.h', 115 'src/google/protobuf/descriptor.pb.h',
128 'src/google/protobuf/any.pb.cc', 116 'src/google/protobuf/descriptor_database.h',
129 'src/google/protobuf/any.pb.h', 117 'src/google/protobuf/dynamic_message.h',
130 'src/google/protobuf/api.pb.cc', 118 'src/google/protobuf/generated_enum_reflection.h',
131 'src/google/protobuf/api.pb.h', 119 'src/google/protobuf/generated_message_reflection.h',
132 'src/google/protobuf/compiler/importer.cc', 120 'src/google/protobuf/message.h',
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',
133 'src/google/protobuf/compiler/importer.h', 131 'src/google/protobuf/compiler/importer.h',
134 'src/google/protobuf/compiler/parser.cc', 132 'src/google/protobuf/compiler/java/java_doc_comment.cc',
133 'src/google/protobuf/compiler/java/java_doc_comment.h',
135 'src/google/protobuf/compiler/parser.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',
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
136 'src/google/protobuf/descriptor.cc', 147 'src/google/protobuf/descriptor.cc',
137 'src/google/protobuf/descriptor.pb.cc', 148 'src/google/protobuf/descriptor.pb.cc',
138 'src/google/protobuf/descriptor_database.cc', 149 'src/google/protobuf/descriptor_database.cc',
139 'src/google/protobuf/descriptor_database.h',
140 'src/google/protobuf/duration.pb.cc',
141 'src/google/protobuf/duration.pb.h',
142 'src/google/protobuf/dynamic_message.cc', 150 'src/google/protobuf/dynamic_message.cc',
143 'src/google/protobuf/dynamic_message.h', 151 'src/google/protobuf/extension_set.cc',
144 'src/google/protobuf/empty.pb.cc', 152 'src/google/protobuf/extension_set.h',
145 'src/google/protobuf/empty.pb.h',
146 'src/google/protobuf/extension_set_heavy.cc', 153 'src/google/protobuf/extension_set_heavy.cc',
147 'src/google/protobuf/field_mask.pb.cc',
148 'src/google/protobuf/field_mask.pb.h',
149 'src/google/protobuf/generated_message_reflection.cc', 154 'src/google/protobuf/generated_message_reflection.cc',
150 'src/google/protobuf/generated_message_reflection.h',
151 # gzip_stream.cc pulls in zlib, but it's not actually used by
152 # protoc, just by test code; so instead of compiling zlib for the
153 # host, let's just exclude these.
154 # 'src/google/protobuf/io/gzip_stream.cc',
155 # 'src/google/protobuf/io/gzip_stream.h',
156 'src/google/protobuf/io/printer.cc',
157 'src/google/protobuf/io/printer.h',
158 'src/google/protobuf/io/strtod.cc',
159 'src/google/protobuf/io/strtod.h',
160 'src/google/protobuf/io/tokenizer.cc',
161 'src/google/protobuf/io/tokenizer.h',
162 'src/google/protobuf/io/zero_copy_stream_impl.cc',
163 'src/google/protobuf/io/zero_copy_stream_impl.h',
164 'src/google/protobuf/map.h',
165 'src/google/protobuf/map_entry_lite.h',
166 'src/google/protobuf/map_field.cc',
167 'src/google/protobuf/map_field.h',
168 'src/google/protobuf/map_field_inl.h',
169 'src/google/protobuf/map_field_lite.h',
170 'src/google/protobuf/map_type_handler.h',
171 'src/google/protobuf/message.cc', 155 'src/google/protobuf/message.cc',
172 'src/google/protobuf/reflection_ops.cc', 156 'src/google/protobuf/reflection_ops.cc',
173 'src/google/protobuf/reflection_ops.h',
174 'src/google/protobuf/service.cc', 157 'src/google/protobuf/service.cc',
175 'src/google/protobuf/service.h',
176 'src/google/protobuf/source_context.pb.cc',
177 'src/google/protobuf/source_context.pb.h',
178 'src/google/protobuf/struct.pb.cc',
179 'src/google/protobuf/struct.pb.h',
180 'src/google/protobuf/stubs/mathlimits.cc',
181 'src/google/protobuf/stubs/mathutil.h',
182 'src/google/protobuf/stubs/shared_ptr.h',
183 'src/google/protobuf/stubs/singleton.h',
184 'src/google/protobuf/stubs/status_macros.h',
185 'src/google/protobuf/stubs/structurally_valid.cc',
186 'src/google/protobuf/stubs/substitute.cc',
187 'src/google/protobuf/stubs/substitute.h',
188 'src/google/protobuf/text_format.cc', 158 'src/google/protobuf/text_format.cc',
189 'src/google/protobuf/text_format.h',
190 'src/google/protobuf/timestamp.pb.cc',
191 'src/google/protobuf/timestamp.pb.h',
192 'src/google/protobuf/type.pb.cc',
193 'src/google/protobuf/type.pb.h',
194 'src/google/protobuf/util/field_comparator.cc',
195 'src/google/protobuf/util/field_comparator.h',
196 'src/google/protobuf/util/internal/constants.h',
197 'src/google/protobuf/util/internal/datapiece.cc',
198 'src/google/protobuf/util/internal/datapiece.h',
199 'src/google/protobuf/util/internal/default_value_objectwriter.cc',
200 'src/google/protobuf/util/internal/default_value_objectwriter.h',
201 'src/google/protobuf/util/internal/error_listener.cc',
202 'src/google/protobuf/util/internal/error_listener.h',
203 'src/google/protobuf/util/internal/field_mask_utility.cc',
204 'src/google/protobuf/util/internal/field_mask_utility.h',
205 'src/google/protobuf/util/internal/json_escaping.cc',
206 'src/google/protobuf/util/internal/json_escaping.h',
207 'src/google/protobuf/util/internal/json_objectwriter.cc',
208 'src/google/protobuf/util/internal/json_objectwriter.h',
209 'src/google/protobuf/util/internal/json_stream_parser.cc',
210 'src/google/protobuf/util/internal/json_stream_parser.h',
211 'src/google/protobuf/util/internal/location_tracker.h',
212 'src/google/protobuf/util/internal/object_location_tracker.h',
213 'src/google/protobuf/util/internal/object_source.h',
214 'src/google/protobuf/util/internal/object_writer.cc',
215 'src/google/protobuf/util/internal/object_writer.h',
216 'src/google/protobuf/util/internal/protostream_objectsource.cc',
217 'src/google/protobuf/util/internal/protostream_objectsource.h',
218 'src/google/protobuf/util/internal/protostream_objectwriter.cc',
219 'src/google/protobuf/util/internal/protostream_objectwriter.h',
220 'src/google/protobuf/util/internal/snake2camel_objectwriter.h',
221 'src/google/protobuf/util/internal/structured_objectwriter.h',
222 'src/google/protobuf/util/internal/type_info.cc',
223 'src/google/protobuf/util/internal/type_info.h',
224 'src/google/protobuf/util/internal/type_info_test_helper.cc',
225 'src/google/protobuf/util/internal/type_info_test_helper.h',
226 'src/google/protobuf/util/internal/utility.cc',
227 'src/google/protobuf/util/internal/utility.h',
228 'src/google/protobuf/util/json_util.cc',
229 'src/google/protobuf/util/json_util.h',
230 'src/google/protobuf/util/message_differencer.cc',
231 'src/google/protobuf/util/message_differencer.h',
232 'src/google/protobuf/util/type_resolver.h',
233 'src/google/protobuf/util/type_resolver_util.cc',
234 'src/google/protobuf/util/type_resolver_util.h',
235 'src/google/protobuf/wire_format.cc', 159 'src/google/protobuf/wire_format.cc',
236 'src/google/protobuf/wire_format.h', 160 # This file pulls in zlib, but it's not actually used by protoc, so
237 'src/google/protobuf/wrappers.pb.cc', 161 # instead of compiling zlib for the host, let's just exclude this.
238 'src/google/protobuf/wrappers.pb.h', 162 # 'src/src/google/protobuf/io/gzip_stream.cc',
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',
239 ], 168 ],
240 }, 169 },
241 { 170 {
242 'target_name': 'protoc', 171 'target_name': 'protoc',
243 'conditions': [ 172 'conditions': [
244 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni nja"', { 173 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni nja"', {
245 'type': 'executable', 174 'type': 'executable',
246 'toolsets': ['host'], 175 'toolsets': ['host'],
247 'sources': [ 176 'sources': [
248 'src/google/protobuf/compiler/code_generator.cc', 177 'src/google/protobuf/compiler/code_generator.cc',
249 'src/google/protobuf/compiler/code_generator.h',
250 'src/google/protobuf/compiler/command_line_interface.cc', 178 'src/google/protobuf/compiler/command_line_interface.cc',
251 'src/google/protobuf/compiler/command_line_interface.h', 179 'src/google/protobuf/compiler/plugin.cc',
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',
252 'src/google/protobuf/compiler/cpp/cpp_enum.cc', 185 'src/google/protobuf/compiler/cpp/cpp_enum.cc',
253 'src/google/protobuf/compiler/cpp/cpp_enum.h', 186 'src/google/protobuf/compiler/cpp/cpp_enum.h',
254 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', 187 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc',
255 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', 188 'src/google/protobuf/compiler/cpp/cpp_enum_field.h',
256 'src/google/protobuf/compiler/cpp/cpp_extension.cc', 189 'src/google/protobuf/compiler/cpp/cpp_extension.cc',
257 'src/google/protobuf/compiler/cpp/cpp_extension.h', 190 'src/google/protobuf/compiler/cpp/cpp_extension.h',
258 'src/google/protobuf/compiler/cpp/cpp_field.cc', 191 'src/google/protobuf/compiler/cpp/cpp_field.cc',
259 'src/google/protobuf/compiler/cpp/cpp_field.h', 192 'src/google/protobuf/compiler/cpp/cpp_field.h',
260 'src/google/protobuf/compiler/cpp/cpp_file.cc', 193 'src/google/protobuf/compiler/cpp/cpp_file.cc',
261 'src/google/protobuf/compiler/cpp/cpp_file.h', 194 'src/google/protobuf/compiler/cpp/cpp_file.h',
262 'src/google/protobuf/compiler/cpp/cpp_generator.cc', 195 'src/google/protobuf/compiler/cpp/cpp_generator.cc',
263 'src/google/protobuf/compiler/cpp/cpp_generator.h',
264 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', 196 'src/google/protobuf/compiler/cpp/cpp_helpers.cc',
265 'src/google/protobuf/compiler/cpp/cpp_helpers.h', 197 'src/google/protobuf/compiler/cpp/cpp_helpers.h',
266 'src/google/protobuf/compiler/cpp/cpp_map_field.cc',
267 'src/google/protobuf/compiler/cpp/cpp_map_field.h',
268 'src/google/protobuf/compiler/cpp/cpp_message.cc', 198 'src/google/protobuf/compiler/cpp/cpp_message.cc',
269 'src/google/protobuf/compiler/cpp/cpp_message.h', 199 'src/google/protobuf/compiler/cpp/cpp_message.h',
270 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', 200 'src/google/protobuf/compiler/cpp/cpp_message_field.cc',
271 'src/google/protobuf/compiler/cpp/cpp_message_field.h', 201 'src/google/protobuf/compiler/cpp/cpp_message_field.h',
272 'src/google/protobuf/compiler/cpp/cpp_options.h',
273 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', 202 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc',
274 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', 203 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h',
275 'src/google/protobuf/compiler/cpp/cpp_service.cc', 204 'src/google/protobuf/compiler/cpp/cpp_service.cc',
276 'src/google/protobuf/compiler/cpp/cpp_service.h', 205 'src/google/protobuf/compiler/cpp/cpp_service.h',
277 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', 206 'src/google/protobuf/compiler/cpp/cpp_string_field.cc',
278 'src/google/protobuf/compiler/cpp/cpp_string_field.h', 207 'src/google/protobuf/compiler/cpp/cpp_string_field.h',
279 'src/google/protobuf/compiler/csharp/csharp_enum.cc',
280 'src/google/protobuf/compiler/csharp/csharp_enum.h',
281 'src/google/protobuf/compiler/csharp/csharp_enum_field.cc',
282 'src/google/protobuf/compiler/csharp/csharp_enum_field.h',
283 'src/google/protobuf/compiler/csharp/csharp_field_base.cc',
284 'src/google/protobuf/compiler/csharp/csharp_field_base.h',
285 'src/google/protobuf/compiler/csharp/csharp_generator.cc',
286 'src/google/protobuf/compiler/csharp/csharp_generator.h',
287 'src/google/protobuf/compiler/csharp/csharp_helpers.cc',
288 'src/google/protobuf/compiler/csharp/csharp_helpers.h',
289 'src/google/protobuf/compiler/csharp/csharp_map_field.cc',
290 'src/google/protobuf/compiler/csharp/csharp_map_field.h',
291 'src/google/protobuf/compiler/csharp/csharp_message.cc',
292 'src/google/protobuf/compiler/csharp/csharp_message.h',
293 'src/google/protobuf/compiler/csharp/csharp_message_field.cc',
294 'src/google/protobuf/compiler/csharp/csharp_message_field.h',
295 'src/google/protobuf/compiler/csharp/csharp_names.h',
296 'src/google/protobuf/compiler/csharp/csharp_primitive_field.cc',
297 'src/google/protobuf/compiler/csharp/csharp_primitive_field.h',
298 'src/google/protobuf/compiler/csharp/csharp_repeated_enum_field. cc',
299 'src/google/protobuf/compiler/csharp/csharp_repeated_enum_field. h',
300 'src/google/protobuf/compiler/csharp/csharp_repeated_message_fie ld.cc',
301 'src/google/protobuf/compiler/csharp/csharp_repeated_message_fie ld.h',
302 'src/google/protobuf/compiler/csharp/csharp_repeated_primitive_f ield.cc',
303 'src/google/protobuf/compiler/csharp/csharp_repeated_primitive_f ield.h',
304 'src/google/protobuf/compiler/csharp/csharp_source_generator_bas e.cc',
305 'src/google/protobuf/compiler/csharp/csharp_source_generator_bas e.h',
306 'src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc',
307 'src/google/protobuf/compiler/csharp/csharp_umbrella_class.h',
308 'src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc',
309 'src/google/protobuf/compiler/csharp/csharp_wrapper_field.h',
310 'src/google/protobuf/compiler/java/java_context.cc',
311 'src/google/protobuf/compiler/java/java_context.h',
312 'src/google/protobuf/compiler/java/java_doc_comment.cc',
313 'src/google/protobuf/compiler/java/java_doc_comment.h',
314 'src/google/protobuf/compiler/java/java_enum.cc', 208 'src/google/protobuf/compiler/java/java_enum.cc',
315 'src/google/protobuf/compiler/java/java_enum.h', 209 'src/google/protobuf/compiler/java/java_enum.h',
316 'src/google/protobuf/compiler/java/java_enum_field.cc', 210 'src/google/protobuf/compiler/java/java_enum_field.cc',
317 'src/google/protobuf/compiler/java/java_enum_field.h', 211 'src/google/protobuf/compiler/java/java_enum_field.h',
318 'src/google/protobuf/compiler/java/java_enum_field_lite.cc',
319 'src/google/protobuf/compiler/java/java_enum_field_lite.h',
320 'src/google/protobuf/compiler/java/java_extension.cc', 212 'src/google/protobuf/compiler/java/java_extension.cc',
321 'src/google/protobuf/compiler/java/java_extension.h', 213 'src/google/protobuf/compiler/java/java_extension.h',
322 'src/google/protobuf/compiler/java/java_field.cc', 214 'src/google/protobuf/compiler/java/java_field.cc',
323 'src/google/protobuf/compiler/java/java_field.h', 215 'src/google/protobuf/compiler/java/java_field.h',
324 'src/google/protobuf/compiler/java/java_file.cc', 216 'src/google/protobuf/compiler/java/java_file.cc',
325 'src/google/protobuf/compiler/java/java_file.h', 217 'src/google/protobuf/compiler/java/java_file.h',
326 'src/google/protobuf/compiler/java/java_generator.cc', 218 'src/google/protobuf/compiler/java/java_generator.cc',
327 'src/google/protobuf/compiler/java/java_generator.h',
328 'src/google/protobuf/compiler/java/java_generator_factory.cc',
329 'src/google/protobuf/compiler/java/java_generator_factory.h',
330 'src/google/protobuf/compiler/java/java_helpers.cc', 219 'src/google/protobuf/compiler/java/java_helpers.cc',
331 'src/google/protobuf/compiler/java/java_helpers.h', 220 'src/google/protobuf/compiler/java/java_helpers.h',
332 'src/google/protobuf/compiler/java/java_lazy_message_field.cc',
333 'src/google/protobuf/compiler/java/java_lazy_message_field.h',
334 'src/google/protobuf/compiler/java/java_lazy_message_field_lite. cc',
335 'src/google/protobuf/compiler/java/java_lazy_message_field_lite. h',
336 'src/google/protobuf/compiler/java/java_map_field.cc',
337 'src/google/protobuf/compiler/java/java_map_field.h',
338 'src/google/protobuf/compiler/java/java_map_field_lite.cc',
339 'src/google/protobuf/compiler/java/java_map_field_lite.h',
340 'src/google/protobuf/compiler/java/java_message.cc', 221 'src/google/protobuf/compiler/java/java_message.cc',
341 'src/google/protobuf/compiler/java/java_message.h', 222 'src/google/protobuf/compiler/java/java_message.h',
342 'src/google/protobuf/compiler/java/java_message_builder.cc',
343 'src/google/protobuf/compiler/java/java_message_builder.h',
344 'src/google/protobuf/compiler/java/java_message_builder_lite.cc' ,
345 'src/google/protobuf/compiler/java/java_message_builder_lite.h',
346 'src/google/protobuf/compiler/java/java_message_field.cc', 223 'src/google/protobuf/compiler/java/java_message_field.cc',
347 'src/google/protobuf/compiler/java/java_message_field.h', 224 'src/google/protobuf/compiler/java/java_message_field.h',
348 'src/google/protobuf/compiler/java/java_message_field_lite.cc',
349 'src/google/protobuf/compiler/java/java_message_field_lite.h',
350 'src/google/protobuf/compiler/java/java_message_lite.cc',
351 'src/google/protobuf/compiler/java/java_message_lite.h',
352 'src/google/protobuf/compiler/java/java_name_resolver.cc',
353 'src/google/protobuf/compiler/java/java_name_resolver.h',
354 'src/google/protobuf/compiler/java/java_primitive_field.cc', 225 'src/google/protobuf/compiler/java/java_primitive_field.cc',
355 'src/google/protobuf/compiler/java/java_primitive_field.h', 226 'src/google/protobuf/compiler/java/java_primitive_field.h',
356 'src/google/protobuf/compiler/java/java_primitive_field_lite.cc' ,
357 'src/google/protobuf/compiler/java/java_primitive_field_lite.h',
358 'src/google/protobuf/compiler/java/java_service.cc', 227 'src/google/protobuf/compiler/java/java_service.cc',
359 'src/google/protobuf/compiler/java/java_service.h', 228 'src/google/protobuf/compiler/java/java_service.h',
360 'src/google/protobuf/compiler/java/java_shared_code_generator.cc ',
361 'src/google/protobuf/compiler/java/java_shared_code_generator.h' ,
362 'src/google/protobuf/compiler/java/java_string_field.cc', 229 'src/google/protobuf/compiler/java/java_string_field.cc',
363 'src/google/protobuf/compiler/java/java_string_field.h', 230 'src/google/protobuf/compiler/java/java_string_field.h',
364 'src/google/protobuf/compiler/java/java_string_field_lite.cc', 231 'src/google/protobuf/compiler/python/python_generator.cc',
365 'src/google/protobuf/compiler/java/java_string_field_lite.h',
366 'src/google/protobuf/compiler/javanano/javanano_enum.cc',
367 'src/google/protobuf/compiler/javanano/javanano_enum.h',
368 'src/google/protobuf/compiler/javanano/javanano_enum_field.cc',
369 'src/google/protobuf/compiler/javanano/javanano_enum_field.h',
370 'src/google/protobuf/compiler/javanano/javanano_extension.cc',
371 'src/google/protobuf/compiler/javanano/javanano_extension.h',
372 'src/google/protobuf/compiler/javanano/javanano_field.cc',
373 'src/google/protobuf/compiler/javanano/javanano_field.h',
374 'src/google/protobuf/compiler/javanano/javanano_file.cc',
375 'src/google/protobuf/compiler/javanano/javanano_file.h',
376 'src/google/protobuf/compiler/javanano/javanano_generator.cc',
377 'src/google/protobuf/compiler/javanano/javanano_generator.h',
378 'src/google/protobuf/compiler/javanano/javanano_helpers.cc',
379 'src/google/protobuf/compiler/javanano/javanano_helpers.h',
380 'src/google/protobuf/compiler/javanano/javanano_map_field.cc',
381 'src/google/protobuf/compiler/javanano/javanano_map_field.h',
382 'src/google/protobuf/compiler/javanano/javanano_message.cc',
383 'src/google/protobuf/compiler/javanano/javanano_message.h',
384 'src/google/protobuf/compiler/javanano/javanano_message_field.cc ',
385 'src/google/protobuf/compiler/javanano/javanano_message_field.h' ,
386 'src/google/protobuf/compiler/javanano/javanano_params.h',
387 'src/google/protobuf/compiler/javanano/javanano_primitive_field. cc',
388 'src/google/protobuf/compiler/javanano/javanano_primitive_field. h',
389 'src/google/protobuf/compiler/main.cc', 232 'src/google/protobuf/compiler/main.cc',
390 'src/google/protobuf/compiler/objectivec/objectivec_enum.cc',
391 'src/google/protobuf/compiler/objectivec/objectivec_enum.h',
392 'src/google/protobuf/compiler/objectivec/objectivec_enum_field.c c',
393 'src/google/protobuf/compiler/objectivec/objectivec_enum_field.h ',
394 'src/google/protobuf/compiler/objectivec/objectivec_extension.cc ',
395 'src/google/protobuf/compiler/objectivec/objectivec_extension.h' ,
396 'src/google/protobuf/compiler/objectivec/objectivec_field.cc',
397 'src/google/protobuf/compiler/objectivec/objectivec_field.h',
398 'src/google/protobuf/compiler/objectivec/objectivec_file.cc',
399 'src/google/protobuf/compiler/objectivec/objectivec_file.h',
400 'src/google/protobuf/compiler/objectivec/objectivec_generator.cc ',
401 'src/google/protobuf/compiler/objectivec/objectivec_generator.h' ,
402 'src/google/protobuf/compiler/objectivec/objectivec_helpers.cc',
403 'src/google/protobuf/compiler/objectivec/objectivec_helpers.h',
404 'src/google/protobuf/compiler/objectivec/objectivec_map_field.cc ',
405 'src/google/protobuf/compiler/objectivec/objectivec_map_field.h' ,
406 'src/google/protobuf/compiler/objectivec/objectivec_message.cc',
407 'src/google/protobuf/compiler/objectivec/objectivec_message.h',
408 'src/google/protobuf/compiler/objectivec/objectivec_message_fiel d.cc',
409 'src/google/protobuf/compiler/objectivec/objectivec_message_fiel d.h',
410 'src/google/protobuf/compiler/objectivec/objectivec_oneof.cc',
411 'src/google/protobuf/compiler/objectivec/objectivec_oneof.h',
412 'src/google/protobuf/compiler/objectivec/objectivec_primitive_fi eld.cc',
413 'src/google/protobuf/compiler/objectivec/objectivec_primitive_fi eld.h',
414 'src/google/protobuf/compiler/plugin.cc',
415 'src/google/protobuf/compiler/plugin.h',
416 'src/google/protobuf/compiler/plugin.pb.cc',
417 'src/google/protobuf/compiler/plugin.pb.h',
418 'src/google/protobuf/compiler/python/python_generator.cc',
419 'src/google/protobuf/compiler/python/python_generator.h',
420 'src/google/protobuf/compiler/ruby/ruby_generator.cc',
421 'src/google/protobuf/compiler/ruby/ruby_generator.h',
422 'src/google/protobuf/compiler/subprocess.cc',
423 'src/google/protobuf/compiler/subprocess.h',
424 'src/google/protobuf/compiler/zip_writer.cc',
425 'src/google/protobuf/compiler/zip_writer.h',
426 ], 233 ],
427 'dependencies': [ 234 'dependencies': [
428 'protobuf_full_do_not_use', 235 'protobuf_full_do_not_use',
429 ], 236 ],
237 'include_dirs': [
238 '<(config_h_dir)',
239 'src/src',
240 ],
430 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR _FLAVOR)"!="ninja" 241 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR _FLAVOR)"!="ninja"
431 'type': 'none', 242 'type': 'none',
432 'toolsets': ['host'], 243 'toolsets': ['host'],
433 'dependencies': [ 244 'dependencies': [
434 'compile_protoc', 245 'compile_protoc',
435 ], 246 ],
436 'actions': [ 247 'actions': [
437 { 248 {
438 'action_name': 'copy protoc', 249 'action_name': 'copy protoc',
439 'inputs': [ 250 'inputs': [
(...skipping 13 matching lines...) Expand all
453 ], 264 ],
454 }, 265 },
455 { 266 {
456 # Generate the python module needed by all protoc-generated Python cod e. 267 # Generate the python module needed by all protoc-generated Python cod e.
457 'target_name': 'py_proto', 268 'target_name': 'py_proto',
458 'type': 'none', 269 'type': 'none',
459 'copies': [ 270 'copies': [
460 { 271 {
461 'destination': '<(PRODUCT_DIR)/pyproto/google/', 272 'destination': '<(PRODUCT_DIR)/pyproto/google/',
462 'files': [ 273 'files': [
463 'python/google/__init__.py', 274 # google/ module gets an empty __init__.py.
275 '__init__.py',
464 ], 276 ],
465 }, 277 },
466 { 278 {
467 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', 279 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf',
468 'files': [ 280 'files': [
469 'python/google/protobuf/__init__.py', 281 'python/google/protobuf/__init__.py',
470 'python/google/protobuf/descriptor.py', 282 'python/google/protobuf/descriptor.py',
471 'python/google/protobuf/descriptor_database.py', 283 'python/google/protobuf/descriptor_database.py',
472 # TODO(ncarter): protoc's python generator treats
473 # descriptor.proto specially, but only when the input path is
474 # exactly "google/protobuf/descriptor.proto". I'm not sure how
475 # to execute a rule from a different directory. For now, use a
476 # manually-generated copy of descriptor_pb2.py.
477 'python/google/protobuf/descriptor_pb2.py',
478 'python/google/protobuf/descriptor_pool.py', 284 'python/google/protobuf/descriptor_pool.py',
479 'python/google/protobuf/message.py', 285 'python/google/protobuf/message.py',
480 'python/google/protobuf/message_factory.py', 286 'python/google/protobuf/message_factory.py',
481 'python/google/protobuf/proto_builder.py',
482 'python/google/protobuf/reflection.py', 287 'python/google/protobuf/reflection.py',
483 'python/google/protobuf/service.py', 288 'python/google/protobuf/service.py',
484 'python/google/protobuf/service_reflection.py', 289 'python/google/protobuf/service_reflection.py',
485 'python/google/protobuf/symbol_database.py',
486 'python/google/protobuf/text_encoding.py',
487 'python/google/protobuf/text_format.py', 290 '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',
488 ], 301 ],
489 }, 302 },
490 { 303 {
491 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', 304 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal',
492 'files': [ 305 'files': [
493 'python/google/protobuf/internal/__init__.py', 306 'python/google/protobuf/internal/__init__.py',
494 'python/google/protobuf/internal/api_implementation.py', 307 'python/google/protobuf/internal/api_implementation.py',
495 'python/google/protobuf/internal/containers.py', 308 'python/google/protobuf/internal/containers.py',
309 'python/google/protobuf/internal/cpp_message.py',
496 'python/google/protobuf/internal/decoder.py', 310 'python/google/protobuf/internal/decoder.py',
497 'python/google/protobuf/internal/encoder.py', 311 'python/google/protobuf/internal/encoder.py',
498 'python/google/protobuf/internal/enum_type_wrapper.py', 312 'python/google/protobuf/internal/enum_type_wrapper.py',
499 'python/google/protobuf/internal/generator_test.py', 313 'python/google/protobuf/internal/generator_test.py',
500 'python/google/protobuf/internal/message_listener.py', 314 'python/google/protobuf/internal/message_listener.py',
501 'python/google/protobuf/internal/python_message.py', 315 'python/google/protobuf/internal/python_message.py',
502 'python/google/protobuf/internal/type_checkers.py', 316 'python/google/protobuf/internal/type_checkers.py',
503 'python/google/protobuf/internal/wire_format.py', 317 'python/google/protobuf/internal/wire_format.py',
504 ], 318 ],
505 }, 319 },
506 {
507 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/pyext',
508 'files': [
509 'python/google/protobuf/pyext/__init__.py',
510 'python/google/protobuf/pyext/cpp_message.py',
511 ],
512 },
513 ], 320 ],
514 }, 321 # # We can't generate a proper descriptor_pb2.py -- see earlier comment.
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 },
515 ], 354 ],
516 }, { # use_system_protobuf==1 355 }, { # use_system_protobuf==1
517 'targets': [ 356 'targets': [
518 { 357 {
519 'target_name': 'protobuf_lite', 358 'target_name': 'protobuf_lite',
520 'type': 'none', 359 'type': 'none',
521 'direct_dependent_settings': { 360 'direct_dependent_settings': {
522 'cflags': [ 361 'cflags': [
523 # Use full protobuf, because vanilla protobuf doesn't have 362 # Use full protobuf, because vanilla protobuf doesn't have
524 # our custom patch to retain unknown fields in lite mode. 363 # our custom patch to retain unknown fields in lite mode.
(...skipping 25 matching lines...) Expand all
550 'toolsets': ['host', 'target'], 389 'toolsets': ['host', 'target'],
551 }, 390 },
552 { 391 {
553 'target_name': 'py_proto', 392 'target_name': 'py_proto',
554 'type': 'none', 393 'type': 'none',
555 }, 394 },
556 ], 395 ],
557 }], 396 }],
558 ], 397 ],
559 } 398 }
OLDNEW
« no previous file with comments | « third_party/protobuf/post_process_dist.sh ('k') | third_party/protobuf/protobuf-lite.pc.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698