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