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

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: sync to head 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
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 '../testing/gmock.gyp:gmock',
391 '../testing/gtest.gyp:gtest',
392 'syncapi_core',
393 'test_support_sync',
394 ],
395 'export_dependent_settings': [
396 '../testing/gmock.gyp:gmock',
397 '../testing/gtest.gyp:gtest',
398 'syncapi_core',
399 'test_support_sync',
400 ],
401 'sources': [
402 'internal_api/read_node_mock.cc',
403 'internal_api/read_node_mock.h',
404 'internal_api/test_user_share.cc',
405 'internal_api/test_user_share.h',
406 ],
407 },
408
319 # Unit tests for the 'sync' target. This cannot be a static 409 # Unit tests for the 'sync' target. This cannot be a static
320 # library because the unit test files have to be compiled directly 410 # library because the unit test files have to be compiled directly
321 # into the executable, so we push the target files to the 411 # into the executable, so we push the target files to the
322 # depending executable target via direct_dependent_settings. 412 # depending executable target via direct_dependent_settings.
323 { 413 {
324 'target_name': 'sync_tests', 414 'target_name': 'sync_tests',
325 'type': 'none', 415 'type': 'none',
326 # We only want unit test executables to include this target. 416 # We only want unit test executables to include this target.
327 'suppress_wildcard': 1, 417 'suppress_wildcard': 1,
328 'dependencies': [ 418 'dependencies': [
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 'notifier/invalidation_notifier_unittest.cc', 538 'notifier/invalidation_notifier_unittest.cc',
449 'notifier/non_blocking_invalidation_notifier_unittest.cc', 539 'notifier/non_blocking_invalidation_notifier_unittest.cc',
450 'notifier/p2p_notifier_unittest.cc', 540 'notifier/p2p_notifier_unittest.cc',
451 'notifier/registration_manager_unittest.cc', 541 'notifier/registration_manager_unittest.cc',
452 ], 542 ],
453 }], 543 }],
454 ], 544 ],
455 }, 545 },
456 }, 546 },
457 547
458 # The unit test executable for sync tests. Currently this isn't 548 # Unit tests for the 'syncapi_core' target. This cannot be a static
459 # automatically run, as there is already a sync_unit_tests 549 # 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 550 # into the executable, so we push the target files to the
461 # link-time dependencies for the files in the targets above 551 # 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 { 552 {
467 'target_name': 'sync_unit_tests_canary', 553 'target_name': 'syncapi_core_tests',
554 'type': 'none',
555 # We only want unit test executables to include this target.
556 'suppress_wildcard': 1,
557 'dependencies': [
558 '../base/base.gyp:base',
559 '../net/net.gyp:net',
560 '../testing/gmock.gyp:gmock',
561 '../testing/gtest.gyp:gtest',
562 'protocol/sync_proto.gyp:sync_proto',
563 'sync',
564 'sync_notifier',
565 'syncapi_core',
566 'test_support_syncapi_core',
567 ],
568 # Propagate all dependencies since the actual compilation
569 # happens in the dependents.
570 'export_dependent_settings': [
571 '../base/base.gyp:base',
572 '../net/net.gyp:net',
573 '../testing/gmock.gyp:gmock',
574 '../testing/gtest.gyp:gtest',
575 'protocol/sync_proto.gyp:sync_proto',
576 'sync',
577 'sync_notifier',
578 'syncapi_core',
579 'test_support_syncapi_core',
580 ],
581 'direct_dependent_settings': {
582 'variables': { 'enable_wexit_time_destructors': 1, },
583 'include_dirs': [
584 '..',
585 ],
586 'sources': [
587 'internal_api/change_record_unittest.cc',
588 'internal_api/debug_info_event_listener_unittest.cc',
589 'internal_api/js_mutation_event_observer_unittest.cc',
590 'internal_api/js_sync_manager_observer_unittest.cc',
591 'internal_api/syncapi_server_connection_manager_unittest.cc',
592 'internal_api/syncapi_unittest.cc',
593 ],
594 },
595 },
596
597 # The unit test executable for sync tests.
598 {
599 'target_name': 'sync_unit_tests',
468 'type': 'executable', 600 'type': 'executable',
469 'dependencies': [ 601 'dependencies': [
470 '../base/base.gyp:run_all_unittests', 602 '../base/base.gyp:run_all_unittests',
471 'sync_tests', 603 'sync_tests',
472 'sync_notifier_tests', 604 'sync_notifier_tests',
605 'syncapi_core_tests',
473 ], 606 ],
474 # TODO(akalin): This is needed because histogram.cc uses 607 # TODO(akalin): This is needed because histogram.cc uses
475 # leak_annotations.h, which pulls this in. Make 'base' 608 # leak_annotations.h, which pulls this in. Make 'base'
476 # propagate this dependency. 609 # propagate this dependency.
477 'conditions': [ 610 'conditions': [
478 ['OS=="linux" and linux_use_tcmalloc==1', { 611 ['OS=="linux" and linux_use_tcmalloc==1', {
479 'dependencies': [ 612 'dependencies': [
480 '../base/allocator/allocator.gyp:allocator', 613 '../base/allocator/allocator.gyp:allocator',
481 ], 614 ],
482 }], 615 }],
(...skipping 11 matching lines...) Expand all
494 '../net/net.gyp:net_test_support', 627 '../net/net.gyp:net_test_support',
495 'sync', 628 'sync',
496 'sync_notifier', 629 'sync_notifier',
497 ], 630 ],
498 'sources': [ 631 'sources': [
499 'tools/sync_listen_notifications.cc', 632 'tools/sync_listen_notifications.cc',
500 ], 633 ],
501 }, 634 },
502 ], 635 ],
503 } 636 }
OLDNEW
« chrome/chrome_browser.gypi ('K') | « sync/internal_api/write_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698