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

Side by Side Diff: sync/sync.gyp

Issue 9701094: [Sync] Clean up sync.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export gmock from test_support_sync also Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sync/util/nigori.h » ('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 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 # The core sync library. 10 # The core sync library.
(...skipping 10 matching lines...) Expand all
21 ], 21 ],
22 'dependencies': [ 22 'dependencies': [
23 '../base/base.gyp:base', 23 '../base/base.gyp:base',
24 '../build/temp_gyp/googleurl.gyp:googleurl', 24 '../build/temp_gyp/googleurl.gyp:googleurl',
25 '../crypto/crypto.gyp:crypto', 25 '../crypto/crypto.gyp:crypto',
26 '../net/net.gyp:net', 26 '../net/net.gyp:net',
27 '../sql/sql.gyp:sql', 27 '../sql/sql.gyp:sql',
28 'protocol/sync_proto.gyp:sync_proto', 28 'protocol/sync_proto.gyp:sync_proto',
29 ], 29 ],
30 'export_dependent_settings': [ 30 'export_dependent_settings': [
31 '../base/base.gyp:base', 31 # Propagate sync_proto since our headers include its generated
32 '../build/temp_gyp/googleurl.gyp:googleurl', 32 # files.
33 '../crypto/crypto.gyp:crypto',
34 '../net/net.gyp:net',
35 '../sql/sql.gyp:sql',
36 'protocol/sync_proto.gyp:sync_proto', 33 'protocol/sync_proto.gyp:sync_proto',
37 ], 34 ],
38 'sources': [ 35 'sources': [
39 'engine/apply_updates_command.cc', 36 'engine/apply_updates_command.cc',
40 'engine/apply_updates_command.h', 37 'engine/apply_updates_command.h',
41 'engine/build_commit_command.cc', 38 'engine/build_commit_command.cc',
42 'engine/build_commit_command.h', 39 'engine/build_commit_command.h',
43 'engine/cleanup_disabled_types_command.cc', 40 'engine/cleanup_disabled_types_command.cc',
44 'engine/cleanup_disabled_types_command.h', 41 'engine/cleanup_disabled_types_command.h',
45 'engine/clear_data_command.cc', 42 'engine/clear_data_command.cc',
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 'type': 'static_library', 184 'type': 'static_library',
188 'variables': { 'enable_wexit_time_destructors': 1, }, 185 'variables': { 'enable_wexit_time_destructors': 1, },
189 'include_dirs': [ 186 'include_dirs': [
190 '..', 187 '..',
191 ], 188 ],
192 'dependencies': [ 189 'dependencies': [
193 '../base/base.gyp:base', 190 '../base/base.gyp:base',
194 '../testing/gmock.gyp:gmock', 191 '../testing/gmock.gyp:gmock',
195 '../testing/gtest.gyp:gtest', 192 '../testing/gtest.gyp:gtest',
196 'sync', 193 'sync',
194 'protocol/sync_proto.gyp:sync_proto',
Ryan Sleevi 2012/03/16 17:24:21 nit: ordering
akalin 2012/03/16 19:22:56 Done.
197 ], 195 ],
198 'export_dependent_settings': [ 196 'export_dependent_settings': [
199 '../base/base.gyp:base', 197 # Propagate sync and sync_proto, since our includes pick up
198 # generated files from both.
199 'sync',
200 'protocol/sync_proto.gyp:sync_proto',
Ryan Sleevi 2012/03/16 17:24:21 nit: ordering
akalin 2012/03/16 19:22:56 Done.
201 # propagate gmock, since our includes include its includes.
Ryan Sleevi 2012/03/16 17:24:21 You don't need these comments - but they do reflec
akalin 2012/03/16 19:22:56 Done.
200 '../testing/gmock.gyp:gmock', 202 '../testing/gmock.gyp:gmock',
201 '../testing/gtest.gyp:gtest',
202 'sync',
203 ], 203 ],
204 'sources': [ 204 'sources': [
205 'js/js_test_util.cc', 205 'js/js_test_util.cc',
206 'js/js_test_util.h', 206 'js/js_test_util.h',
207 'sessions/test_util.cc', 207 'sessions/test_util.cc',
208 'sessions/test_util.h', 208 'sessions/test_util.h',
209 'syncable/model_type_test_util.cc', 209 'syncable/model_type_test_util.cc',
210 'syncable/model_type_test_util.h', 210 'syncable/model_type_test_util.h',
211 'syncable/syncable_mock.cc', 211 'syncable/syncable_mock.cc',
212 'syncable/syncable_mock.h', 212 'syncable/syncable_mock.h',
(...skipping 30 matching lines...) Expand all
243 # library because the unit test files have to be compiled directly 243 # library because the unit test files have to be compiled directly
244 # into the executable, so we push the target files to the 244 # into the executable, so we push the target files to the
245 # depending executable target via direct_dependent_settings. 245 # depending executable target via direct_dependent_settings.
246 { 246 {
247 'target_name': 'sync_tests', 247 'target_name': 'sync_tests',
248 'type': 'none', 248 'type': 'none',
249 # We only want unit test executables to include this target. 249 # We only want unit test executables to include this target.
250 'suppress_wildcard': 1, 250 'suppress_wildcard': 1,
251 'dependencies': [ 251 'dependencies': [
252 '../base/base.gyp:base', 252 '../base/base.gyp:base',
253 '../base/base.gyp:test_support_base',
254 '../testing/gmock.gyp:gmock', 253 '../testing/gmock.gyp:gmock',
255 '../testing/gtest.gyp:gtest', 254 '../testing/gtest.gyp:gtest',
255 'protocol/sync_proto.gyp:sync_proto',
Ryan Sleevi 2012/03/16 17:24:21 I'm not sure stylistically which is more appropria
akalin 2012/03/16 19:22:56 I think first is the more common style so I'll sti
256 'sync', 256 'sync',
257 'test_support_sync', 257 'test_support_sync',
258 ], 258 ],
259 # Propagate all dependencies since the actual compilation
260 # happens in the dependents.
259 'export_dependent_settings': [ 261 'export_dependent_settings': [
260 '../base/base.gyp:base', 262 '../base/base.gyp:base',
261 '../base/base.gyp:test_support_base',
262 '../testing/gmock.gyp:gmock', 263 '../testing/gmock.gyp:gmock',
263 '../testing/gtest.gyp:gtest', 264 '../testing/gtest.gyp:gtest',
265 'protocol/sync_proto.gyp:sync_proto',
264 'sync', 266 'sync',
265 'test_support_sync', 267 'test_support_sync',
266 ], 268 ],
267 'direct_dependent_settings': { 269 'direct_dependent_settings': {
268 'variables': { 'enable_wexit_time_destructors': 1, }, 270 'variables': { 'enable_wexit_time_destructors': 1, },
269 'include_dirs': [ 271 'include_dirs': [
270 '..', 272 '..',
271 ], 273 ],
272 'sources': [ 274 'sources': [
273 'engine/apply_updates_command_unittest.cc', 275 'engine/apply_updates_command_unittest.cc',
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 # 326 #
325 # TODO(akalin): Rename this to sync_unit_tests once we've moved 327 # TODO(akalin): Rename this to sync_unit_tests once we've moved
326 # everything from chrome.gyp. 328 # everything from chrome.gyp.
327 # 329 #
328 # TODO(akalin): Make base.gyp have a test_main target that 330 # TODO(akalin): Make base.gyp have a test_main target that
329 # includes run_all_unittests.cc and the possible tcmalloc 331 # includes run_all_unittests.cc and the possible tcmalloc
330 # dependency and use that everywhere. 332 # dependency and use that everywhere.
331 { 333 {
332 'target_name': 'sync_unit_tests_canary', 334 'target_name': 'sync_unit_tests_canary',
333 'type': 'executable', 335 'type': 'executable',
336 'include_dirs': [
337 '..',
338 ],
339 'dependencies': [
340 '../base/base.gyp:test_support_base',
341 'sync_tests',
342 ],
334 'sources': [ 343 'sources': [
335 '../base/test/run_all_unittests.cc', 344 '../base/test/run_all_unittests.cc',
336 ], 345 ],
337 'dependencies': [
338 'sync_tests',
339 ],
340
341 # TODO(akalin): This is needed because histogram.cc uses 346 # TODO(akalin): This is needed because histogram.cc uses
342 # leak_annotations.h, which pulls this in. Make 'base' 347 # leak_annotations.h, which pulls this in. Make 'base'
343 # propagate this dependency. 348 # propagate this dependency.
344 'conditions': [ 349 'conditions': [
345 ['OS=="linux" and linux_use_tcmalloc==1', { 350 ['OS=="linux" and linux_use_tcmalloc==1', {
346 'dependencies': [ 351 'dependencies': [
347 '../base/allocator/allocator.gyp:allocator', 352 '../base/allocator/allocator.gyp:allocator',
348 ], 353 ],
349 }], 354 }],
350 ], 355 ],
351 }, 356 },
352 ], 357 ],
353 } 358 }
OLDNEW
« no previous file with comments | « no previous file | sync/util/nigori.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698