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': { | 10 'variables': { |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 # 'message': 'Generating Python code from <(RULE_INPUT_PATH)', | 377 # 'message': 'Generating Python code from <(RULE_INPUT_PATH)', |
378 # }, | 378 # }, |
379 # ], | 379 # ], |
380 # 'dependencies': [ | 380 # 'dependencies': [ |
381 # 'protoc#host', | 381 # 'protoc#host', |
382 # ], | 382 # ], |
383 # 'sources': [ | 383 # 'sources': [ |
384 # 'src/google/protobuf/descriptor.proto', | 384 # 'src/google/protobuf/descriptor.proto', |
385 # ], | 385 # ], |
386 }, | 386 }, |
| 387 { |
| 388 'target_name': 'protobuf_lite_java', |
| 389 'type' : 'none', |
| 390 'dependencies': [ |
| 391 'protoc#host', |
| 392 ], |
| 393 'variables': { |
| 394 'script_descriptors': './protobuf_lite_java_descriptor_proto.py', |
| 395 'script_pom': './protobuf_lite_java_parse_pom.py', |
| 396 'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SU
FFIX)', |
| 397 # Variables needed by java.gypi below. |
| 398 'java_out_dir': '<(PRODUCT_DIR)/java_proto/protobuf_lite_java_descr
iptor_proto', |
| 399 'generated_src_dirs': ['<(java_out_dir)'], |
| 400 'package_name': '<(_target_name)', |
| 401 'java_in_dir': 'java', |
| 402 'maven_pom': '<(java_in_dir)/pom.xml', |
| 403 'javac_includes': ['<!@(<(script_pom) <(maven_pom))'], |
| 404 }, |
| 405 'actions': [ |
| 406 { |
| 407 'action_name': 'protobuf_lite_java_gen_descriptor_proto', |
| 408 'inputs': [ |
| 409 '<(script_descriptors)', |
| 410 '<(protoc)', |
| 411 'src/google/protobuf/descriptor.proto', |
| 412 ], |
| 413 'outputs': [ |
| 414 '<(java_out_dir)/com/google/protobuf/DescriptorProtos.java', |
| 415 ], |
| 416 'action': [ |
| 417 '<(script_descriptors)', |
| 418 '<(protoc)', |
| 419 '<(java_out_dir)', |
| 420 'src', |
| 421 'src/google/protobuf/descriptor.proto', |
| 422 ], |
| 423 'message': 'Generating descriptor protos for Java', |
| 424 }, |
| 425 ], |
| 426 # Now that we have generated DescriptorProtos.java, build jar. |
| 427 'includes': ['../../build/java.gypi'], |
| 428 }, |
387 ], | 429 ], |
388 }, { # use_system_protobuf==1 | 430 }, { # use_system_protobuf==1 |
389 'targets': [ | 431 'targets': [ |
390 { | 432 { |
391 'target_name': 'protobuf_lite', | 433 'target_name': 'protobuf_lite', |
392 'type': 'none', | 434 'type': 'none', |
393 'direct_dependent_settings': { | 435 'direct_dependent_settings': { |
394 'cflags': [ | 436 'cflags': [ |
395 '<!@(pkg-config --cflags protobuf-lite)', | 437 '<!@(pkg-config --cflags protobuf-lite)', |
396 ], | 438 ], |
(...skipping 19 matching lines...) Expand all Loading... |
416 'toolsets': ['host', 'target'], | 458 'toolsets': ['host', 'target'], |
417 }, | 459 }, |
418 { | 460 { |
419 'target_name': 'py_proto', | 461 'target_name': 'py_proto', |
420 'type': 'none', | 462 'type': 'none', |
421 }, | 463 }, |
422 ], | 464 ], |
423 }], | 465 }], |
424 ], | 466 ], |
425 } | 467 } |
OLD | NEW |