| OLD | NEW |
| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//components/sync/protocol/protocol_sources.gni") | 7 import("//components/sync/protocol/protocol_sources.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 static_library("sync") { | 10 static_library("sync") { |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 deps += [ "//chromeos" ] | 579 deps += [ "//chromeos" ] |
| 580 } | 580 } |
| 581 | 581 |
| 582 if (is_mac) { | 582 if (is_mac) { |
| 583 libs = [ | 583 libs = [ |
| 584 "CoreFoundation.framework", | 584 "CoreFoundation.framework", |
| 585 "SystemConfiguration.framework", # Required by get_session_name_mac.mm. | 585 "SystemConfiguration.framework", # Required by get_session_name_mac.mm. |
| 586 ] | 586 ] |
| 587 } | 587 } |
| 588 | 588 |
| 589 if (is_win) { |
| 590 deps += [ "//components/sync:loopback_sync_server" ] |
| 591 } |
| 592 |
| 589 if (enable_configuration_policy) { | 593 if (enable_configuration_policy) { |
| 590 sources += [ | 594 sources += [ |
| 591 "driver/sync_policy_handler.cc", | 595 "driver/sync_policy_handler.cc", |
| 592 "driver/sync_policy_handler.h", | 596 "driver/sync_policy_handler.h", |
| 593 ] | 597 ] |
| 594 deps += [ | 598 deps += [ |
| 595 "//components/policy:generated", | 599 "//components/policy:generated", |
| 596 "//components/policy/core/browser", | 600 "//components/policy/core/browser", |
| 597 ] | 601 ] |
| 598 } | 602 } |
| 599 | 603 |
| 600 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 604 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 601 } | 605 } |
| 602 | 606 |
| 607 static_library("loopback_sync_server") { |
| 608 sources = [ |
| 609 "engine_impl/loopback_server/loopback_connection_manager.cc", |
| 610 "engine_impl/loopback_server/loopback_connection_manager.h", |
| 611 "engine_impl/loopback_server/loopback_server.cc", |
| 612 "engine_impl/loopback_server/loopback_server.h", |
| 613 "engine_impl/loopback_server/loopback_server_entity.cc", |
| 614 "engine_impl/loopback_server/loopback_server_entity.h", |
| 615 "engine_impl/loopback_server/persistent_bookmark_entity.cc", |
| 616 "engine_impl/loopback_server/persistent_bookmark_entity.h", |
| 617 "engine_impl/loopback_server/persistent_permanent_entity.cc", |
| 618 "engine_impl/loopback_server/persistent_permanent_entity.h", |
| 619 "engine_impl/loopback_server/persistent_tombstone_entity.cc", |
| 620 "engine_impl/loopback_server/persistent_tombstone_entity.h", |
| 621 "engine_impl/loopback_server/persistent_unique_client_entity.cc", |
| 622 "engine_impl/loopback_server/persistent_unique_client_entity.h", |
| 623 ] |
| 624 |
| 625 configs += [ "//build/config:precompiled_headers" ] |
| 626 |
| 627 public_deps = [ |
| 628 "//components/sync/protocol", |
| 629 ] |
| 630 deps = [ |
| 631 "//base", |
| 632 "//base/third_party/dynamic_annotations", |
| 633 "//components/invalidation/public", |
| 634 "//net", |
| 635 "//url", |
| 636 ] |
| 637 |
| 638 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 639 } |
| 640 |
| 603 static_library("test_support_sync_core") { | 641 static_library("test_support_sync_core") { |
| 604 testonly = true | 642 testonly = true |
| 605 sources = [ | 643 sources = [ |
| 606 "base/fake_encryptor.cc", | 644 "base/fake_encryptor.cc", |
| 607 "base/fake_encryptor.h", | 645 "base/fake_encryptor.h", |
| 608 "base/mock_unrecoverable_error_handler.cc", | 646 "base/mock_unrecoverable_error_handler.cc", |
| 609 "base/mock_unrecoverable_error_handler.h", | 647 "base/mock_unrecoverable_error_handler.h", |
| 610 "base/model_type_test_util.cc", | 648 "base/model_type_test_util.cc", |
| 611 "base/model_type_test_util.h", | 649 "base/model_type_test_util.h", |
| 612 "base/test_unrecoverable_error_handler.cc", | 650 "base/test_unrecoverable_error_handler.cc", |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 | 978 |
| 941 if (is_chromeos) { | 979 if (is_chromeos) { |
| 942 # Required by get_session_name_unittest.cc on Chrome OS. | 980 # Required by get_session_name_unittest.cc on Chrome OS. |
| 943 deps += [ "//chromeos" ] | 981 deps += [ "//chromeos" ] |
| 944 } | 982 } |
| 945 | 983 |
| 946 if (is_ios) { | 984 if (is_ios) { |
| 947 sources -= [ "core/http_bridge_unittest.cc" ] | 985 sources -= [ "core/http_bridge_unittest.cc" ] |
| 948 } | 986 } |
| 949 | 987 |
| 988 if (is_win) { |
| 989 sources += [ "engine_impl/loopback_server/loopback_server_unittest.cc" ] |
| 990 } |
| 991 |
| 950 if (enable_configuration_policy) { | 992 if (enable_configuration_policy) { |
| 951 sources += [ "driver/sync_policy_handler_unittest.cc" ] | 993 sources += [ "driver/sync_policy_handler_unittest.cc" ] |
| 952 deps += [ | 994 deps += [ |
| 953 "//components/policy:generated", | 995 "//components/policy:generated", |
| 954 "//components/policy/core/browser", | 996 "//components/policy/core/browser", |
| 955 ] | 997 ] |
| 956 } | 998 } |
| 957 | 999 |
| 958 defines = [ "SYNC_TEST" ] | 1000 defines = [ "SYNC_TEST" ] |
| 959 } | 1001 } |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 deps = [ | 1136 deps = [ |
| 1095 ":fake_server_jni", | 1137 ":fake_server_jni", |
| 1096 ":sync", | 1138 ":sync", |
| 1097 ":test_support_sync_fake_server", | 1139 ":test_support_sync_fake_server", |
| 1098 "//base", | 1140 "//base", |
| 1099 "//testing/gtest", | 1141 "//testing/gtest", |
| 1100 "//url:url", | 1142 "//url:url", |
| 1101 ] | 1143 ] |
| 1102 } | 1144 } |
| 1103 } | 1145 } |
| OLD | NEW |