OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 static_library("syncable_prefs") { | 7 static_library("syncable_prefs") { |
8 sources = [ | 8 sources = [ |
9 "pref_model_associator.cc", | 9 "pref_model_associator.cc", |
10 "pref_model_associator.h", | 10 "pref_model_associator.h", |
11 "pref_model_associator_client.h", | 11 "pref_model_associator_client.h", |
12 "pref_service_syncable.cc", | 12 "pref_service_syncable.cc", |
13 "pref_service_syncable.h", | 13 "pref_service_syncable.h", |
14 "pref_service_syncable_factory.cc", | 14 "pref_service_syncable_factory.cc", |
15 "pref_service_syncable_factory.h", | 15 "pref_service_syncable_factory.h", |
16 "pref_service_syncable_observer.h", | 16 "pref_service_syncable_observer.h", |
17 "synced_pref_change_registrar.cc", | 17 "synced_pref_change_registrar.cc", |
18 "synced_pref_change_registrar.h", | 18 "synced_pref_change_registrar.h", |
19 "synced_pref_observer.h", | 19 "synced_pref_observer.h", |
20 ] | 20 ] |
21 | 21 |
22 deps = [ | 22 deps = [ |
23 "//base", | 23 "//base", |
24 "//components/pref_registry", | 24 "//components/pref_registry", |
25 "//components/prefs", | 25 "//components/prefs", |
26 "//sync", | 26 "//components/sync", |
27 ] | 27 ] |
28 | 28 |
29 if (enable_configuration_policy) { | 29 if (enable_configuration_policy) { |
30 # This define is only used for compiling the .cc files in this target. | 30 # This define is only used for compiling the .cc files in this target. |
31 defines = [ "SYNCABLE_PREFS_USE_POLICY" ] | 31 defines = [ "SYNCABLE_PREFS_USE_POLICY" ] |
32 | 32 |
33 deps += [ | 33 deps += [ |
34 "//components/policy:policy_component_browser", | 34 "//components/policy:policy_component_browser", |
35 "//components/policy:policy_component_common", | 35 "//components/policy:policy_component_common", |
36 ] | 36 ] |
(...skipping 23 matching lines...) Expand all Loading... |
60 sources = [ | 60 sources = [ |
61 "pref_model_associator_unittest.cc", | 61 "pref_model_associator_unittest.cc", |
62 "pref_service_syncable_unittest.cc", | 62 "pref_service_syncable_unittest.cc", |
63 ] | 63 ] |
64 | 64 |
65 deps = [ | 65 deps = [ |
66 ":syncable_prefs", | 66 ":syncable_prefs", |
67 ":test_support", | 67 ":test_support", |
68 "//components/pref_registry", | 68 "//components/pref_registry", |
69 "//components/prefs", | 69 "//components/prefs", |
70 "//sync:test_support_sync_api", | 70 "//components/sync:test_support_sync_api", |
71 "//testing/gtest", | 71 "//testing/gtest", |
72 ] | 72 ] |
73 } | 73 } |
OLD | NEW |