[Sync] Componentize UIModelWorker.
[chromium-blink-merge.git] / components / user_prefs.gypi
blobcfeff21a5afac2673cfb6ee514d50d9c25b8bac1
1 # Copyright (c) 2013 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       'target_name': 'user_prefs',
9       'type': '<(component)',
10       'dependencies': [
11         '../base/base.gyp:base',
12         '../base/base.gyp:base_prefs',
13       ],
14       'include_dirs': [
15         '..',
16       ],
17       'defines': [
18         'USER_PREFS_IMPLEMENTATION',
19       ],
20       'sources': [
21         'user_prefs/user_prefs.cc',
22         'user_prefs/user_prefs.h',
23         'user_prefs/user_prefs_export.h',
24       ],
25     },
26     {
27       'target_name': 'user_prefs_tracked',
28       'type': 'static_library',
29       'include_dirs': [
30         '..',
31       ],
32       'dependencies': [
33       ],
34       'sources': [
35         'user_prefs/tracked/device_id.h',
36         'user_prefs/tracked/device_id_mac.cc',
37         'user_prefs/tracked/device_id_stub.cc',
38         'user_prefs/tracked/device_id_win.cc',
39         'user_prefs/tracked/dictionary_hash_store_contents.cc',
40         'user_prefs/tracked/dictionary_hash_store_contents.h',
41         'user_prefs/tracked/hash_store_contents.h',
42         'user_prefs/tracked/interceptable_pref_filter.cc',
43         'user_prefs/tracked/interceptable_pref_filter.h',
44         'user_prefs/tracked/pref_hash_calculator.cc',
45         'user_prefs/tracked/pref_hash_calculator.h',
46         'user_prefs/tracked/pref_hash_filter.cc',
47         'user_prefs/tracked/pref_hash_filter.h',
48         'user_prefs/tracked/pref_hash_store.h',
49         'user_prefs/tracked/pref_hash_store_impl.cc',
50         'user_prefs/tracked/pref_hash_store_impl.h',
51         'user_prefs/tracked/pref_hash_store_transaction.h',
52         'user_prefs/tracked/pref_names.cc',
53         'user_prefs/tracked/pref_names.h',
54         'user_prefs/tracked/pref_service_hash_store_contents.cc',
55         'user_prefs/tracked/pref_service_hash_store_contents.h',
56         'user_prefs/tracked/segregated_pref_store.cc',
57         'user_prefs/tracked/segregated_pref_store.h',
58         'user_prefs/tracked/tracked_atomic_preference.cc',
59         'user_prefs/tracked/tracked_atomic_preference.h',
60         'user_prefs/tracked/tracked_preference.h',
61         'user_prefs/tracked/tracked_preference_helper.cc',
62         'user_prefs/tracked/tracked_preference_helper.h',
63         'user_prefs/tracked/tracked_preference_validation_delegate.h',
64         'user_prefs/tracked/tracked_preferences_migration.cc',
65         'user_prefs/tracked/tracked_preferences_migration.h',
66         'user_prefs/tracked/tracked_split_preference.cc',
67         'user_prefs/tracked/tracked_split_preference.h',
68       ],
69       'conditions': [
70         ['OS=="win" or (OS=="mac" and OS!="ios")', {
71           'sources!': [
72             'user_prefs/tracked/device_id_stub.cc',
73           ],
74         }],
75         ['OS=="ios"', {
76           'sources!': [
77             'user_prefs/tracked/device_id_mac.cc',
78           ],
79         }],
80       ],
82       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
83       'msvs_disabled_warnings': [4267, ],
84     },
85     {
86       'target_name': 'user_prefs_tracked_test_support',
87       'type': 'static_library',
88       'include_dirs': [
89         '..',
90       ],
91       'dependencies': [
92       ],
93       'sources': [
94         'user_prefs/tracked/mock_validation_delegate.cc',
95         'user_prefs/tracked/mock_validation_delegate.h',
96       ],
97     },
98   ],