Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Side by Side Diff: third_party/cacheinvalidation/cacheinvalidation.gyp

Issue 11146005: Add support for generating jars from protos and add cacheinvalidation_java. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use javalib target name consistently. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/protoc_java.py ('k') | third_party/protobuf/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 'includes': [ 162 'includes': [
160 '../../build/isolate.gypi', 163 '../../build/isolate.gypi',
161 'cacheinvalidation_unittests.isolate', 164 'cacheinvalidation_unittests.isolate',
162 ], 165 ],
163 'sources': [ 166 'sources': [
164 'cacheinvalidation_unittests.isolate', 167 'cacheinvalidation_unittests.isolate',
165 ], 168 ],
166 }, 169 },
167 ], 170 ],
168 }], 171 }],
172 ['OS == "android"', {
173 'targets': [
174 {
175 'target_name': 'cacheinvalidation_proto_java',
176 'type': 'none',
177 'variables': {
178 'proto_in_dir': '../../third_party/cacheinvalidation/src/proto',
179 },
180 'sources': [
181 '<(proto_in_dir)/android_channel.proto',
182 '<(proto_in_dir)/android_service.proto',
183 '<(proto_in_dir)/android_state.proto',
184 '<(proto_in_dir)/channel.proto',
185 '<(proto_in_dir)/channel_common.proto',
186 '<(proto_in_dir)/client.proto',
187 '<(proto_in_dir)/client_protocol.proto',
188 '<(proto_in_dir)/java_client.proto',
189 '<(proto_in_dir)/types.proto',
190 ],
191 'includes': [ '../../build/protoc_java.gypi' ],
192 },
193 {
194 'target_name': 'cacheinvalidation_javalib',
195 'type': 'none',
196 'dependencies': [
197 '../../third_party/android_tools/android_tools.gyp:android_gcm',
198 'cacheinvalidation_aidl_javalib',
199 'cacheinvalidation_guava_javalib',
200 'cacheinvalidation_proto_java',
201 ],
202 'variables': {
203 'package_name': '<(_target_name)',
204 'java_in_dir': '../../build/android/empty',
205 'additional_src_dirs': [ 'src/java/' ],
206 },
207 'includes': [ '../../build/java.gypi' ],
208 },
209 {
210 'target_name': 'cacheinvalidation_aidl_javalib',
211 'type': 'none',
212 'variables': {
213 'package_name': '<(_target_name)',
214 # TODO(shashishekhar): aidl_interface_file should be made optional.
215 'aidl_interface_file':'<(android_sdk)/framework.aidl'
216 },
217 'sources': [
218 'src/java/com/google/ipc/invalidation/external/client/android/servic e/InvalidationService.aidl',
219 'src/java/com/google/ipc/invalidation/external/client/android/servic e/ListenerService.aidl',
220 'src/java/com/google/ipc/invalidation/testing/android/InvalidationTe st.aidl',
221 ],
222 'includes': [ '../../build/java_aidl.gypi' ],
223 },
224 # TODO(nyquist): Depend on guava from third_party/guava. See http://crbu g.com/159873.
225 {
226 'target_name': 'cacheinvalidation_guava_javalib',
227 'type' : 'none',
228 'all_dependent_settings': {
229 'variables': {
230 'input_jars_paths' : [
231 'src/example-app-build/libs/guava-13.0.1.jar',
232 ],
233 }
234 }
235 },
236 ],
237 }],
169 ], 238 ],
170 } 239 }
OLDNEW
« no previous file with comments | « build/protoc_java.py ('k') | third_party/protobuf/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698