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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 'action': [ | 60 'action': [ |
61 '<@(ninja_cmd)', | 61 '<@(ninja_cmd)', |
62 'protoc', | 62 'protoc', |
63 ], | 63 ], |
64 'message': 'Generating the C++ protocol buffers compiler', | 64 'message': 'Generating the C++ protocol buffers compiler', |
65 }, | 65 }, |
66 ], | 66 ], |
67 }, | 67 }, |
68 ], | 68 ], |
69 }], | 69 }], |
| 70 ['OS=="android"', { |
| 71 'targets': [ |
| 72 { |
| 73 'target_name': 'protobuf_lite_java', |
| 74 'type' : 'none', |
| 75 'dependencies': [ |
| 76 'protoc#host', |
| 77 ], |
| 78 'variables': { |
| 79 'script_descriptors': './protobuf_lite_java_descriptor_proto.py'
, |
| 80 'script_pom': './protobuf_lite_java_parse_pom.py', |
| 81 'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE
_SUFFIX)', |
| 82 # Variables needed by java.gypi below. |
| 83 'java_out_dir': '<(PRODUCT_DIR)/java_proto/protobuf_lite_java_de
scriptor_proto', |
| 84 'generated_src_dirs': ['<(java_out_dir)'], |
| 85 'package_name': '<(_target_name)', |
| 86 'java_in_dir': 'java', |
| 87 'maven_pom': '<(java_in_dir)/pom.xml', |
| 88 'javac_includes': ['<!@(<(script_pom) <(maven_pom))'], |
| 89 }, |
| 90 'actions': [ |
| 91 { |
| 92 'action_name': 'protobuf_lite_java_gen_descriptor_proto', |
| 93 'inputs': [ |
| 94 '<(script_descriptors)', |
| 95 '<(protoc)', |
| 96 'src/google/protobuf/descriptor.proto', |
| 97 ], |
| 98 'outputs': [ |
| 99 '<(java_out_dir)/com/google/protobuf/DescriptorProtos.java', |
| 100 ], |
| 101 'action': [ |
| 102 '<(script_descriptors)', |
| 103 '<(protoc)', |
| 104 '<(java_out_dir)', |
| 105 'src', |
| 106 'src/google/protobuf/descriptor.proto', |
| 107 ], |
| 108 'message': 'Generating descriptor protos for Java', |
| 109 }, |
| 110 ], |
| 111 # Now that we have generated DescriptorProtos.java, build jar. |
| 112 'includes': ['../../build/java.gypi'], |
| 113 }, |
| 114 ] |
| 115 }], |
70 ], | 116 ], |
71 'targets': [ | 117 'targets': [ |
72 # The "lite" lib is about 1/7th the size of the heavy lib, | 118 # The "lite" lib is about 1/7th the size of the heavy lib, |
73 # but it doesn't support some of the more exotic features of | 119 # but it doesn't support some of the more exotic features of |
74 # protobufs, like reflection. To generate C++ code that can link | 120 # protobufs, like reflection. To generate C++ code that can link |
75 # against the lite version of the library, add the option line: | 121 # against the lite version of the library, add the option line: |
76 # | 122 # |
77 # option optimize_for = LITE_RUNTIME; | 123 # option optimize_for = LITE_RUNTIME; |
78 # | 124 # |
79 # to your .proto file. | 125 # to your .proto file. |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 'toolsets': ['host', 'target'], | 466 'toolsets': ['host', 'target'], |
421 }, | 467 }, |
422 { | 468 { |
423 'target_name': 'py_proto', | 469 'target_name': 'py_proto', |
424 'type': 'none', | 470 'type': 'none', |
425 }, | 471 }, |
426 ], | 472 ], |
427 }], | 473 }], |
428 ], | 474 ], |
429 } | 475 } |
OLD | NEW |