# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//build/config/features.gni") import("//build/config/jumbo.gni") import("//tools/grit/grit_rule.gni") jumbo_static_library("driver") { sources = [ "active_devices_provider.h", "backend_migrator.cc", "backend_migrator.h", "configure_context.h", "data_type_controller.cc", "data_type_controller.h", "data_type_encryption_handler.h", "data_type_manager.cc", "data_type_manager.h", "data_type_manager_impl.cc", "data_type_manager_impl.h", "data_type_manager_observer.h", "data_type_status_table.cc", "data_type_status_table.h", "glue/sync_engine_backend.cc", "glue/sync_engine_backend.h", "glue/sync_engine_impl.cc", "glue/sync_engine_impl.h", "model_load_manager.cc", "model_load_manager.h", "model_type_controller.cc", "model_type_controller.h", "non_ui_syncable_service_based_model_type_controller.cc", "non_ui_syncable_service_based_model_type_controller.h", "passphrase_type_metrics_provider.cc", "passphrase_type_metrics_provider.h", "profile_sync_service.cc", "profile_sync_service.h", "startup_controller.cc", "startup_controller.h", "sync_api_component_factory.h", "sync_auth_manager.cc", "sync_auth_manager.h", "sync_auth_util.cc", "sync_auth_util.h", "sync_client.h", "sync_driver_switches.cc", "sync_driver_switches.h", "sync_internals_util.cc", "sync_internals_util.h", "sync_service.cc", "sync_service.h", "sync_service_crypto.cc", "sync_service_crypto.h", "sync_service_observer.cc", "sync_service_observer.h", "sync_service_utils.cc", "sync_service_utils.h", "sync_session_durations_metrics_recorder.cc", "sync_session_durations_metrics_recorder.h", "sync_stopped_reporter.cc", "sync_stopped_reporter.h", "sync_token_status.h", "sync_type_preference_provider.h", "sync_user_settings.h", "sync_user_settings_impl.cc", "sync_user_settings_impl.h", "syncable_service_based_model_type_controller.cc", "syncable_service_based_model_type_controller.h", "trusted_vault_client.h", ] configs += [ "//build/config:precompiled_headers" ] public_deps = [ "//base", "//components/invalidation/public", "//components/sync:rest_of_sync", "//components/sync/base", "//components/sync/js", "//components/sync/protocol", "//components/sync/protocol:util", "//net", "//third_party/metrics_proto", "//url", ] deps = [ "//base:i18n", "//components/data_use_measurement/core", "//components/invalidation/impl:feature_list", "//components/keyed_service/core", "//components/metrics", "//components/os_crypt", "//components/policy:generated", "//components/policy/core/browser", "//components/prefs", "//components/signin/public/identity_manager", "//components/sync/invalidations", "//components/version_info", "//components/version_info:generate_version_info", "//services/network/public/cpp", ] if (!is_ios) { sources += [ "sync_policy_handler.cc", "sync_policy_handler.h", ] } if (is_chromeos) { deps += [ "//chromeos/constants" ] } configs += [ "//build/config/compiler:wexit_time_destructors" ] } grit("resources") { source = "resources.grd" outputs = [ "grit/sync_driver_resources.h", "sync_driver_resources.pak", ] output_dir = "$root_gen_dir/components" } static_library("test_support") { testonly = true sources = [ "data_type_manager_mock.cc", "data_type_manager_mock.h", "fake_data_type_controller.cc", "fake_data_type_controller.h", "fake_sync_service.cc", "fake_sync_service.h", "mock_sync_service.cc", "mock_sync_service.h", "profile_sync_service_bundle.cc", "profile_sync_service_bundle.h", "sync_api_component_factory_mock.cc", "sync_api_component_factory_mock.h", "sync_client_mock.cc", "sync_client_mock.h", "sync_user_settings_mock.cc", "sync_user_settings_mock.h", "test_sync_service.cc", "test_sync_service.h", "test_sync_user_settings.cc", "test_sync_user_settings.h", ] public_deps = [ "//components/sync/base:test_support" ] deps = [ "//components/invalidation/impl:test_support", "//components/pref_registry", "//components/prefs:test_support", "//components/signin/public/base", "//components/signin/public/identity_manager:test_support", "//components/sync", "//components/sync:test_support_engine", "//components/sync:test_support_model", "//components/sync/driver", "//components/sync/invalidations:test_support", "//components/version_info", "//components/version_info:generate_version_info", "//google_apis", "//services/network:test_support", ] }