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 ['OS!="win"', { | 7 ['OS!="win"', { |
8 'variables': { | 8 'variables': { |
9 'config_h_dir': | 9 'config_h_dir': |
10 '.', # crafted for gcc/linux. | 10 '.', # crafted for gcc/linux. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 ], | 158 ], |
159 'dependencies': [ | 159 'dependencies': [ |
160 'protobuf_lite', | 160 'protobuf_lite', |
161 ], | 161 ], |
162 'export_dependent_settings': [ | 162 'export_dependent_settings': [ |
163 'protobuf_lite', | 163 'protobuf_lite', |
164 ], | 164 ], |
165 }, | 165 }, |
166 { | 166 { |
167 'target_name': 'protoc', | 167 'target_name': 'protoc', |
168 'type': 'executable', | 168 'conditions': [ |
169 'toolsets': ['host'], | 169 ['OS!="ios"', { |
170 'sources': [ | 170 'type': 'executable', |
171 'src/google/protobuf/compiler/code_generator.cc', | 171 'toolsets': ['host'], |
172 'src/google/protobuf/compiler/command_line_interface.cc', | 172 'sources': [ |
173 'src/google/protobuf/compiler/plugin.cc', | 173 'src/google/protobuf/compiler/code_generator.cc', |
174 'src/google/protobuf/compiler/plugin.pb.cc', | 174 'src/google/protobuf/compiler/command_line_interface.cc', |
175 'src/google/protobuf/compiler/subprocess.cc', | 175 'src/google/protobuf/compiler/plugin.cc', |
176 'src/google/protobuf/compiler/subprocess.h', | 176 'src/google/protobuf/compiler/plugin.pb.cc', |
177 'src/google/protobuf/compiler/zip_writer.cc', | 177 'src/google/protobuf/compiler/subprocess.cc', |
178 'src/google/protobuf/compiler/zip_writer.h', | 178 'src/google/protobuf/compiler/subprocess.h', |
179 'src/google/protobuf/compiler/cpp/cpp_enum.cc', | 179 'src/google/protobuf/compiler/zip_writer.cc', |
180 'src/google/protobuf/compiler/cpp/cpp_enum.h', | 180 'src/google/protobuf/compiler/zip_writer.h', |
181 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', | 181 'src/google/protobuf/compiler/cpp/cpp_enum.cc', |
182 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', | 182 'src/google/protobuf/compiler/cpp/cpp_enum.h', |
183 'src/google/protobuf/compiler/cpp/cpp_extension.cc', | 183 'src/google/protobuf/compiler/cpp/cpp_enum_field.cc', |
184 'src/google/protobuf/compiler/cpp/cpp_extension.h', | 184 'src/google/protobuf/compiler/cpp/cpp_enum_field.h', |
185 'src/google/protobuf/compiler/cpp/cpp_field.cc', | 185 'src/google/protobuf/compiler/cpp/cpp_extension.cc', |
186 'src/google/protobuf/compiler/cpp/cpp_field.h', | 186 'src/google/protobuf/compiler/cpp/cpp_extension.h', |
187 'src/google/protobuf/compiler/cpp/cpp_file.cc', | 187 'src/google/protobuf/compiler/cpp/cpp_field.cc', |
188 'src/google/protobuf/compiler/cpp/cpp_file.h', | 188 'src/google/protobuf/compiler/cpp/cpp_field.h', |
189 'src/google/protobuf/compiler/cpp/cpp_generator.cc', | 189 'src/google/protobuf/compiler/cpp/cpp_file.cc', |
190 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', | 190 'src/google/protobuf/compiler/cpp/cpp_file.h', |
191 'src/google/protobuf/compiler/cpp/cpp_helpers.h', | 191 'src/google/protobuf/compiler/cpp/cpp_generator.cc', |
192 'src/google/protobuf/compiler/cpp/cpp_message.cc', | 192 'src/google/protobuf/compiler/cpp/cpp_helpers.cc', |
193 'src/google/protobuf/compiler/cpp/cpp_message.h', | 193 'src/google/protobuf/compiler/cpp/cpp_helpers.h', |
194 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', | 194 'src/google/protobuf/compiler/cpp/cpp_message.cc', |
195 'src/google/protobuf/compiler/cpp/cpp_message_field.h', | 195 'src/google/protobuf/compiler/cpp/cpp_message.h', |
196 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', | 196 'src/google/protobuf/compiler/cpp/cpp_message_field.cc', |
197 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', | 197 'src/google/protobuf/compiler/cpp/cpp_message_field.h', |
198 'src/google/protobuf/compiler/cpp/cpp_service.cc', | 198 'src/google/protobuf/compiler/cpp/cpp_primitive_field.cc', |
199 'src/google/protobuf/compiler/cpp/cpp_service.h', | 199 'src/google/protobuf/compiler/cpp/cpp_primitive_field.h', |
200 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', | 200 'src/google/protobuf/compiler/cpp/cpp_service.cc', |
201 'src/google/protobuf/compiler/cpp/cpp_string_field.h', | 201 'src/google/protobuf/compiler/cpp/cpp_service.h', |
202 'src/google/protobuf/compiler/java/java_enum.cc', | 202 'src/google/protobuf/compiler/cpp/cpp_string_field.cc', |
203 'src/google/protobuf/compiler/java/java_enum.h', | 203 'src/google/protobuf/compiler/cpp/cpp_string_field.h', |
204 'src/google/protobuf/compiler/java/java_enum_field.cc', | 204 'src/google/protobuf/compiler/java/java_enum.cc', |
205 'src/google/protobuf/compiler/java/java_enum_field.h', | 205 'src/google/protobuf/compiler/java/java_enum.h', |
206 'src/google/protobuf/compiler/java/java_extension.cc', | 206 'src/google/protobuf/compiler/java/java_enum_field.cc', |
207 'src/google/protobuf/compiler/java/java_extension.h', | 207 'src/google/protobuf/compiler/java/java_enum_field.h', |
208 'src/google/protobuf/compiler/java/java_field.cc', | 208 'src/google/protobuf/compiler/java/java_extension.cc', |
209 'src/google/protobuf/compiler/java/java_field.h', | 209 'src/google/protobuf/compiler/java/java_extension.h', |
210 'src/google/protobuf/compiler/java/java_file.cc', | 210 'src/google/protobuf/compiler/java/java_field.cc', |
211 'src/google/protobuf/compiler/java/java_file.h', | 211 'src/google/protobuf/compiler/java/java_field.h', |
212 'src/google/protobuf/compiler/java/java_generator.cc', | 212 'src/google/protobuf/compiler/java/java_file.cc', |
213 'src/google/protobuf/compiler/java/java_helpers.cc', | 213 'src/google/protobuf/compiler/java/java_file.h', |
214 'src/google/protobuf/compiler/java/java_helpers.h', | 214 'src/google/protobuf/compiler/java/java_generator.cc', |
215 'src/google/protobuf/compiler/java/java_message.cc', | 215 'src/google/protobuf/compiler/java/java_helpers.cc', |
216 'src/google/protobuf/compiler/java/java_message.h', | 216 'src/google/protobuf/compiler/java/java_helpers.h', |
217 'src/google/protobuf/compiler/java/java_message_field.cc', | 217 'src/google/protobuf/compiler/java/java_message.cc', |
218 'src/google/protobuf/compiler/java/java_message_field.h', | 218 'src/google/protobuf/compiler/java/java_message.h', |
219 'src/google/protobuf/compiler/java/java_primitive_field.cc', | 219 'src/google/protobuf/compiler/java/java_message_field.cc', |
220 'src/google/protobuf/compiler/java/java_primitive_field.h', | 220 'src/google/protobuf/compiler/java/java_message_field.h', |
221 'src/google/protobuf/compiler/java/java_service.cc', | 221 'src/google/protobuf/compiler/java/java_primitive_field.cc', |
222 'src/google/protobuf/compiler/java/java_service.h', | 222 'src/google/protobuf/compiler/java/java_primitive_field.h', |
223 'src/google/protobuf/compiler/java/java_string_field.cc', | 223 'src/google/protobuf/compiler/java/java_service.cc', |
224 'src/google/protobuf/compiler/java/java_string_field.h', | 224 'src/google/protobuf/compiler/java/java_service.h', |
225 'src/google/protobuf/compiler/python/python_generator.cc', | 225 'src/google/protobuf/compiler/java/java_string_field.cc', |
226 'src/google/protobuf/compiler/main.cc', | 226 'src/google/protobuf/compiler/java/java_string_field.h', |
227 ], | 227 'src/google/protobuf/compiler/python/python_generator.cc', |
228 'dependencies': [ | 228 'src/google/protobuf/compiler/main.cc', |
229 'protobuf_full_do_not_use', | 229 ], |
230 ], | 230 'dependencies': [ |
231 'include_dirs': [ | 231 'protobuf_full_do_not_use', |
232 '<(config_h_dir)', | 232 ], |
233 'src/src', | 233 'include_dirs': [ |
| 234 '<(config_h_dir)', |
| 235 'src/src', |
| 236 ], |
| 237 }, { # else, OS=="ios" |
| 238 'type': 'none', |
| 239 'variables': { |
| 240 'ninja_output_dir': 'ninja-protoc', |
| 241 # Gyp to rerun |
| 242 're_run_targets': [ |
| 243 'third_party/protobuf/protobuf.gyp', |
| 244 ], |
| 245 }, |
| 246 'includes': ['../../build/ios/mac_build.gypi'], |
| 247 'actions': [ |
| 248 { |
| 249 'action_name': 'compile protoc', |
| 250 'inputs': [], |
| 251 'outputs': [], |
| 252 'action': [ |
| 253 '<@(ninja_cmd)', |
| 254 'protoc', |
| 255 ], |
| 256 'message': 'Generating the C++ protocol buffers compiler', |
| 257 }, |
| 258 { |
| 259 'action_name': 'copy protoc', |
| 260 'inputs': [ |
| 261 '<(ninja_product_dir)/protoc', |
| 262 ], |
| 263 'outputs': [ |
| 264 '<(PRODUCT_DIR)/protoc', |
| 265 ], |
| 266 'action': [ |
| 267 'cp', |
| 268 '<(ninja_product_dir)/protoc', |
| 269 '<(PRODUCT_DIR)/protoc', |
| 270 ], |
| 271 }, |
| 272 ], |
| 273 }], |
234 ], | 274 ], |
235 }, | 275 }, |
236 { | 276 { |
237 # Generate the python module needed by all protoc-generated Python code. | 277 # Generate the python module needed by all protoc-generated Python code. |
238 'target_name': 'py_proto', | 278 'target_name': 'py_proto', |
239 'type': 'none', | 279 'type': 'none', |
240 'copies': [ | 280 'copies': [ |
241 { | 281 { |
242 'destination': '<(PRODUCT_DIR)/pyproto/google/', | 282 'destination': '<(PRODUCT_DIR)/pyproto/google/', |
243 'files': [ | 283 'files': [ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 # ], | 351 # ], |
312 # 'dependencies': [ | 352 # 'dependencies': [ |
313 # 'protoc#host', | 353 # 'protoc#host', |
314 # ], | 354 # ], |
315 # 'sources': [ | 355 # 'sources': [ |
316 # 'src/google/protobuf/descriptor.proto', | 356 # 'src/google/protobuf/descriptor.proto', |
317 # ], | 357 # ], |
318 }, | 358 }, |
319 ], | 359 ], |
320 } | 360 } |
OLD | NEW |