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

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

Issue 580343002: Add proto_java_library to gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: = Created 6 years, 2 months 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
« no previous file with comments | « third_party/android_protobuf/BUILD.gn ('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 2012 The Chromium Authors. All rights reserved. 1 # Copyright 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 }, 10 },
11 'targets': [ 11 'targets': [
12 # The C++ files generated from the cache invalidation protocol buffers. 12 # The C++ files generated from the cache invalidation protocol buffers.
13 { 13 {
14 # GN: //third_party/cacheinvalidation/src/google/cacheinvalidation:cachein validation_proto_cpp (secondary)
14 'target_name': 'cacheinvalidation_proto_cpp', 15 'target_name': 'cacheinvalidation_proto_cpp',
15 'type': 'static_library', 16 'type': 'static_library',
16 'variables': { 17 'variables': {
17 # The relative path of the cacheinvalidation proto files from this 18 # The relative path of the cacheinvalidation proto files from this
18 # gyp-file. 19 # gyp-file.
19 # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so 20 # TODO(akalin): Add a RULE_INPUT_DIR predefined variable to gyp so
20 # we don't need this variable. 21 # we don't need this variable.
21 'proto_dir_relpath': 'google/cacheinvalidation', 22 'proto_dir_relpath': 'google/cacheinvalidation',
22 # Where files generated from proto files are put. 23 # Where files generated from proto files are put.
23 'proto_in_dir': 'src/<(proto_dir_relpath)', 24 'proto_in_dir': 'src/<(proto_dir_relpath)',
(...skipping 24 matching lines...) Expand all
48 'sources!': [ 49 'sources!': [
49 '<(proto_in_dir)/android_channel.proto', 50 '<(proto_in_dir)/android_channel.proto',
50 '<(proto_in_dir)/channel_common.proto', 51 '<(proto_in_dir)/channel_common.proto',
51 ], 52 ],
52 }], 53 }],
53 ], 54 ],
54 }, 55 },
55 # The main cache invalidation library. External clients should depend 56 # The main cache invalidation library. External clients should depend
56 # only on this. 57 # only on this.
57 { 58 {
59 # GN: //third_party/cacheinvalidation (secondary)
58 'target_name': 'cacheinvalidation', 60 'target_name': 'cacheinvalidation',
59 'type': 'static_library', 61 'type': 'static_library',
60 'sources': [ 62 'sources': [
61 'overrides/google/cacheinvalidation/deps/callback.h', 63 'overrides/google/cacheinvalidation/deps/callback.h',
62 'overrides/google/cacheinvalidation/deps/gmock.h', 64 'overrides/google/cacheinvalidation/deps/gmock.h',
63 'overrides/google/cacheinvalidation/deps/googletest.h', 65 'overrides/google/cacheinvalidation/deps/googletest.h',
64 'overrides/google/cacheinvalidation/deps/logging.h', 66 'overrides/google/cacheinvalidation/deps/logging.h',
65 'overrides/google/cacheinvalidation/deps/mutex.h', 67 'overrides/google/cacheinvalidation/deps/mutex.h',
66 'overrides/google/cacheinvalidation/deps/random.h', 68 'overrides/google/cacheinvalidation/deps/random.h',
67 'overrides/google/cacheinvalidation/deps/random.cc', 69 'overrides/google/cacheinvalidation/deps/random.cc',
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 # don't need to export its settings. 142 # don't need to export its settings.
141 'export_dependent_settings': [ 143 'export_dependent_settings': [
142 '../../base/base.gyp:base', 144 '../../base/base.gyp:base',
143 ], 145 ],
144 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 146 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
145 'msvs_disabled_warnings': [4267, ], 147 'msvs_disabled_warnings': [4267, ],
146 }, 148 },
147 # Unittests for the cache invalidation library. 149 # Unittests for the cache invalidation library.
148 # TODO(ghc): Write native tests and include them here. 150 # TODO(ghc): Write native tests and include them here.
149 { 151 {
152 # GN: //third_party/cacheinvalidation:cacheinvalidation_unittests (seconda ry)
150 'target_name': 'cacheinvalidation_unittests', 153 'target_name': 'cacheinvalidation_unittests',
151 'type': 'executable', 154 'type': 'executable',
152 'sources': [ 155 'sources': [
153 'src/google/cacheinvalidation/test/deterministic-scheduler.cc', 156 'src/google/cacheinvalidation/test/deterministic-scheduler.cc',
154 'src/google/cacheinvalidation/test/deterministic-scheduler.h', 157 'src/google/cacheinvalidation/test/deterministic-scheduler.h',
155 'src/google/cacheinvalidation/test/test-logger.cc', 158 'src/google/cacheinvalidation/test/test-logger.cc',
156 'src/google/cacheinvalidation/test/test-logger.h', 159 'src/google/cacheinvalidation/test/test-logger.h',
157 'src/google/cacheinvalidation/test/test-utils.cc', 160 'src/google/cacheinvalidation/test/test-utils.cc',
158 'src/google/cacheinvalidation/test/test-utils.h', 161 'src/google/cacheinvalidation/test/test-utils.h',
159 'src/google/cacheinvalidation/impl/invalidation-client-impl_test.cc', 162 'src/google/cacheinvalidation/impl/invalidation-client-impl_test.cc',
160 'src/google/cacheinvalidation/impl/protocol-handler_test.cc', 163 'src/google/cacheinvalidation/impl/protocol-handler_test.cc',
161 'src/google/cacheinvalidation/impl/recurring-task_test.cc', 164 'src/google/cacheinvalidation/impl/recurring-task_test.cc',
162 'src/google/cacheinvalidation/impl/throttle_test.cc', 165 'src/google/cacheinvalidation/impl/throttle_test.cc',
163 ], 166 ],
164 'dependencies': [ 167 'dependencies': [
165 '../../base/base.gyp:base', 168 '../../base/base.gyp:base',
166 '../../base/base.gyp:run_all_unittests', 169 '../../base/base.gyp:run_all_unittests',
167 '../../testing/gmock.gyp:gmock', 170 '../../testing/gmock.gyp:gmock',
168 '../../testing/gtest.gyp:gtest', 171 '../../testing/gtest.gyp:gtest',
169 'cacheinvalidation', 172 'cacheinvalidation',
170 'cacheinvalidation_proto_cpp', 173 'cacheinvalidation_proto_cpp',
171 ], 174 ],
172 }, 175 },
173 ], 176 ],
174 'conditions': [ 177 'conditions': [
175 ['test_isolation_mode != "noop"', { 178 ['test_isolation_mode != "noop"', {
176 'targets': [ 179 'targets': [
177 { 180 {
181 # TODO(GN)
178 'target_name': 'cacheinvalidation_unittests_run', 182 'target_name': 'cacheinvalidation_unittests_run',
179 'type': 'none', 183 'type': 'none',
180 'dependencies': [ 184 'dependencies': [
181 'cacheinvalidation_unittests', 185 'cacheinvalidation_unittests',
182 ], 186 ],
183 'includes': [ 187 'includes': [
184 '../../build/isolate.gypi', 188 '../../build/isolate.gypi',
185 'cacheinvalidation_unittests.isolate', 189 'cacheinvalidation_unittests.isolate',
186 ], 190 ],
187 'sources': [ 191 'sources': [
188 'cacheinvalidation_unittests.isolate', 192 'cacheinvalidation_unittests.isolate',
189 ], 193 ],
190 }, 194 },
191 ], 195 ],
192 }], 196 }],
193 ['OS == "android"', { 197 ['OS == "android"', {
194 'variables': { 198 'variables': {
195 'emma_never_instrument': 1, 199 'emma_never_instrument': 1,
196 }, 200 },
197 'targets': [ 201 'targets': [
198 { 202 {
203 # GN: //third_party/cacheinvalidation:cacheinvalidation_proto_java (se condary)
199 'target_name': 'cacheinvalidation_proto_java', 204 'target_name': 'cacheinvalidation_proto_java',
200 'type': 'none', 205 'type': 'none',
201 'variables': { 206 'variables': {
202 'proto_in_dir': '../../third_party/cacheinvalidation/src/proto', 207 'proto_in_dir': '../../third_party/cacheinvalidation/src/proto',
203 }, 208 },
204 'sources': [ 209 'sources': [
205 '<(proto_in_dir)/android_channel.proto', 210 '<(proto_in_dir)/android_channel.proto',
206 '<(proto_in_dir)/android_listener.proto', 211 '<(proto_in_dir)/android_listener.proto',
207 '<(proto_in_dir)/android_service.proto', 212 '<(proto_in_dir)/android_service.proto',
208 '<(proto_in_dir)/channel_common.proto', 213 '<(proto_in_dir)/channel_common.proto',
209 '<(proto_in_dir)/client.proto', 214 '<(proto_in_dir)/client.proto',
210 '<(proto_in_dir)/client_protocol.proto', 215 '<(proto_in_dir)/client_protocol.proto',
211 '<(proto_in_dir)/java_client.proto', 216 '<(proto_in_dir)/java_client.proto',
212 '<(proto_in_dir)/types.proto', 217 '<(proto_in_dir)/types.proto',
213 ], 218 ],
214 'includes': [ '../../build/protoc_java.gypi' ], 219 'includes': [ '../../build/protoc_java.gypi' ],
215 }, 220 },
216 { 221 {
222 # GN: //third_party/cacheinvalidation:cacheinvalidation_javalib (secon dary)
217 'target_name': 'cacheinvalidation_javalib', 223 'target_name': 'cacheinvalidation_javalib',
218 'type': 'none', 224 'type': 'none',
219 'dependencies': [ 225 'dependencies': [
220 '../../third_party/android_tools/android_tools.gyp:android_gcm', 226 '../../third_party/android_tools/android_tools.gyp:android_gcm',
221 'cacheinvalidation_proto_java', 227 'cacheinvalidation_proto_java',
222 ], 228 ],
223 'variables': { 229 'variables': {
224 'java_in_dir': '../../build/android/empty', 230 'java_in_dir': '../../build/android/empty',
225 'additional_src_dirs': [ 'src/java/' ], 231 'additional_src_dirs': [ 'src/java/' ],
226 }, 232 },
227 'includes': [ '../../build/java.gypi' ], 233 'includes': [ '../../build/java.gypi' ],
228 }, 234 },
229 ], 235 ],
230 }], 236 }],
231 ], 237 ],
232 } 238 }
OLDNEW
« no previous file with comments | « third_party/android_protobuf/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698