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

Side by Side Diff: sync/sync.gyp

Issue 10147003: [Sync] Move 'syncapi_core' and 'sync_unit_tests' targets to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win update errors Created 8 years, 8 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 | « sync/internal_api/write_transaction.cc ('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 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 # The core sync library. 10 # The core sync library.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 'notifier/p2p_notifier.h', 228 'notifier/p2p_notifier.h',
229 'notifier/p2p_notifier.cc', 229 'notifier/p2p_notifier.cc',
230 'notifier/registration_manager.cc', 230 'notifier/registration_manager.cc',
231 'notifier/registration_manager.h', 231 'notifier/registration_manager.h',
232 'notifier/state_writer.h', 232 'notifier/state_writer.h',
233 ], 233 ],
234 }], 234 }],
235 ], 235 ],
236 }, 236 },
237 237
238 # The sync internal API library.
239 {
240 'target_name': 'syncapi_core',
241 'type': 'static_library',
242 'variables': { 'enable_wexit_time_destructors': 1, },
243 'include_dirs': [
244 '..',
245 ],
246 'dependencies': [
247 '../base/base.gyp:base',
248 '../build/temp_gyp/googleurl.gyp:googleurl',
249 '../net/net.gyp:net',
250 'protocol/sync_proto.gyp:sync_proto',
251 'sync_notifier',
252 'sync',
253 ],
254 'export_dependent_settings': [
255 # Propagate sync_proto since our headers include its generated
256 # files.
257 'protocol/sync_proto.gyp:sync_proto',
258 'sync_notifier',
259 'sync',
260 ],
261 'sources': [
262 'internal_api/all_status.cc',
263 'internal_api/all_status.h',
264 'internal_api/base_node.cc',
265 'internal_api/base_node.h',
266 'internal_api/base_transaction.cc',
267 'internal_api/base_transaction.h',
268 'internal_api/change_record.cc',
269 'internal_api/change_record.h',
270 'internal_api/change_reorder_buffer.cc',
271 'internal_api/change_reorder_buffer.h',
272 'internal_api/configure_reason.h',
273 'internal_api/debug_info_event_listener.cc',
274 'internal_api/debug_info_event_listener.h',
275 'internal_api/http_post_provider_factory.h',
276 'internal_api/http_post_provider_interface.h',
277 'internal_api/js_mutation_event_observer.cc',
278 'internal_api/js_mutation_event_observer.h',
279 'internal_api/js_sync_manager_observer.cc',
280 'internal_api/js_sync_manager_observer.h',
281 'internal_api/read_node.cc',
282 'internal_api/read_node.h',
283 'internal_api/read_transaction.cc',
284 'internal_api/read_transaction.h',
285 'internal_api/syncapi_internal.cc',
286 'internal_api/syncapi_internal.h',
287 'internal_api/syncapi_server_connection_manager.cc',
288 'internal_api/syncapi_server_connection_manager.h',
289 'internal_api/sync_manager.cc',
290 'internal_api/sync_manager.h',
291 'internal_api/user_share.cc',
292 'internal_api/user_share.h',
293 'internal_api/write_node.cc',
294 'internal_api/write_node.h',
295 'internal_api/write_transaction.cc',
296 'internal_api/write_transaction.h',
297 ],
298 },
299
238 # Test support files for the 'sync' target. 300 # Test support files for the 'sync' target.
239 { 301 {
240 'target_name': 'test_support_sync', 302 'target_name': 'test_support_sync',
241 'type': 'static_library', 303 'type': 'static_library',
242 'variables': { 'enable_wexit_time_destructors': 1, }, 304 'variables': { 'enable_wexit_time_destructors': 1, },
243 'include_dirs': [ 305 'include_dirs': [
244 '..', 306 '..',
245 ], 307 ],
246 'dependencies': [ 308 'dependencies': [
247 '../base/base.gyp:base', 309 '../base/base.gyp:base',
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 'export_dependent_settings': [ 371 'export_dependent_settings': [
310 '../testing/gmock.gyp:gmock', 372 '../testing/gmock.gyp:gmock',
311 'sync_notifier', 373 'sync_notifier',
312 ], 374 ],
313 'sources': [ 375 'sources': [
314 'notifier/mock_sync_notifier_observer.cc', 376 'notifier/mock_sync_notifier_observer.cc',
315 'notifier/mock_sync_notifier_observer.h', 377 'notifier/mock_sync_notifier_observer.h',
316 ], 378 ],
317 }, 379 },
318 380
381 # Test support files for the 'syncapi_core' target.
382 {
383 'target_name': 'test_support_syncapi_core',
384 'type': 'static_library',
385 'variables': { 'enable_wexit_time_destructors': 1, },
386 'include_dirs': [
387 '..',
388 ],
389 'dependencies': [
390 '../base/base.gyp:base',
391 '../testing/gtest.gyp:gtest',
392 'syncapi_core',
393 'test_support_sync',
394 ],
395 'export_dependent_settings': [
396 '../testing/gtest.gyp:gtest',
397 'syncapi_core',
398 'test_support_sync',
399 ],
400 'sources': [
401 'internal_api/test_user_share.cc',
402 'internal_api/test_user_share.h',
403 ],
404 },
405
319 # Unit tests for the 'sync' target. This cannot be a static 406 # Unit tests for the 'sync' target. This cannot be a static
320 # library because the unit test files have to be compiled directly 407 # library because the unit test files have to be compiled directly
321 # into the executable, so we push the target files to the 408 # into the executable, so we push the target files to the
322 # depending executable target via direct_dependent_settings. 409 # depending executable target via direct_dependent_settings.
323 { 410 {
324 'target_name': 'sync_tests', 411 'target_name': 'sync_tests',
325 'type': 'none', 412 'type': 'none',
326 # We only want unit test executables to include this target. 413 # We only want unit test executables to include this target.
327 'suppress_wildcard': 1, 414 'suppress_wildcard': 1,
328 'dependencies': [ 415 'dependencies': [
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 'notifier/invalidation_notifier_unittest.cc', 535 'notifier/invalidation_notifier_unittest.cc',
449 'notifier/non_blocking_invalidation_notifier_unittest.cc', 536 'notifier/non_blocking_invalidation_notifier_unittest.cc',
450 'notifier/p2p_notifier_unittest.cc', 537 'notifier/p2p_notifier_unittest.cc',
451 'notifier/registration_manager_unittest.cc', 538 'notifier/registration_manager_unittest.cc',
452 ], 539 ],
453 }], 540 }],
454 ], 541 ],
455 }, 542 },
456 }, 543 },
457 544
458 # The unit test executable for sync tests. Currently this isn't 545 # Unit tests for the 'syncapi_core' target. This cannot be a static
459 # automatically run, as there is already a sync_unit_tests 546 # library because the unit test files have to be compiled directly
460 # executable in chrome.gyp; this is just to make sure that all the 547 # into the executable, so we push the target files to the
461 # link-time dependencies for the files in the targets above 548 # depending executable target via direct_dependent_settings.
462 # resolve.
463 #
464 # TODO(akalin): Rename this to sync_unit_tests once we've moved
465 # everything from chrome.gyp.
466 { 549 {
467 'target_name': 'sync_unit_tests_canary', 550 'target_name': 'syncapi_core_tests',
551 'type': 'none',
552 # We only want unit test executables to include this target.
553 'suppress_wildcard': 1,
554 'dependencies': [
555 '../base/base.gyp:base',
556 '../net/net.gyp:net',
557 '../testing/gmock.gyp:gmock',
558 '../testing/gtest.gyp:gtest',
559 'protocol/sync_proto.gyp:sync_proto',
560 'sync',
561 'sync_notifier',
562 'syncapi_core',
563 'test_support_syncapi_core',
564 ],
565 # Propagate all dependencies since the actual compilation
566 # happens in the dependents.
567 'export_dependent_settings': [
568 '../base/base.gyp:base',
569 '../net/net.gyp:net',
570 '../testing/gmock.gyp:gmock',
571 '../testing/gtest.gyp:gtest',
572 'protocol/sync_proto.gyp:sync_proto',
573 'sync',
574 'sync_notifier',
575 'syncapi_core',
576 'test_support_syncapi_core',
577 ],
578 'direct_dependent_settings': {
579 'variables': { 'enable_wexit_time_destructors': 1, },
580 'include_dirs': [
581 '..',
582 ],
583 'sources': [
584 'internal_api/change_record_unittest.cc',
585 'internal_api/debug_info_event_listener_unittest.cc',
586 'internal_api/js_mutation_event_observer_unittest.cc',
587 'internal_api/js_sync_manager_observer_unittest.cc',
588 'internal_api/syncapi_server_connection_manager_unittest.cc',
589 'internal_api/syncapi_unittest.cc',
590 ],
591 },
592 },
593
594 # The unit test executable for sync tests.
595 {
596 'target_name': 'sync_unit_tests',
468 'type': 'executable', 597 'type': 'executable',
469 'dependencies': [ 598 'dependencies': [
470 '../base/base.gyp:run_all_unittests', 599 '../base/base.gyp:run_all_unittests',
471 'sync_tests', 600 'sync_tests',
472 'sync_notifier_tests', 601 'sync_notifier_tests',
602 'syncapi_core_tests',
473 ], 603 ],
474 # TODO(akalin): This is needed because histogram.cc uses 604 # TODO(akalin): This is needed because histogram.cc uses
475 # leak_annotations.h, which pulls this in. Make 'base' 605 # leak_annotations.h, which pulls this in. Make 'base'
476 # propagate this dependency. 606 # propagate this dependency.
477 'conditions': [ 607 'conditions': [
478 ['OS=="linux" and linux_use_tcmalloc==1', { 608 ['OS=="linux" and linux_use_tcmalloc==1', {
479 'dependencies': [ 609 'dependencies': [
480 '../base/allocator/allocator.gyp:allocator', 610 '../base/allocator/allocator.gyp:allocator',
481 ], 611 ],
482 }], 612 }],
(...skipping 11 matching lines...) Expand all
494 '../net/net.gyp:net_test_support', 624 '../net/net.gyp:net_test_support',
495 'sync', 625 'sync',
496 'sync_notifier', 626 'sync_notifier',
497 ], 627 ],
498 'sources': [ 628 'sources': [
499 'tools/sync_listen_notifications.cc', 629 'tools/sync_listen_notifications.cc',
500 ], 630 ],
501 }, 631 },
502 ], 632 ],
503 } 633 }
OLDNEW
« no previous file with comments | « sync/internal_api/write_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698