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 'variables': { | 6 'variables': { |
7 # This library should build cleanly with the extra warnings turned on | 7 # This library should build cleanly with the extra warnings turned on |
8 # for Chromium. | 8 # for Chromium. |
9 'chromium_code': 1, | 9 'chromium_code': 1, |
10 # The relative path of the cacheinvalidation proto files from 'src'. | |
11 # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so | |
12 # we don't need this variable. | |
13 'proto_dir_relpath': 'google/cacheinvalidation', | |
14 # Where files generated from proto files are put. | |
15 'proto_in_dir': 'src/<(proto_dir_relpath)', | |
16 'proto_out_dir': '<(proto_dir_relpath)', | |
17 }, | 10 }, |
18 'targets': [ | 11 'targets': [ |
19 # The C++ files generated from the cache invalidation protocol buffers. | 12 # The C++ files generated from the cache invalidation protocol buffers. |
20 { | 13 { |
21 'target_name': 'cacheinvalidation_proto_cpp', | 14 'target_name': 'cacheinvalidation_proto_cpp', |
22 'type': 'static_library', | 15 'type': 'static_library', |
16 'variables': { | |
17 # The relative path of the cacheinvalidation proto files from this | |
18 # gyp-file. | |
19 # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so | |
20 # we don't need this variable. | |
21 'proto_dir_relpath': 'google/cacheinvalidation', | |
22 # Where files generated from proto files are put. | |
23 'proto_in_dir': 'src/<(proto_dir_relpath)', | |
24 'proto_out_dir': '<(proto_dir_relpath)', | |
25 }, | |
23 'sources': [ | 26 'sources': [ |
24 '<(proto_in_dir)/client.proto', | 27 '<(proto_in_dir)/client.proto', |
25 '<(proto_in_dir)/client_gateway.proto', | 28 '<(proto_in_dir)/client_gateway.proto', |
26 '<(proto_in_dir)/client_protocol.proto', | 29 '<(proto_in_dir)/client_protocol.proto', |
27 '<(proto_in_dir)/client_test_internal.proto', | 30 '<(proto_in_dir)/client_test_internal.proto', |
28 '<(proto_in_dir)/types.proto', | 31 '<(proto_in_dir)/types.proto', |
29 ], | 32 ], |
30 'includes': [ '../../build/protoc.gypi' ], | 33 'includes': [ '../../build/protoc.gypi' ], |
31 'direct_dependent_settings': { | 34 'direct_dependent_settings': { |
32 'include_dirs': [ | 35 'include_dirs': [ |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 '<(test_isolation_mode)', | 174 '<(test_isolation_mode)', |
172 '--outdir', '<(test_isolation_outdir)', | 175 '--outdir', '<(test_isolation_outdir)', |
173 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | 176 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', |
174 '--variable', 'OS', '<(OS)', | 177 '--variable', 'OS', '<(OS)', |
175 '--result', '<@(_outputs)', | 178 '--result', '<@(_outputs)', |
176 '--isolate', 'cacheinvalidation_unittests.isolate', | 179 '--isolate', 'cacheinvalidation_unittests.isolate', |
177 ], | 180 ], |
178 }, | 181 }, |
179 ], | 182 ], |
180 }, | 183 }, |
184 # The Java files generated from the cache invalidation protocol buffers. | |
185 { | |
186 'target_name': 'cacheinvalidation_proto_src_java', | |
187 'type': 'none', | |
188 'variables': { | |
189 # The relative path of the Java cacheinvalidation proto files from | |
190 # this gyp-file. | |
191 'proto_in_dir': 'src', | |
192 # Where files generated from proto files are put. | |
193 'proto_out_dir': 'cacheinvalidation/src', | |
194 # The paths to all the classes in the out directory. | |
195 'output_java_files': [ | |
196 'com/google/protos/ipc/invalidation/AndroidChannel.java', | |
cjhopman
2012/10/15 22:14:24
These need to be prefixed by >(java_dir)
cjhopman
2012/10/15 22:15:10
Done.
| |
197 'com/google/protos/ipc/invalidation/AndroidState.java', | |
198 'com/google/protos/ipc/invalidation/ChannelCommon.java', | |
199 'com/google/protos/ipc/invalidation/Channel.java', | |
200 'com/google/protos/ipc/invalidation/Client.java', | |
201 'com/google/protos/ipc/invalidation/ClientProtocol.java', | |
202 'com/google/protos/ipc/invalidation/Types.java', | |
203 ], | |
204 }, | |
205 'sources': [ | |
206 '<(proto_in_dir)/proto/android_channel.proto', | |
207 '<(proto_in_dir)/proto/android_state.proto', | |
208 '<(proto_in_dir)/proto/channel_common.proto', | |
209 '<(proto_in_dir)/proto/channel.proto', | |
210 '<(proto_in_dir)/proto/client.proto', | |
211 '<(proto_in_dir)/proto/client_protocol.proto', | |
212 '<(proto_in_dir)/proto/types.proto', | |
213 ], | |
214 'includes': [ '../../build/protoc_java.gypi' ], | |
215 }, | |
181 ], | 216 ], |
182 } | 217 } |
OLD | NEW |