[Sync] Componentize UIModelWorker.
[chromium-blink-merge.git] / components / syncable_prefs.gypi
blob7e143a14e0d8d10d25c52152a36fca93cb9f8556
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
3 # found in the LICENSE file.
6   'targets': [
7     {
8       # GN version: //components/syncable_prefs
9       'target_name': 'syncable_prefs',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../base/base.gyp:base_prefs',
14         '../sync/sync.gyp:sync',
15         'pref_registry',
16       ],
17       'include_dirs': [
18         '..',
19       ],
20       'sources': [
21         'syncable_prefs/pref_model_associator.cc',
22         'syncable_prefs/pref_model_associator.h',
23         'syncable_prefs/pref_model_associator_client.h',
24         'syncable_prefs/pref_service_syncable.cc',
25         'syncable_prefs/pref_service_syncable.h',
26         'syncable_prefs/pref_service_syncable_factory.cc',
27         'syncable_prefs/pref_service_syncable_factory.h',
28         'syncable_prefs/pref_service_syncable_observer.h',
29         'syncable_prefs/synced_pref_change_registrar.cc',
30         'syncable_prefs/synced_pref_change_registrar.h',
31         'syncable_prefs/synced_pref_observer.h',
32       ],
33       'conditions': [
34         ['configuration_policy==1', {
35           'dependencies': [
36             'policy_component_browser',
37             'policy_component_common',
38           ],
39         }],
40       ],
41     },
42     {
43       # GN version: //components/syncable_prefs:test_support
44       'target_name': 'syncable_prefs_test_support',
45       'type': 'static_library',
46       'dependencies': [
47         '../testing/gtest.gyp:gtest',
48         'syncable_prefs',
49       ],
50       'include_dirs': [
51         '..',
52       ],
53       'sources': [
54         'syncable_prefs/pref_service_mock_factory.cc',
55         'syncable_prefs/pref_service_mock_factory.h',
56         'syncable_prefs/testing_pref_service_syncable.cc',
57         'syncable_prefs/testing_pref_service_syncable.h',
58       ],
59     },
60   ],