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

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: Updated crbug link to use http:// 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
« build/protoc_java.py ('K') | « build/protoc_java.py ('k') | no next file » | 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 './src', 116 './src',
114 ], 117 ],
115 }, 118 },
116 # We avoid including header files from 119 # We avoid including header files from
117 # cacheinvalidation_proto_cpp in our public header files so we 120 # cacheinvalidation_proto_cpp in our public header files so we
118 # don't need to export its settings. 121 # don't need to export its settings.
119 'export_dependent_settings': [ 122 'export_dependent_settings': [
120 '../../base/base.gyp:base', 123 '../../base/base.gyp:base',
121 ], 124 ],
122 }, 125 },
126 {
127 'target_name': 'cacheinvalidation_proto_java',
128 'type': 'none',
129 'variables': {
130 'proto_in_dir': '../../third_party/cacheinvalidation/src/proto',
131 },
132 'sources': [
133 '<(proto_in_dir)/android_channel.proto',
134 '<(proto_in_dir)/android_service.proto',
135 '<(proto_in_dir)/android_state.proto',
136 '<(proto_in_dir)/channel.proto',
137 '<(proto_in_dir)/channel_common.proto',
138 '<(proto_in_dir)/client.proto',
139 '<(proto_in_dir)/client_protocol.proto',
140 '<(proto_in_dir)/java_client.proto',
141 '<(proto_in_dir)/types.proto',
142 ],
143 'includes': [ '../../build/protoc_java.gypi' ],
144 },
145 {
146 'target_name': 'cacheinvalidation_java',
147 'type': 'none',
148 'dependencies': [
149 'cacheinvalidation_aidl',
150 'cacheinvalidation_gcm_javalib',
151 'cacheinvalidation_guava_javalib',
152 'cacheinvalidation_proto_java',
153 ],
154 'variables': {
155 'package_name': 'cacheinvalidation_java',
156 'java_in_dir': '../../build/android/empty',
157 'additional_src_dirs': [ 'src/java/' ],
158 },
159 'includes': [ '../../build/java.gypi' ],
160 },
161 {
162 'target_name': 'cacheinvalidation_aidl',
163 'type': 'none',
164 'variables': {
165 'package_name': 'cacheinvalidation_aidl',
166 # TODO(shashishekhar): aidl_interface_file should be made optional.
167 'aidl_interface_file':'<(android_sdk)/framework.aidl'
168 },
169 'sources': [
170 'src/java/com/google/ipc/invalidation/external/client/android/service/In validationService.aidl',
171 'src/java/com/google/ipc/invalidation/external/client/android/service/Li stenerService.aidl',
172 'src/java/com/google/ipc/invalidation/testing/android/InvalidationTest.a idl',
173 ],
174 'includes': [ '../../build/java_aidl.gypi' ],
175 },
176 {
177 'target_name': 'cacheinvalidation_gcm_javalib',
178 'type' : 'none',
179 'all_dependent_settings': {
180 'variables': {
181 'input_jars_paths' : [
182 'src/example-app-build/libs/gcm.jar',
183 ],
184 }
185 }
186 },
187 {
188 'target_name': 'cacheinvalidation_guava_javalib',
189 'type' : 'none',
190 'all_dependent_settings': {
191 'variables': {
192 'input_jars_paths' : [
193 'src/example-app-build/libs/guava-13.0.1.jar',
194 ],
195 }
196 }
197 },
123 # Unittests for the cache invalidation library. 198 # Unittests for the cache invalidation library.
124 # TODO(ghc): Write native tests and include them here. 199 # TODO(ghc): Write native tests and include them here.
125 { 200 {
126 'target_name': 'cacheinvalidation_unittests', 201 'target_name': 'cacheinvalidation_unittests',
127 'type': 'executable', 202 'type': 'executable',
128 'sources': [ 203 'sources': [
129 'src/google/cacheinvalidation/test/deterministic-scheduler.cc', 204 'src/google/cacheinvalidation/test/deterministic-scheduler.cc',
130 'src/google/cacheinvalidation/test/deterministic-scheduler.h', 205 'src/google/cacheinvalidation/test/deterministic-scheduler.h',
131 'src/google/cacheinvalidation/test/test-logger.cc', 206 'src/google/cacheinvalidation/test/test-logger.cc',
132 'src/google/cacheinvalidation/test/test-logger.h', 207 'src/google/cacheinvalidation/test/test-logger.h',
(...skipping 28 matching lines...) Expand all
161 'cacheinvalidation_unittests.isolate', 236 'cacheinvalidation_unittests.isolate',
162 ], 237 ],
163 'sources': [ 238 'sources': [
164 'cacheinvalidation_unittests.isolate', 239 'cacheinvalidation_unittests.isolate',
165 ], 240 ],
166 }, 241 },
167 ], 242 ],
168 }], 243 }],
169 ], 244 ],
170 } 245 }
OLDNEW
« build/protoc_java.py ('K') | « build/protoc_java.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698