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

Side by Side Diff: sync/BUILD.gn

Issue 595073002: Replace forward_dependent_configs with public_deps (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 | « skia/BUILD.gn ('k') | third_party/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 component("sync") { 7 component("sync") {
8 public_deps = [ 8 public_deps = [
9 ":sync_core", 9 ":sync_core",
10 "//sync/protocol", 10 "//sync/protocol",
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 "test/sessions/mock_debug_info_getter.h", 465 "test/sessions/mock_debug_info_getter.h",
466 "test/sessions/mock_debug_info_getter.cc", 466 "test/sessions/mock_debug_info_getter.cc",
467 "test/test_directory_backing_store.cc", 467 "test/test_directory_backing_store.cc",
468 "test/test_directory_backing_store.h", 468 "test/test_directory_backing_store.h",
469 "test/test_transaction_observer.cc", 469 "test/test_transaction_observer.cc",
470 "test/test_transaction_observer.h", 470 "test/test_transaction_observer.h",
471 "util/test_unrecoverable_error_handler.cc", 471 "util/test_unrecoverable_error_handler.cc",
472 "util/test_unrecoverable_error_handler.h", 472 "util/test_unrecoverable_error_handler.h",
473 ] 473 ]
474 474
475 deps = [ 475 public_deps = [
476 "//base", 476 "//base",
477 "//testing/gmock", 477 "//testing/gmock",
478 "//testing/gtest", 478 "//testing/gtest",
479 "//sync", 479 "//sync",
480 ] 480 ]
481 481
482 defines = [ "SYNC_TEST" ] 482 defines = [ "SYNC_TEST" ]
483 configs += [ "//build/config/compiler:wexit_time_destructors" ] 483 configs += [ "//build/config/compiler:wexit_time_destructors" ]
484
485 forward_dependent_configs_from = [
486 "//testing/gmock",
487 "//testing/gtest",
488 "//sync"
489 ]
490 } 484 }
491 485
492 # GYP version: sync/sync_tests.gypi:test_support_sync_internal_api 486 # GYP version: sync/sync_tests.gypi:test_support_sync_internal_api
493 static_library("test_support_sync_internal_api") { 487 static_library("test_support_sync_internal_api") {
494 testonly = true 488 testonly = true
495 sources = [ 489 sources = [
496 "internal_api/public/test/fake_sync_manager.h", 490 "internal_api/public/test/fake_sync_manager.h",
497 "internal_api/public/test/null_sync_context_proxy.h", 491 "internal_api/public/test/null_sync_context_proxy.h",
498 "internal_api/public/test/sync_manager_factory_for_profile_sync_test.h", 492 "internal_api/public/test/sync_manager_factory_for_profile_sync_test.h",
499 "internal_api/public/test/test_entry_factory.h", 493 "internal_api/public/test/test_entry_factory.h",
500 "internal_api/public/test/test_internal_components_factory.h", 494 "internal_api/public/test/test_internal_components_factory.h",
501 "internal_api/public/test/test_user_share.h", 495 "internal_api/public/test/test_user_share.h",
502 "internal_api/test/fake_sync_manager.cc", 496 "internal_api/test/fake_sync_manager.cc",
503 "internal_api/test/null_sync_context_proxy.cc", 497 "internal_api/test/null_sync_context_proxy.cc",
504 "internal_api/test/sync_manager_factory_for_profile_sync_test.cc", 498 "internal_api/test/sync_manager_factory_for_profile_sync_test.cc",
505 "internal_api/test/sync_manager_for_profile_sync_test.cc", 499 "internal_api/test/sync_manager_for_profile_sync_test.cc",
506 "internal_api/test/sync_manager_for_profile_sync_test.h", 500 "internal_api/test/sync_manager_for_profile_sync_test.h",
507 "internal_api/test/test_entry_factory.cc", 501 "internal_api/test/test_entry_factory.cc",
508 "internal_api/test/test_internal_components_factory.cc", 502 "internal_api/test/test_internal_components_factory.cc",
509 "internal_api/test/test_user_share.cc", 503 "internal_api/test/test_user_share.cc",
510 ] 504 ]
511 505
512 deps = [ 506 public_deps = [
513 "//base", 507 "//base",
514 "//testing/gtest", 508 "//testing/gtest",
515 "//sync", 509 "//sync",
516 ":test_support_sync_core", 510 ":test_support_sync_core",
517 ] 511 ]
518 512
519 defines = [ "SYNC_TEST" ] 513 defines = [ "SYNC_TEST" ]
520 configs += [ "//build/config/compiler:wexit_time_destructors" ] 514 configs += [ "//build/config/compiler:wexit_time_destructors" ]
521
522 forward_dependent_configs_from = [
523 "//testing/gtest",
524 "//sync",
525 ":test_support_sync_core",
526 ]
527 } 515 }
528 516
529 # GYP version: sync/sync_tests.gypi:test_support_sync_api 517 # GYP version: sync/sync_tests.gypi:test_support_sync_api
530 static_library("test_support_sync_api") { 518 static_library("test_support_sync_api") {
531 testonly = true 519 testonly = true
532 sources = [ 520 sources = [
533 "api/fake_syncable_service.cc", 521 "api/fake_syncable_service.cc",
534 "api/fake_syncable_service.h", 522 "api/fake_syncable_service.h",
535 "api/fake_sync_change_processor.cc", 523 "api/fake_sync_change_processor.cc",
536 "api/fake_sync_change_processor.h", 524 "api/fake_sync_change_processor.h",
537 "api/sync_change_processor_wrapper_for_test.cc", 525 "api/sync_change_processor_wrapper_for_test.cc",
538 "api/sync_change_processor_wrapper_for_test.h", 526 "api/sync_change_processor_wrapper_for_test.h",
539 "api/sync_error_factory_mock.cc", 527 "api/sync_error_factory_mock.cc",
540 "api/sync_error_factory_mock.h", 528 "api/sync_error_factory_mock.h",
541 ] 529 ]
542 530
543 deps = [
544 "//testing/gmock",
545 "//sync",
546 ]
547
548 defines = [ "SYNC_TEST" ] 531 defines = [ "SYNC_TEST" ]
549 532
550 forward_dependent_configs_from = [ 533 public_deps = [
551 "//testing/gmock", 534 "//testing/gmock",
552 "//sync", 535 "//sync",
553 ] 536 ]
554 } 537 }
555 538
556 # GYP version: sync/sync_tests.gypi:sync_unit_tests 539 # GYP version: sync/sync_tests.gypi:sync_unit_tests
557 test("sync_unit_tests") { 540 test("sync_unit_tests") {
558 sources = [ 541 sources = [
559 "api/attachments/attachment_id_unittest.cc", 542 "api/attachments/attachment_id_unittest.cc",
560 "api/attachments/attachment_unittest.cc", 543 "api/attachments/attachment_unittest.cc",
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver 696 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver
714 static_library("test_support_sync_testserver") { 697 static_library("test_support_sync_testserver") {
715 testonly = true 698 testonly = true
716 sources = [ 699 sources = [
717 "test/local_sync_test_server.cc", 700 "test/local_sync_test_server.cc",
718 "test/local_sync_test_server.h", 701 "test/local_sync_test_server.h",
719 ] 702 ]
720 703
721 configs += [ "//build/config/compiler:wexit_time_destructors" ] 704 configs += [ "//build/config/compiler:wexit_time_destructors" ]
722 705
723 deps = [ 706 public_deps = [
724 "//base", 707 "//base",
725 "//net:test_support", 708 "//net:test_support",
709 ]
710 deps = [
726 ":sync", 711 ":sync",
727 712
728 # The sync test server uses Python modules generated by the sync protos. 713 # The sync test server uses Python modules generated by the sync protos.
729 # '../third_party/protobuf/protobuf.gyp:py_proto', # TODO(GYP) 714 # '../third_party/protobuf/protobuf.gyp:py_proto', # TODO(GYP)
730 ] 715 ]
731
732 forward_dependent_configs_from = [ "//base", "//net:test_support" ]
733 } 716 }
734 717
735 # GYP version: sync/sync_tests.gypi:test_support_accounts_client 718 # GYP version: sync/sync_tests.gypi:test_support_accounts_client
736 static_library("test_support_accounts_client") { 719 static_library("test_support_accounts_client") {
737 testonly = true 720 testonly = true
738 sources = [ 721 sources = [
739 "test/accounts_client/test_accounts_client.cc", 722 "test/accounts_client/test_accounts_client.cc",
740 "test/accounts_client/test_accounts_client.h", 723 "test/accounts_client/test_accounts_client.h",
741 "test/accounts_client/url_request_context_getter.cc", 724 "test/accounts_client/url_request_context_getter.cc",
742 "test/accounts_client/url_request_context_getter.h", 725 "test/accounts_client/url_request_context_getter.h",
(...skipping 28 matching lines...) Expand all
771 "//base", 754 "//base",
772 "//base/test:test_support", 755 "//base/test:test_support",
773 "//net:test_support", 756 "//net:test_support",
774 "//testing/gtest", 757 "//testing/gtest",
775 ":test_support_sync_testserver", 758 ":test_support_sync_testserver",
776 ] 759 ]
777 } 760 }
778 } 761 }
779 762
780 #TODO(GYP): Need to port sync_android.gypi and Android test targets. 763 #TODO(GYP): Need to port sync_android.gypi and Android test targets.
OLDNEW
« no previous file with comments | « skia/BUILD.gn ('k') | third_party/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698