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

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: Remove unused target 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
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',
131 'proto_sources': '../../third_party/cacheinvalidation/src/proto',
132 },
133 'sources': [
134 '<(proto_sources)/android_channel.proto',
135 '<(proto_sources)/android_state.proto',
136 '<(proto_sources)/channel_common.proto',
137 '<(proto_sources)/channel.proto',
138 '<(proto_sources)/client.proto',
139 '<(proto_sources)/client_protocol.proto',
140 '<(proto_sources)/types.proto',
141 ],
142 'includes': [ '../../build/protoc_java.gypi' ],
143 },
144 {
145 'target_name': 'cacheinvalidation_java',
146 'type': 'none',
147 'dependencies': [
148 'cacheinvalidation_aidl',
149 'cacheinvalidation_proto_java',
150 '../../third_party/android_tools/android_tools.gyp:android_guava',
151 ],
152 'variables': {
153 'package_name': 'cacheinvalidation_java',
154 'java_in_dir': '../../build/android/empty',
155 'additional_src_dirs': [ 'src/java/' ],
156 },
157 'includes': [ '../../build/java.gypi' ],
158 },
159 {
160 'target_name': 'cacheinvalidation_aidl',
161 'type': 'none',
162 'variables': {
163 'package_name': 'cacheinvalidation_aidl',
164 # TODO(shashishekhar): aidl_interface_file should be made optional.
165 'aidl_interface_file':'<(android_sdk)/framework.aidl'
166 },
167 'sources': [
168 'src/java/com/google/ipc/invalidation/external/client/android/service/In validationService.aidl',
169 'src/java/com/google/ipc/invalidation/external/client/android/service/Li stenerService.aidl',
170 'src/java/com/google/ipc/invalidation/testing/android/InvalidationTest.a idl',
171 ],
172 'includes': [ '../../build/java_aidl.gypi' ],
173 },
123 # Unittests for the cache invalidation library. 174 # Unittests for the cache invalidation library.
124 # TODO(ghc): Write native tests and include them here. 175 # TODO(ghc): Write native tests and include them here.
125 { 176 {
126 'target_name': 'cacheinvalidation_unittests', 177 'target_name': 'cacheinvalidation_unittests',
127 'type': 'executable', 178 'type': 'executable',
128 'sources': [ 179 'sources': [
129 'src/google/cacheinvalidation/test/deterministic-scheduler.cc', 180 'src/google/cacheinvalidation/test/deterministic-scheduler.cc',
130 'src/google/cacheinvalidation/test/deterministic-scheduler.h', 181 'src/google/cacheinvalidation/test/deterministic-scheduler.h',
131 'src/google/cacheinvalidation/test/test-logger.cc', 182 'src/google/cacheinvalidation/test/test-logger.cc',
132 'src/google/cacheinvalidation/test/test-logger.h', 183 'src/google/cacheinvalidation/test/test-logger.h',
(...skipping 28 matching lines...) Expand all
161 'cacheinvalidation_unittests.isolate', 212 'cacheinvalidation_unittests.isolate',
162 ], 213 ],
163 'sources': [ 214 'sources': [
164 'cacheinvalidation_unittests.isolate', 215 'cacheinvalidation_unittests.isolate',
165 ], 216 ],
166 }, 217 },
167 ], 218 ],
168 }], 219 }],
169 ], 220 ],
170 } 221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698