OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['use_system_protobuf==0', { | 7 ['use_system_protobuf==0', { |
8 'conditions': [ | 8 'target_defaults': { |
9 ['OS!="win"', { | 9 'conditions': [ |
10 'variables': { | 10 ['OS=="win"', { |
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': { | |
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 ['OS=="mac" or OS=="ios"', { |
| 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': [ |
32 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj
a"', { | 44 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj
a"', { |
33 'variables': { | 45 'variables': { |
34 'ninja_output_dir': 'ninja-protoc', | 46 'ninja_output_dir': 'ninja-protoc', |
35 'ninja_product_dir': | 47 'ninja_product_dir': |
36 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)', | 48 '<(DEPTH)/xcodebuild/<(ninja_output_dir)/<(CONFIGURATION_NAME)', |
37 # Gyp to rerun | 49 # Gyp to rerun |
38 're_run_targets': [ | 50 're_run_targets': [ |
39 'third_party/protobuf/protobuf.gyp', | 51 'third_party/protobuf/protobuf.gyp', |
40 ], | 52 ], |
41 }, | 53 }, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 # | 116 # |
105 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl | 117 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl |
106 { | 118 { |
107 'target_name': 'protobuf_full_do_not_use', | 119 'target_name': 'protobuf_full_do_not_use', |
108 'type': 'static_library', | 120 'type': 'static_library', |
109 'toolsets': ['host','target'], | 121 'toolsets': ['host','target'], |
110 'includes': [ | 122 'includes': [ |
111 'protobuf_lite.gypi', | 123 'protobuf_lite.gypi', |
112 ], | 124 ], |
113 'sources': [ | 125 'sources': [ |
114 'src/google/protobuf/descriptor.h', | 126 'src/google/protobuf/any.cc', |
115 'src/google/protobuf/descriptor.pb.h', | 127 'src/google/protobuf/any.h', |
116 'src/google/protobuf/descriptor_database.h', | 128 'src/google/protobuf/any.pb.cc', |
117 'src/google/protobuf/dynamic_message.h', | 129 'src/google/protobuf/any.pb.h', |
118 'src/google/protobuf/generated_enum_reflection.h', | 130 'src/google/protobuf/api.pb.cc', |
119 'src/google/protobuf/generated_message_reflection.h', | 131 'src/google/protobuf/api.pb.h', |
120 'src/google/protobuf/message.h', | 132 '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', | 133 'src/google/protobuf/compiler/importer.h', |
132 'src/google/protobuf/compiler/java/java_doc_comment.cc', | 134 'src/google/protobuf/compiler/parser.cc', |
133 'src/google/protobuf/compiler/java/java_doc_comment.h', | |
134 'src/google/protobuf/compiler/parser.h', | 135 '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', | 136 'src/google/protobuf/descriptor.cc', |
148 'src/google/protobuf/descriptor.pb.cc', | 137 'src/google/protobuf/descriptor.pb.cc', |
149 'src/google/protobuf/descriptor_database.cc', | 138 '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', |
150 'src/google/protobuf/dynamic_message.cc', | 142 'src/google/protobuf/dynamic_message.cc', |
151 'src/google/protobuf/extension_set.cc', | 143 'src/google/protobuf/dynamic_message.h', |
152 'src/google/protobuf/extension_set.h', | 144 'src/google/protobuf/empty.pb.cc', |
| 145 'src/google/protobuf/empty.pb.h', |
153 'src/google/protobuf/extension_set_heavy.cc', | 146 'src/google/protobuf/extension_set_heavy.cc', |
| 147 'src/google/protobuf/field_mask.pb.cc', |
| 148 'src/google/protobuf/field_mask.pb.h', |
154 'src/google/protobuf/generated_message_reflection.cc', | 149 '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', |
155 'src/google/protobuf/message.cc', | 171 'src/google/protobuf/message.cc', |
156 'src/google/protobuf/reflection_ops.cc', | 172 'src/google/protobuf/reflection_ops.cc', |
| 173 'src/google/protobuf/reflection_ops.h', |
157 'src/google/protobuf/service.cc', | 174 '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', |
158 'src/google/protobuf/text_format.cc', | 188 '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', |
159 'src/google/protobuf/wire_format.cc', | 235 'src/google/protobuf/wire_format.cc', |
160 # This file pulls in zlib, but it's not actually used by protoc, so | 236 'src/google/protobuf/wire_format.h', |
161 # instead of compiling zlib for the host, let's just exclude this. | 237 'src/google/protobuf/wrappers.pb.cc', |
162 # 'src/src/google/protobuf/io/gzip_stream.cc', | 238 '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 ], | 239 ], |
169 }, | 240 }, |
170 { | 241 { |
171 'target_name': 'protoc', | 242 'target_name': 'protoc', |
172 'conditions': [ | 243 'conditions': [ |
173 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni
nja"', { | 244 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni
nja"', { |
174 'type': 'executable', | 245 'type': 'executable', |
175 'toolsets': ['host'], | 246 'toolsets': ['host'], |
176 'sources': [ | 247 'sources': [ |
177 'src/google/protobuf/compiler/code_generator.cc', | 248 'src/google/protobuf/compiler/code_generator.cc', |
| 249 'src/google/protobuf/compiler/code_generator.h', |
178 'src/google/protobuf/compiler/command_line_interface.cc', | 250 'src/google/protobuf/compiler/command_line_interface.cc', |
179 'src/google/protobuf/compiler/plugin.cc', | 251 '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', | 252 'src/google/protobuf/compiler/cpp/cpp_enum.cc', |
186 'src/google/protobuf/compiler/cpp/cpp_enum.h', | 253 'src/google/protobuf/compiler/cpp/cpp_enum.h', |
187 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', | 254 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', |
188 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', | 255 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', |
189 'src/google/protobuf/compiler/cpp/cpp_extension.cc', | 256 'src/google/protobuf/compiler/cpp/cpp_extension.cc', |
190 'src/google/protobuf/compiler/cpp/cpp_extension.h', | 257 'src/google/protobuf/compiler/cpp/cpp_extension.h', |
191 'src/google/protobuf/compiler/cpp/cpp_field.cc', | 258 'src/google/protobuf/compiler/cpp/cpp_field.cc', |
192 'src/google/protobuf/compiler/cpp/cpp_field.h', | 259 'src/google/protobuf/compiler/cpp/cpp_field.h', |
193 'src/google/protobuf/compiler/cpp/cpp_file.cc', | 260 'src/google/protobuf/compiler/cpp/cpp_file.cc', |
194 'src/google/protobuf/compiler/cpp/cpp_file.h', | 261 'src/google/protobuf/compiler/cpp/cpp_file.h', |
195 'src/google/protobuf/compiler/cpp/cpp_generator.cc', | 262 'src/google/protobuf/compiler/cpp/cpp_generator.cc', |
| 263 'src/google/protobuf/compiler/cpp/cpp_generator.h', |
196 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', | 264 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', |
197 'src/google/protobuf/compiler/cpp/cpp_helpers.h', | 265 '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', |
198 'src/google/protobuf/compiler/cpp/cpp_message.cc', | 268 'src/google/protobuf/compiler/cpp/cpp_message.cc', |
199 'src/google/protobuf/compiler/cpp/cpp_message.h', | 269 'src/google/protobuf/compiler/cpp/cpp_message.h', |
200 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', | 270 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', |
201 'src/google/protobuf/compiler/cpp/cpp_message_field.h', | 271 'src/google/protobuf/compiler/cpp/cpp_message_field.h', |
| 272 'src/google/protobuf/compiler/cpp/cpp_options.h', |
202 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', | 273 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', |
203 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', | 274 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', |
204 'src/google/protobuf/compiler/cpp/cpp_service.cc', | 275 'src/google/protobuf/compiler/cpp/cpp_service.cc', |
205 'src/google/protobuf/compiler/cpp/cpp_service.h', | 276 'src/google/protobuf/compiler/cpp/cpp_service.h', |
206 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', | 277 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', |
207 'src/google/protobuf/compiler/cpp/cpp_string_field.h', | 278 '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', |
208 'src/google/protobuf/compiler/java/java_enum.cc', | 314 'src/google/protobuf/compiler/java/java_enum.cc', |
209 'src/google/protobuf/compiler/java/java_enum.h', | 315 'src/google/protobuf/compiler/java/java_enum.h', |
210 'src/google/protobuf/compiler/java/java_enum_field.cc', | 316 'src/google/protobuf/compiler/java/java_enum_field.cc', |
211 'src/google/protobuf/compiler/java/java_enum_field.h', | 317 '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', |
212 'src/google/protobuf/compiler/java/java_extension.cc', | 320 'src/google/protobuf/compiler/java/java_extension.cc', |
213 'src/google/protobuf/compiler/java/java_extension.h', | 321 'src/google/protobuf/compiler/java/java_extension.h', |
214 'src/google/protobuf/compiler/java/java_field.cc', | 322 'src/google/protobuf/compiler/java/java_field.cc', |
215 'src/google/protobuf/compiler/java/java_field.h', | 323 'src/google/protobuf/compiler/java/java_field.h', |
216 'src/google/protobuf/compiler/java/java_file.cc', | 324 'src/google/protobuf/compiler/java/java_file.cc', |
217 'src/google/protobuf/compiler/java/java_file.h', | 325 'src/google/protobuf/compiler/java/java_file.h', |
218 'src/google/protobuf/compiler/java/java_generator.cc', | 326 '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', |
219 'src/google/protobuf/compiler/java/java_helpers.cc', | 330 'src/google/protobuf/compiler/java/java_helpers.cc', |
220 'src/google/protobuf/compiler/java/java_helpers.h', | 331 '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', |
221 'src/google/protobuf/compiler/java/java_message.cc', | 340 'src/google/protobuf/compiler/java/java_message.cc', |
222 'src/google/protobuf/compiler/java/java_message.h', | 341 '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', |
223 'src/google/protobuf/compiler/java/java_message_field.cc', | 346 'src/google/protobuf/compiler/java/java_message_field.cc', |
224 'src/google/protobuf/compiler/java/java_message_field.h', | 347 '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', |
225 'src/google/protobuf/compiler/java/java_primitive_field.cc', | 354 'src/google/protobuf/compiler/java/java_primitive_field.cc', |
226 'src/google/protobuf/compiler/java/java_primitive_field.h', | 355 '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', |
227 'src/google/protobuf/compiler/java/java_service.cc', | 358 'src/google/protobuf/compiler/java/java_service.cc', |
228 'src/google/protobuf/compiler/java/java_service.h', | 359 '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'
, |
229 'src/google/protobuf/compiler/java/java_string_field.cc', | 362 'src/google/protobuf/compiler/java/java_string_field.cc', |
230 'src/google/protobuf/compiler/java/java_string_field.h', | 363 'src/google/protobuf/compiler/java/java_string_field.h', |
| 364 'src/google/protobuf/compiler/java/java_string_field_lite.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', |
| 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', |
231 'src/google/protobuf/compiler/python/python_generator.cc', | 418 'src/google/protobuf/compiler/python/python_generator.cc', |
232 'src/google/protobuf/compiler/main.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', |
233 ], | 426 ], |
234 'dependencies': [ | 427 'dependencies': [ |
235 'protobuf_full_do_not_use', | 428 'protobuf_full_do_not_use', |
236 ], | 429 ], |
237 'include_dirs': [ | |
238 '<(config_h_dir)', | |
239 'src/src', | |
240 ], | |
241 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR
_FLAVOR)"!="ninja" | 430 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR
_FLAVOR)"!="ninja" |
242 'type': 'none', | 431 'type': 'none', |
243 'toolsets': ['host'], | 432 'toolsets': ['host'], |
244 'dependencies': [ | 433 'dependencies': [ |
245 'compile_protoc', | 434 'compile_protoc', |
246 ], | 435 ], |
247 'actions': [ | 436 'actions': [ |
248 { | 437 { |
249 'action_name': 'copy protoc', | 438 'action_name': 'copy protoc', |
250 'inputs': [ | 439 'inputs': [ |
(...skipping 13 matching lines...) Expand all Loading... |
264 ], | 453 ], |
265 }, | 454 }, |
266 { | 455 { |
267 # Generate the python module needed by all protoc-generated Python cod
e. | 456 # Generate the python module needed by all protoc-generated Python cod
e. |
268 'target_name': 'py_proto', | 457 'target_name': 'py_proto', |
269 'type': 'none', | 458 'type': 'none', |
270 'copies': [ | 459 'copies': [ |
271 { | 460 { |
272 'destination': '<(PRODUCT_DIR)/pyproto/google/', | 461 'destination': '<(PRODUCT_DIR)/pyproto/google/', |
273 'files': [ | 462 'files': [ |
274 # google/ module gets an empty __init__.py. | 463 'python/google/__init__.py', |
275 '__init__.py', | |
276 ], | 464 ], |
277 }, | 465 }, |
278 { | 466 { |
279 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', | 467 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', |
280 'files': [ | 468 'files': [ |
281 'python/google/protobuf/__init__.py', | 469 'python/google/protobuf/__init__.py', |
282 'python/google/protobuf/descriptor.py', | 470 'python/google/protobuf/descriptor.py', |
283 'python/google/protobuf/descriptor_database.py', | 471 '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', |
284 'python/google/protobuf/descriptor_pool.py', | 478 'python/google/protobuf/descriptor_pool.py', |
285 'python/google/protobuf/message.py', | 479 'python/google/protobuf/message.py', |
286 'python/google/protobuf/message_factory.py', | 480 'python/google/protobuf/message_factory.py', |
| 481 'python/google/protobuf/proto_builder.py', |
287 'python/google/protobuf/reflection.py', | 482 'python/google/protobuf/reflection.py', |
288 'python/google/protobuf/service.py', | 483 'python/google/protobuf/service.py', |
289 'python/google/protobuf/service_reflection.py', | 484 'python/google/protobuf/service_reflection.py', |
| 485 'python/google/protobuf/symbol_database.py', |
| 486 'python/google/protobuf/text_encoding.py', |
290 'python/google/protobuf/text_format.py', | 487 '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 ], | 488 ], |
302 }, | 489 }, |
303 { | 490 { |
304 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', | 491 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', |
305 'files': [ | 492 'files': [ |
306 'python/google/protobuf/internal/__init__.py', | 493 'python/google/protobuf/internal/__init__.py', |
307 'python/google/protobuf/internal/api_implementation.py', | 494 'python/google/protobuf/internal/api_implementation.py', |
308 'python/google/protobuf/internal/containers.py', | 495 'python/google/protobuf/internal/containers.py', |
309 'python/google/protobuf/internal/cpp_message.py', | |
310 'python/google/protobuf/internal/decoder.py', | 496 'python/google/protobuf/internal/decoder.py', |
311 'python/google/protobuf/internal/encoder.py', | 497 'python/google/protobuf/internal/encoder.py', |
312 'python/google/protobuf/internal/enum_type_wrapper.py', | 498 'python/google/protobuf/internal/enum_type_wrapper.py', |
313 'python/google/protobuf/internal/generator_test.py', | 499 'python/google/protobuf/internal/generator_test.py', |
314 'python/google/protobuf/internal/message_listener.py', | 500 'python/google/protobuf/internal/message_listener.py', |
315 'python/google/protobuf/internal/python_message.py', | 501 'python/google/protobuf/internal/python_message.py', |
316 'python/google/protobuf/internal/type_checkers.py', | 502 'python/google/protobuf/internal/type_checkers.py', |
317 'python/google/protobuf/internal/wire_format.py', | 503 'python/google/protobuf/internal/wire_format.py', |
318 ], | 504 ], |
319 }, | 505 }, |
| 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 }, |
320 ], | 513 ], |
321 # # We can't generate a proper descriptor_pb2.py -- see earlier comment. | 514 }, |
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 ], | 515 ], |
355 }, { # use_system_protobuf==1 | 516 }, { # use_system_protobuf==1 |
356 'targets': [ | 517 'targets': [ |
357 { | 518 { |
358 'target_name': 'protobuf_lite', | 519 'target_name': 'protobuf_lite', |
359 'type': 'none', | 520 'type': 'none', |
360 'direct_dependent_settings': { | 521 'direct_dependent_settings': { |
361 'cflags': [ | 522 'cflags': [ |
362 # Use full protobuf, because vanilla protobuf doesn't have | 523 # Use full protobuf, because vanilla protobuf doesn't have |
363 # our custom patch to retain unknown fields in lite mode. | 524 # our custom patch to retain unknown fields in lite mode. |
(...skipping 25 matching lines...) Expand all Loading... |
389 'toolsets': ['host', 'target'], | 550 'toolsets': ['host', 'target'], |
390 }, | 551 }, |
391 { | 552 { |
392 'target_name': 'py_proto', | 553 'target_name': 'py_proto', |
393 'type': 'none', | 554 'type': 'none', |
394 }, | 555 }, |
395 ], | 556 ], |
396 }], | 557 }], |
397 ], | 558 ], |
398 } | 559 } |
OLD | NEW |