OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['use_system_protobuf==0', { | 7 ['use_system_protobuf==0', { |
8 'conditions': [ | 8 'conditions': [ |
9 ['OS!="win"', { | 9 ['OS=="win"', { |
10 'variables': { | |
11 'config_h_dir': | |
12 '.', # crafted for gcc/linux. | |
13 }, | |
14 }, { # else, OS=="win" | |
15 'variables': { | |
16 'config_h_dir': | |
17 'vsprojects', # crafted for msvc. | |
18 }, | |
19 'target_defaults': { | 10 'target_defaults': { |
20 'msvs_disabled_warnings': [ | 11 'msvs_disabled_warnings': [ |
21 4018, # signed/unsigned mismatch in comparison | 12 4018, # signed/unsigned mismatch in comparison |
| 13 4065, # switch statement contains 'default' but no 'case' labels |
| 14 4146, # unary minus operator applied to unsigned type |
22 4244, # implicit conversion, possible loss of data | 15 4244, # implicit conversion, possible loss of data |
23 4355, # 'this' used in base member initializer list | |
24 4267, # size_t to int truncation | 16 4267, # size_t to int truncation |
25 4291, # no matching operator delete for a placement new | 17 4291, # no matching operator delete for a placement new |
| 18 4305, # double to float truncation |
| 19 4355, # 'this' used in base member initializer list |
| 20 4506, # no definition for inline function (protobuf issue #240) |
26 ], | 21 ], |
27 'defines!': [ | 22 'defines!': [ |
28 'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself. | 23 'WIN32_LEAN_AND_MEAN', # Protobuf defines this itself. |
29 ], | 24 ], |
30 }, | 25 }, |
31 }], | 26 }], |
32 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj
a"', { | 27 ['OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR_FLAVOR)"!="ninj
a"', { |
33 'variables': { | 28 'variables': { |
34 'ninja_output_dir': 'ninja-protoc', | 29 'ninja_output_dir': 'ninja-protoc', |
35 'ninja_product_dir': | 30 'ninja_product_dir': |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 # option optimize_for = LITE_RUNTIME; | 75 # option optimize_for = LITE_RUNTIME; |
81 # | 76 # |
82 # to your .proto file. | 77 # to your .proto file. |
83 { | 78 { |
84 'target_name': 'protobuf_lite', | 79 'target_name': 'protobuf_lite', |
85 'type': '<(component)', | 80 'type': '<(component)', |
86 'toolsets': ['host', 'target'], | 81 'toolsets': ['host', 'target'], |
87 'includes': [ | 82 'includes': [ |
88 'protobuf_lite.gypi', | 83 'protobuf_lite.gypi', |
89 ], | 84 ], |
| 85 'variables': { |
| 86 'clang_warning_flags': [ |
| 87 # protobuf-3 contains a few functions that are unused. |
| 88 '-Wno-unused-function', |
| 89 ], |
| 90 }, |
90 # Required for component builds. See http://crbug.com/172800. | 91 # Required for component builds. See http://crbug.com/172800. |
91 'defines': [ | 92 'defines': [ |
92 'LIBPROTOBUF_EXPORTS', | 93 'LIBPROTOBUF_EXPORTS', |
93 'PROTOBUF_USE_DLLS', | 94 'PROTOBUF_USE_DLLS', |
94 ], | 95 ], |
95 'direct_dependent_settings': { | 96 'direct_dependent_settings': { |
96 'defines': [ | 97 'defines': [ |
97 'PROTOBUF_USE_DLLS', | 98 'PROTOBUF_USE_DLLS', |
98 ], | 99 ], |
99 }, | 100 }, |
100 }, | 101 }, |
101 # This is the full, heavy protobuf lib that's needed for c++ .protos | 102 # This is the full, heavy protobuf lib that's needed for c++ .protos |
102 # that don't specify the LITE_RUNTIME option. The protocol | 103 # that don't specify the LITE_RUNTIME option. The protocol |
103 # compiler itself (protoc) falls into that category. | 104 # compiler itself (protoc) falls into that category. |
104 # | 105 # |
105 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl | 106 # DO NOT LINK AGAINST THIS TARGET IN CHROME CODE --agl |
106 { | 107 { |
107 'target_name': 'protobuf_full_do_not_use', | 108 'target_name': 'protobuf_full_do_not_use', |
108 'type': 'static_library', | 109 'type': 'static_library', |
109 'toolsets': ['host','target'], | 110 'toolsets': ['host','target'], |
110 'includes': [ | 111 'includes': [ |
111 'protobuf_lite.gypi', | 112 'protobuf_lite.gypi', |
112 ], | 113 ], |
| 114 'variables': { |
| 115 'clang_warning_flags': [ |
| 116 # protobuf-3 contains a few functions that are unused. |
| 117 '-Wno-unused-function', |
| 118 ], |
| 119 }, |
113 'sources': [ | 120 'sources': [ |
| 121 'src/google/protobuf/any.cc', |
| 122 'src/google/protobuf/any.h', |
| 123 'src/google/protobuf/any.pb.cc', |
| 124 'src/google/protobuf/any.pb.h', |
| 125 'src/google/protobuf/api.pb.cc', |
| 126 'src/google/protobuf/api.pb.h', |
| 127 'src/google/protobuf/compiler/importer.cc', |
| 128 'src/google/protobuf/compiler/importer.h', |
| 129 'src/google/protobuf/compiler/parser.cc', |
| 130 'src/google/protobuf/compiler/parser.h', |
| 131 'src/google/protobuf/descriptor.cc', |
114 'src/google/protobuf/descriptor.h', | 132 'src/google/protobuf/descriptor.h', |
| 133 'src/google/protobuf/descriptor.pb.cc', |
115 'src/google/protobuf/descriptor.pb.h', | 134 'src/google/protobuf/descriptor.pb.h', |
| 135 'src/google/protobuf/descriptor_database.cc', |
116 'src/google/protobuf/descriptor_database.h', | 136 'src/google/protobuf/descriptor_database.h', |
| 137 'src/google/protobuf/duration.pb.cc', |
| 138 'src/google/protobuf/duration.pb.h', |
| 139 'src/google/protobuf/dynamic_message.cc', |
117 'src/google/protobuf/dynamic_message.h', | 140 'src/google/protobuf/dynamic_message.h', |
| 141 'src/google/protobuf/empty.pb.cc', |
| 142 'src/google/protobuf/empty.pb.h', |
| 143 'src/google/protobuf/extension_set_heavy.cc', |
| 144 'src/google/protobuf/field_mask.pb.cc', |
| 145 'src/google/protobuf/field_mask.pb.h', |
118 'src/google/protobuf/generated_enum_reflection.h', | 146 'src/google/protobuf/generated_enum_reflection.h', |
| 147 'src/google/protobuf/generated_enum_util.h', |
| 148 'src/google/protobuf/generated_message_reflection.cc', |
119 'src/google/protobuf/generated_message_reflection.h', | 149 'src/google/protobuf/generated_message_reflection.h', |
| 150 |
| 151 # 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 this. |
| 154 # 'src/google/protobuf/io/gzip_stream.cc', |
| 155 # 'src/google/protobuf/io/gzip_stream.h', |
| 156 |
| 157 'src/google/protobuf/io/printer.cc', |
| 158 'src/google/protobuf/io/printer.h', |
| 159 'src/google/protobuf/io/strtod.cc', |
| 160 'src/google/protobuf/io/strtod.h', |
| 161 'src/google/protobuf/io/tokenizer.cc', |
| 162 'src/google/protobuf/io/tokenizer.h', |
| 163 'src/google/protobuf/io/zero_copy_stream_impl.cc', |
| 164 'src/google/protobuf/io/zero_copy_stream_impl.h', |
| 165 'src/google/protobuf/map_entry.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/message.cc', |
120 'src/google/protobuf/message.h', | 170 'src/google/protobuf/message.h', |
| 171 'src/google/protobuf/metadata.h', |
| 172 'src/google/protobuf/reflection.h', |
| 173 'src/google/protobuf/reflection_internal.h', |
| 174 'src/google/protobuf/reflection_ops.cc', |
121 'src/google/protobuf/reflection_ops.h', | 175 'src/google/protobuf/reflection_ops.h', |
| 176 'src/google/protobuf/service.cc', |
122 'src/google/protobuf/service.h', | 177 'src/google/protobuf/service.h', |
123 'src/google/protobuf/text_format.h', | 178 'src/google/protobuf/source_context.pb.cc', |
124 'src/google/protobuf/wire_format.h', | 179 'src/google/protobuf/source_context.pb.h', |
125 'src/google/protobuf/io/gzip_stream.h', | 180 'src/google/protobuf/struct.pb.cc', |
126 'src/google/protobuf/io/printer.h', | 181 'src/google/protobuf/struct.pb.h', |
127 'src/google/protobuf/io/tokenizer.h', | 182 'src/google/protobuf/stubs/mathutil.h', |
128 'src/google/protobuf/io/zero_copy_stream_impl.h', | 183 'src/google/protobuf/stubs/mathlimits.cc', |
129 'src/google/protobuf/compiler/code_generator.h', | 184 'src/google/protobuf/stubs/mathlimits.h', |
130 'src/google/protobuf/compiler/command_line_interface.h', | |
131 'src/google/protobuf/compiler/importer.h', | |
132 'src/google/protobuf/compiler/java/java_doc_comment.cc', | |
133 'src/google/protobuf/compiler/java/java_doc_comment.h', | |
134 'src/google/protobuf/compiler/parser.h', | |
135 | |
136 'src/google/protobuf/stubs/strutil.cc', | |
137 'src/google/protobuf/stubs/strutil.h', | |
138 'src/google/protobuf/stubs/substitute.cc', | 185 'src/google/protobuf/stubs/substitute.cc', |
139 'src/google/protobuf/stubs/substitute.h', | 186 'src/google/protobuf/stubs/substitute.h', |
140 'src/google/protobuf/stubs/stl_util.h', | 187 'src/google/protobuf/stubs/singleton$.h', |
141 'src/google/protobuf/stubs/stringprintf.cc', | |
142 'src/google/protobuf/stubs/stringprintf.h', | |
143 'src/google/protobuf/stubs/structurally_valid.cc', | |
144 'src/google/protobuf/stubs/template_util.h', | |
145 'src/google/protobuf/stubs/type_traits.h', | |
146 | |
147 'src/google/protobuf/descriptor.cc', | |
148 'src/google/protobuf/descriptor.pb.cc', | |
149 'src/google/protobuf/descriptor_database.cc', | |
150 'src/google/protobuf/dynamic_message.cc', | |
151 'src/google/protobuf/extension_set.cc', | |
152 'src/google/protobuf/extension_set.h', | |
153 'src/google/protobuf/extension_set_heavy.cc', | |
154 'src/google/protobuf/generated_message_reflection.cc', | |
155 'src/google/protobuf/message.cc', | |
156 'src/google/protobuf/reflection_ops.cc', | |
157 'src/google/protobuf/service.cc', | |
158 'src/google/protobuf/text_format.cc', | 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/unknown_field_set.cc', |
| 195 'src/google/protobuf/unknown_field_set.h', |
| 196 'src/google/protobuf/util/field_comparator.cc', |
| 197 'src/google/protobuf/util/field_comparator.h', |
| 198 'src/google/protobuf/util/field_mask_util.cc', |
| 199 'src/google/protobuf/util/field_mask_util.h', |
| 200 'src/google/protobuf/util/internal/constants.h', |
| 201 'src/google/protobuf/util/internal/datapiece.cc', |
| 202 'src/google/protobuf/util/internal/datapiece.h', |
| 203 'src/google/protobuf/util/internal/default_value_objectwriter.cc', |
| 204 'src/google/protobuf/util/internal/default_value_objectwriter.h', |
| 205 'src/google/protobuf/util/internal/error_listener.cc', |
| 206 'src/google/protobuf/util/internal/error_listener.h', |
| 207 'src/google/protobuf/util/internal/field_mask_utility.cc', |
| 208 'src/google/protobuf/util/internal/field_mask_utility.h', |
| 209 'src/google/protobuf/util/internal/json_escaping.cc', |
| 210 'src/google/protobuf/util/internal/json_escaping.h', |
| 211 'src/google/protobuf/util/internal/json_objectwriter.cc', |
| 212 'src/google/protobuf/util/internal/json_objectwriter.h', |
| 213 'src/google/protobuf/util/internal/json_stream_parser.cc', |
| 214 'src/google/protobuf/util/internal/json_stream_parser.h', |
| 215 'src/google/protobuf/util/internal/location_tracker.h', |
| 216 'src/google/protobuf/util/internal/object_location_tracker.h', |
| 217 'src/google/protobuf/util/internal/object_source.h', |
| 218 'src/google/protobuf/util/internal/object_writer.cc', |
| 219 'src/google/protobuf/util/internal/object_writer.h', |
| 220 'src/google/protobuf/util/internal/proto_writer.cc', |
| 221 'src/google/protobuf/util/internal/proto_writer.h', |
| 222 'src/google/protobuf/util/internal/protostream_objectsource.cc', |
| 223 'src/google/protobuf/util/internal/protostream_objectsource.h', |
| 224 'src/google/protobuf/util/internal/protostream_objectwriter.cc', |
| 225 'src/google/protobuf/util/internal/protostream_objectwriter.h', |
| 226 'src/google/protobuf/util/internal/structured_object_writer.h', |
| 227 'src/google/protobuf/util/internal/type_info.cc', |
| 228 'src/google/protobuf/util/internal/type_info.h', |
| 229 'src/google/protobuf/util/internal/type_info_test_helper.cc', |
| 230 'src/google/protobuf/util/internal/type_info_test_helper.h', |
| 231 'src/google/protobuf/util/internal/utility.cc', |
| 232 'src/google/protobuf/util/internal/utility.h', |
| 233 'src/google/protobuf/util/json_util.cc', |
| 234 'src/google/protobuf/util/json_util.h', |
| 235 'src/google/protobuf/util/message_differencer.cc', |
| 236 'src/google/protobuf/util/message_differencer.h', |
| 237 'src/google/protobuf/util/time_util.cc', |
| 238 'src/google/protobuf/util/time_util.h', |
| 239 'src/google/protobuf/util/type_resolver.h', |
| 240 'src/google/protobuf/util/type_resolver_util.cc', |
| 241 'src/google/protobuf/util/type_resolver_util.h', |
159 'src/google/protobuf/wire_format.cc', | 242 'src/google/protobuf/wire_format.cc', |
160 # This file pulls in zlib, but it's not actually used by protoc, so | 243 'src/google/protobuf/wire_format.h', |
161 # instead of compiling zlib for the host, let's just exclude this. | 244 'src/google/protobuf/wrappers.pb.cc', |
162 # 'src/src/google/protobuf/io/gzip_stream.cc', | 245 '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 ], | 246 ], |
169 }, | 247 }, |
170 { | 248 { |
171 'target_name': 'protoc', | 249 'target_name': 'protoc', |
172 'conditions': [ | 250 'conditions': [ |
173 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni
nja"', { | 251 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ni
nja"', { |
174 'type': 'executable', | 252 'type': 'executable', |
175 'toolsets': ['host'], | 253 'toolsets': ['host'], |
176 'sources': [ | 254 'sources': [ |
177 'src/google/protobuf/compiler/code_generator.cc', | 255 "src/google/protobuf/compiler/code_generator.cc", |
178 'src/google/protobuf/compiler/command_line_interface.cc', | 256 "src/google/protobuf/compiler/code_generator.h", |
179 'src/google/protobuf/compiler/plugin.cc', | 257 "src/google/protobuf/compiler/command_line_interface.cc", |
180 'src/google/protobuf/compiler/plugin.pb.cc', | 258 "src/google/protobuf/compiler/command_line_interface.h", |
181 'src/google/protobuf/compiler/subprocess.cc', | 259 "src/google/protobuf/compiler/cpp/cpp_enum.cc", |
182 'src/google/protobuf/compiler/subprocess.h', | 260 "src/google/protobuf/compiler/cpp/cpp_enum.h", |
183 'src/google/protobuf/compiler/zip_writer.cc', | 261 "src/google/protobuf/compiler/cpp/cpp_enum_field.cc", |
184 'src/google/protobuf/compiler/zip_writer.h', | 262 "src/google/protobuf/compiler/cpp/cpp_enum_field.h", |
185 'src/google/protobuf/compiler/cpp/cpp_enum.cc', | 263 "src/google/protobuf/compiler/cpp/cpp_extension.cc", |
186 'src/google/protobuf/compiler/cpp/cpp_enum.h', | 264 "src/google/protobuf/compiler/cpp/cpp_extension.h", |
187 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', | 265 "src/google/protobuf/compiler/cpp/cpp_field.cc", |
188 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', | 266 "src/google/protobuf/compiler/cpp/cpp_field.h", |
189 'src/google/protobuf/compiler/cpp/cpp_extension.cc', | 267 "src/google/protobuf/compiler/cpp/cpp_file.cc", |
190 'src/google/protobuf/compiler/cpp/cpp_extension.h', | 268 "src/google/protobuf/compiler/cpp/cpp_file.h", |
191 'src/google/protobuf/compiler/cpp/cpp_field.cc', | 269 "src/google/protobuf/compiler/cpp/cpp_generator.cc", |
192 'src/google/protobuf/compiler/cpp/cpp_field.h', | 270 "src/google/protobuf/compiler/cpp/cpp_generator.h", |
193 'src/google/protobuf/compiler/cpp/cpp_file.cc', | 271 "src/google/protobuf/compiler/cpp/cpp_helpers.cc", |
194 'src/google/protobuf/compiler/cpp/cpp_file.h', | 272 "src/google/protobuf/compiler/cpp/cpp_helpers.h", |
195 'src/google/protobuf/compiler/cpp/cpp_generator.cc', | 273 "src/google/protobuf/compiler/cpp/cpp_map_field.cc", |
196 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', | 274 "src/google/protobuf/compiler/cpp/cpp_map_field.h", |
197 'src/google/protobuf/compiler/cpp/cpp_helpers.h', | 275 "src/google/protobuf/compiler/cpp/cpp_message.cc", |
198 'src/google/protobuf/compiler/cpp/cpp_message.cc', | 276 "src/google/protobuf/compiler/cpp/cpp_message.h", |
199 'src/google/protobuf/compiler/cpp/cpp_message.h', | 277 "src/google/protobuf/compiler/cpp/cpp_message_field.cc", |
200 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', | 278 "src/google/protobuf/compiler/cpp/cpp_message_field.h", |
201 'src/google/protobuf/compiler/cpp/cpp_message_field.h', | 279 "src/google/protobuf/compiler/cpp/cpp_options.h", |
202 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', | 280 "src/google/protobuf/compiler/cpp/cpp_primitive_field.cc", |
203 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', | 281 "src/google/protobuf/compiler/cpp/cpp_primitive_field.h", |
204 'src/google/protobuf/compiler/cpp/cpp_service.cc', | 282 "src/google/protobuf/compiler/cpp/cpp_service.cc", |
205 'src/google/protobuf/compiler/cpp/cpp_service.h', | 283 "src/google/protobuf/compiler/cpp/cpp_service.h", |
206 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', | 284 "src/google/protobuf/compiler/cpp/cpp_string_field.cc", |
207 'src/google/protobuf/compiler/cpp/cpp_string_field.h', | 285 "src/google/protobuf/compiler/cpp/cpp_string_field.h", |
208 'src/google/protobuf/compiler/java/java_enum.cc', | 286 "src/google/protobuf/compiler/csharp/csharp_doc_comment.cc", |
209 'src/google/protobuf/compiler/java/java_enum.h', | 287 "src/google/protobuf/compiler/csharp/csharp_doc_comment.h", |
210 'src/google/protobuf/compiler/java/java_enum_field.cc', | 288 "src/google/protobuf/compiler/csharp/csharp_enum.cc", |
211 'src/google/protobuf/compiler/java/java_enum_field.h', | 289 "src/google/protobuf/compiler/csharp/csharp_enum.h", |
212 'src/google/protobuf/compiler/java/java_extension.cc', | 290 "src/google/protobuf/compiler/csharp/csharp_enum_field.cc", |
213 'src/google/protobuf/compiler/java/java_extension.h', | 291 "src/google/protobuf/compiler/csharp/csharp_enum_field.h", |
214 'src/google/protobuf/compiler/java/java_field.cc', | 292 "src/google/protobuf/compiler/csharp/csharp_field_base.cc", |
215 'src/google/protobuf/compiler/java/java_field.h', | 293 "src/google/protobuf/compiler/csharp/csharp_field_base.h", |
216 'src/google/protobuf/compiler/java/java_file.cc', | 294 "src/google/protobuf/compiler/csharp/csharp_generator.cc", |
217 'src/google/protobuf/compiler/java/java_file.h', | 295 "src/google/protobuf/compiler/csharp/csharp_generator.h", |
218 'src/google/protobuf/compiler/java/java_generator.cc', | 296 "src/google/protobuf/compiler/csharp/csharp_helpers.cc", |
219 'src/google/protobuf/compiler/java/java_helpers.cc', | 297 "src/google/protobuf/compiler/csharp/csharp_helpers.h", |
220 'src/google/protobuf/compiler/java/java_helpers.h', | 298 "src/google/protobuf/compiler/csharp/csharp_map_field.cc", |
221 'src/google/protobuf/compiler/java/java_message.cc', | 299 "src/google/protobuf/compiler/csharp/csharp_map_field.h", |
222 'src/google/protobuf/compiler/java/java_message.h', | 300 "src/google/protobuf/compiler/csharp/csharp_message.cc", |
223 'src/google/protobuf/compiler/java/java_message_field.cc', | 301 "src/google/protobuf/compiler/csharp/csharp_message.h", |
224 'src/google/protobuf/compiler/java/java_message_field.h', | 302 "src/google/protobuf/compiler/csharp/csharp_message_field.cc", |
225 'src/google/protobuf/compiler/java/java_primitive_field.cc', | 303 "src/google/protobuf/compiler/csharp/csharp_message_field.h", |
226 'src/google/protobuf/compiler/java/java_primitive_field.h', | 304 "src/google/protobuf/compiler/csharp/csharp_primitive_field.cc", |
227 'src/google/protobuf/compiler/java/java_service.cc', | 305 "src/google/protobuf/compiler/csharp/csharp_primitive_field.h", |
228 'src/google/protobuf/compiler/java/java_service.h', | 306 "src/google/protobuf/compiler/csharp/csharp_reflection_class.cc"
, |
229 'src/google/protobuf/compiler/java/java_string_field.cc', | 307 "src/google/protobuf/compiler/csharp/csharp_reflection_class.h", |
230 'src/google/protobuf/compiler/java/java_string_field.h', | 308 "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.
cc", |
231 'src/google/protobuf/compiler/python/python_generator.cc', | 309 "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.
h", |
232 'src/google/protobuf/compiler/main.cc', | 310 "src/google/protobuf/compiler/csharp/csharp_repeated_message_fie
ld.cc", |
| 311 "src/google/protobuf/compiler/csharp/csharp_repeated_message_fie
ld.h", |
| 312 "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_f
ield.cc", |
| 313 "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_f
ield.h", |
| 314 "src/google/protobuf/compiler/csharp/csharp_source_generator_bas
e.cc", |
| 315 "src/google/protobuf/compiler/csharp/csharp_source_generator_bas
e.h", |
| 316 "src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc", |
| 317 "src/google/protobuf/compiler/csharp/csharp_wrapper_field.h", |
| 318 "src/google/protobuf/compiler/java/java_context.cc", |
| 319 "src/google/protobuf/compiler/java/java_context.h", |
| 320 "src/google/protobuf/compiler/java/java_doc_comment.cc", |
| 321 "src/google/protobuf/compiler/java/java_doc_comment.h", |
| 322 "src/google/protobuf/compiler/java/java_enum.cc", |
| 323 "src/google/protobuf/compiler/java/java_enum.h", |
| 324 "src/google/protobuf/compiler/java/java_enum_field.cc", |
| 325 "src/google/protobuf/compiler/java/java_enum_field.h", |
| 326 "src/google/protobuf/compiler/java/java_enum_field_lite.cc", |
| 327 "src/google/protobuf/compiler/java/java_enum_field_lite.h", |
| 328 "src/google/protobuf/compiler/java/java_enum_lite.cc", |
| 329 "src/google/protobuf/compiler/java/java_enum_lite.h", |
| 330 "src/google/protobuf/compiler/java/java_extension.cc", |
| 331 "src/google/protobuf/compiler/java/java_extension.h", |
| 332 "src/google/protobuf/compiler/java/java_field.cc", |
| 333 "src/google/protobuf/compiler/java/java_field.h", |
| 334 "src/google/protobuf/compiler/java/java_file.cc", |
| 335 "src/google/protobuf/compiler/java/java_file.h", |
| 336 "src/google/protobuf/compiler/java/java_generator.cc", |
| 337 "src/google/protobuf/compiler/java/java_generator.h", |
| 338 "src/google/protobuf/compiler/java/java_generator_factory.cc", |
| 339 "src/google/protobuf/compiler/java/java_generator_factory.h", |
| 340 "src/google/protobuf/compiler/java/java_helpers.cc", |
| 341 "src/google/protobuf/compiler/java/java_helpers.h", |
| 342 "src/google/protobuf/compiler/java/java_lazy_message_field.cc", |
| 343 "src/google/protobuf/compiler/java/java_lazy_message_field.h", |
| 344 "src/google/protobuf/compiler/java/java_lazy_message_field_lite.
cc", |
| 345 "src/google/protobuf/compiler/java/java_lazy_message_field_lite.
h", |
| 346 "src/google/protobuf/compiler/java/java_map_field.cc", |
| 347 "src/google/protobuf/compiler/java/java_map_field.h", |
| 348 "src/google/protobuf/compiler/java/java_map_field_lite.cc", |
| 349 "src/google/protobuf/compiler/java/java_map_field_lite.h", |
| 350 "src/google/protobuf/compiler/java/java_message.cc", |
| 351 "src/google/protobuf/compiler/java/java_message.h", |
| 352 "src/google/protobuf/compiler/java/java_message_builder.cc", |
| 353 "src/google/protobuf/compiler/java/java_message_builder.h", |
| 354 "src/google/protobuf/compiler/java/java_message_builder_lite.cc"
, |
| 355 "src/google/protobuf/compiler/java/java_message_builder_lite.h", |
| 356 "src/google/protobuf/compiler/java/java_message_field.cc", |
| 357 "src/google/protobuf/compiler/java/java_message_field.h", |
| 358 "src/google/protobuf/compiler/java/java_message_field_lite.cc", |
| 359 "src/google/protobuf/compiler/java/java_message_field_lite.h", |
| 360 "src/google/protobuf/compiler/java/java_message_lite.cc", |
| 361 "src/google/protobuf/compiler/java/java_message_lite.h", |
| 362 "src/google/protobuf/compiler/java/java_name_resolver.cc", |
| 363 "src/google/protobuf/compiler/java/java_name_resolver.h", |
| 364 "src/google/protobuf/compiler/java/java_primitive_field.cc", |
| 365 "src/google/protobuf/compiler/java/java_primitive_field.h", |
| 366 "src/google/protobuf/compiler/java/java_primitive_field_lite.cc"
, |
| 367 "src/google/protobuf/compiler/java/java_primitive_field_lite.h", |
| 368 "src/google/protobuf/compiler/java/java_service.cc", |
| 369 "src/google/protobuf/compiler/java/java_service.h", |
| 370 "src/google/protobuf/compiler/java/java_shared_code_generator.cc
", |
| 371 "src/google/protobuf/compiler/java/java_shared_code_generator.h"
, |
| 372 "src/google/protobuf/compiler/java/java_string_field.cc", |
| 373 "src/google/protobuf/compiler/java/java_string_field.h", |
| 374 "src/google/protobuf/compiler/java/java_string_field_lite.cc", |
| 375 "src/google/protobuf/compiler/java/java_string_field_lite.h", |
| 376 "src/google/protobuf/compiler/javanano/javanano_enum.cc", |
| 377 "src/google/protobuf/compiler/javanano/javanano_enum.h", |
| 378 "src/google/protobuf/compiler/javanano/javanano_enum_field.cc", |
| 379 "src/google/protobuf/compiler/javanano/javanano_enum_field.h", |
| 380 "src/google/protobuf/compiler/javanano/javanano_extension.cc", |
| 381 "src/google/protobuf/compiler/javanano/javanano_extension.h", |
| 382 "src/google/protobuf/compiler/javanano/javanano_field.cc", |
| 383 "src/google/protobuf/compiler/javanano/javanano_field.h", |
| 384 "src/google/protobuf/compiler/javanano/javanano_file.cc", |
| 385 "src/google/protobuf/compiler/javanano/javanano_file.h", |
| 386 "src/google/protobuf/compiler/javanano/javanano_generator.cc", |
| 387 "src/google/protobuf/compiler/javanano/javanano_generator.h", |
| 388 "src/google/protobuf/compiler/javanano/javanano_helpers.cc", |
| 389 "src/google/protobuf/compiler/javanano/javanano_helpers.h", |
| 390 "src/google/protobuf/compiler/javanano/javanano_map_field.cc", |
| 391 "src/google/protobuf/compiler/javanano/javanano_map_field.h", |
| 392 "src/google/protobuf/compiler/javanano/javanano_message.cc", |
| 393 "src/google/protobuf/compiler/javanano/javanano_message.h", |
| 394 "src/google/protobuf/compiler/javanano/javanano_message_field.cc
", |
| 395 "src/google/protobuf/compiler/javanano/javanano_message_field.h"
, |
| 396 "src/google/protobuf/compiler/javanano/javanano_primitive_field.
cc", |
| 397 "src/google/protobuf/compiler/javanano/javanano_primitive_field.
h", |
| 398 "src/google/protobuf/compiler/js/js_generator.cc", |
| 399 "src/google/protobuf/compiler/js/js_generator.h", |
| 400 "src/google/protobuf/compiler/main.cc", |
| 401 "src/google/protobuf/compiler/objectivec/objectivec_enum.cc", |
| 402 "src/google/protobuf/compiler/objectivec/objectivec_enum.h", |
| 403 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.c
c", |
| 404 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.h
", |
| 405 "src/google/protobuf/compiler/objectivec/objectivec_extension.cc
", |
| 406 "src/google/protobuf/compiler/objectivec/objectivec_extension.h"
, |
| 407 "src/google/protobuf/compiler/objectivec/objectivec_field.cc", |
| 408 "src/google/protobuf/compiler/objectivec/objectivec_field.h", |
| 409 "src/google/protobuf/compiler/objectivec/objectivec_file.cc", |
| 410 "src/google/protobuf/compiler/objectivec/objectivec_file.h", |
| 411 "src/google/protobuf/compiler/objectivec/objectivec_generator.cc
", |
| 412 "src/google/protobuf/compiler/objectivec/objectivec_generator.h"
, |
| 413 "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc", |
| 414 "src/google/protobuf/compiler/objectivec/objectivec_helpers.h", |
| 415 "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc
", |
| 416 "src/google/protobuf/compiler/objectivec/objectivec_map_field.h"
, |
| 417 "src/google/protobuf/compiler/objectivec/objectivec_message.cc", |
| 418 "src/google/protobuf/compiler/objectivec/objectivec_message.h", |
| 419 "src/google/protobuf/compiler/objectivec/objectivec_message_fiel
d.cc", |
| 420 "src/google/protobuf/compiler/objectivec/objectivec_message_fiel
d.h", |
| 421 "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc", |
| 422 "src/google/protobuf/compiler/objectivec/objectivec_oneof.h", |
| 423 "src/google/protobuf/compiler/objectivec/objectivec_primitive_fi
eld.cc", |
| 424 "src/google/protobuf/compiler/objectivec/objectivec_primitive_fi
eld.h", |
| 425 "src/google/protobuf/compiler/plugin.cc", |
| 426 "src/google/protobuf/compiler/plugin.h", |
| 427 "src/google/protobuf/compiler/plugin.pb.cc", |
| 428 "src/google/protobuf/compiler/plugin.pb.h", |
| 429 "src/google/protobuf/compiler/python/python_generator.cc", |
| 430 "src/google/protobuf/compiler/python/python_generator.h", |
| 431 "src/google/protobuf/compiler/ruby/ruby_generator.cc", |
| 432 "src/google/protobuf/compiler/ruby/ruby_generator.h", |
| 433 "src/google/protobuf/compiler/subprocess.cc", |
| 434 "src/google/protobuf/compiler/subprocess.h", |
| 435 "src/google/protobuf/compiler/zip_writer.cc", |
| 436 "src/google/protobuf/compiler/zip_writer.h", |
233 ], | 437 ], |
| 438 'variables': { |
| 439 'clang_warning_flags': [ |
| 440 # protobuf-3 contains a few functions that are unused. |
| 441 '-Wno-unused-function', |
| 442 ], |
| 443 }, |
234 'dependencies': [ | 444 'dependencies': [ |
235 'protobuf_full_do_not_use', | 445 'protobuf_full_do_not_use', |
236 ], | 446 ], |
237 'include_dirs': [ | 447 'include_dirs': [ |
238 '<(config_h_dir)', | |
239 'src/src', | 448 'src/src', |
240 ], | 449 ], |
241 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR
_FLAVOR)"!="ninja" | 450 }, { # else, OS=="ios" and "<(GENERATOR)"=="xcode" and "<(GENERATOR
_FLAVOR)"!="ninja" |
242 'type': 'none', | 451 'type': 'none', |
243 'toolsets': ['host'], | 452 'toolsets': ['host'], |
244 'dependencies': [ | 453 'dependencies': [ |
245 'compile_protoc', | 454 'compile_protoc', |
246 ], | 455 ], |
247 'actions': [ | 456 'actions': [ |
248 { | 457 { |
(...skipping 15 matching lines...) Expand all Loading... |
264 ], | 473 ], |
265 }, | 474 }, |
266 { | 475 { |
267 # Generate the python module needed by all protoc-generated Python cod
e. | 476 # Generate the python module needed by all protoc-generated Python cod
e. |
268 'target_name': 'py_proto', | 477 'target_name': 'py_proto', |
269 'type': 'none', | 478 'type': 'none', |
270 'copies': [ | 479 'copies': [ |
271 { | 480 { |
272 'destination': '<(PRODUCT_DIR)/pyproto/google/', | 481 'destination': '<(PRODUCT_DIR)/pyproto/google/', |
273 'files': [ | 482 'files': [ |
274 # google/ module gets an empty __init__.py. | |
275 '__init__.py', | 483 '__init__.py', |
276 ], | 484 ], |
277 }, | 485 }, |
278 { | 486 { |
| 487 'destination': '<(PRODUCT_DIR)/pyproto/google/third_party/six/', |
| 488 'files': [ |
| 489 'third_party/six/six.py', |
| 490 ], |
| 491 }, |
| 492 { |
279 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', | 493 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf', |
280 'files': [ | 494 'files': [ |
281 'python/google/protobuf/__init__.py', | 495 'python/google/protobuf/__init__.py', |
282 'python/google/protobuf/descriptor.py', | 496 'python/google/protobuf/descriptor.py', |
283 'python/google/protobuf/descriptor_database.py', | 497 'python/google/protobuf/descriptor_database.py', |
284 'python/google/protobuf/descriptor_pool.py', | 498 'python/google/protobuf/descriptor_pool.py', |
| 499 'python/google/protobuf/json_format.py', |
285 'python/google/protobuf/message.py', | 500 'python/google/protobuf/message.py', |
286 'python/google/protobuf/message_factory.py', | 501 'python/google/protobuf/message_factory.py', |
| 502 'python/google/protobuf/proto_builder.py', |
287 'python/google/protobuf/reflection.py', | 503 'python/google/protobuf/reflection.py', |
288 'python/google/protobuf/service.py', | 504 'python/google/protobuf/service.py', |
289 'python/google/protobuf/service_reflection.py', | 505 'python/google/protobuf/service_reflection.py', |
| 506 'python/google/protobuf/symbol_database.py', |
| 507 'python/google/protobuf/text_encoding.py', |
290 'python/google/protobuf/text_format.py', | 508 'python/google/protobuf/text_format.py', |
291 | 509 |
292 # TODO(ncarter): protoc's python generator treats | 510 # TODO(ncarter): protoc's python generator treats |
293 # descriptor.proto specially, but it's not possible to trigger | 511 # descriptor.proto specially, but only when the input path is |
294 # the special treatment unless you run protoc from ./src/src | 512 # exactly "google/protobuf/descriptor.proto". I'm not sure how |
295 # (the treatment is based on the path to the .proto file | 513 # to execute a rule from a different directory. For now, use a |
296 # matching a constant exactly). I'm not sure how to convince | 514 # manually-generated copy of descriptor_pb2.py. |
297 # gyp to execute a rule from a different directory. Until this | 515 'python/google/protobuf/descriptor_pb2.py', |
298 # is resolved, use a copy of descriptor_pb2.py that I manually | |
299 # generated. | |
300 'descriptor_pb2.py', | |
301 ], | 516 ], |
302 }, | 517 }, |
303 { | 518 { |
304 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', | 519 'destination': '<(PRODUCT_DIR)/pyproto/google/protobuf/internal', |
305 'files': [ | 520 'files': [ |
306 'python/google/protobuf/internal/__init__.py', | 521 'python/google/protobuf/internal/__init__.py', |
| 522 'python/google/protobuf/internal/_parameterized.py', |
307 'python/google/protobuf/internal/api_implementation.py', | 523 'python/google/protobuf/internal/api_implementation.py', |
308 'python/google/protobuf/internal/containers.py', | 524 'python/google/protobuf/internal/containers.py', |
309 'python/google/protobuf/internal/cpp_message.py', | |
310 'python/google/protobuf/internal/decoder.py', | 525 'python/google/protobuf/internal/decoder.py', |
311 'python/google/protobuf/internal/encoder.py', | 526 'python/google/protobuf/internal/encoder.py', |
312 'python/google/protobuf/internal/enum_type_wrapper.py', | 527 'python/google/protobuf/internal/enum_type_wrapper.py', |
313 'python/google/protobuf/internal/generator_test.py', | |
314 'python/google/protobuf/internal/message_listener.py', | 528 'python/google/protobuf/internal/message_listener.py', |
315 'python/google/protobuf/internal/python_message.py', | 529 'python/google/protobuf/internal/python_message.py', |
316 'python/google/protobuf/internal/type_checkers.py', | 530 'python/google/protobuf/internal/type_checkers.py', |
| 531 'python/google/protobuf/internal/well_known_types.py', |
317 'python/google/protobuf/internal/wire_format.py', | 532 'python/google/protobuf/internal/wire_format.py', |
318 ], | 533 ], |
319 }, | 534 }, |
320 ], | 535 ], |
321 # # We can't generate a proper descriptor_pb2.py -- see earlier comment. | 536 # # We can't generate a proper descriptor_pb2.py -- see earlier comment. |
322 # 'rules': [ | 537 # 'rules': [ |
323 # { | 538 # { |
324 # 'rule_name': 'genproto', | 539 # 'rule_name': 'genproto', |
325 # 'extension': 'proto', | 540 # 'extension': 'proto', |
326 # 'inputs': [ | 541 # 'inputs': [ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 'toolsets': ['host', 'target'], | 604 'toolsets': ['host', 'target'], |
390 }, | 605 }, |
391 { | 606 { |
392 'target_name': 'py_proto', | 607 'target_name': 'py_proto', |
393 'type': 'none', | 608 'type': 'none', |
394 }, | 609 }, |
395 ], | 610 ], |
396 }], | 611 }], |
397 ], | 612 ], |
398 } | 613 } |
OLD | NEW |