Popular sites on the NTP: add the option to provide the server filename through a...
[chromium-blink-merge.git] / components / sync_driver.gypi
blob8a51bb10ff6439550156e68ccd4e8dea5f178f6e
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
3 # found in the LICENSE file.
6   'targets': [
7     {
8       # GN version: //components/sync_driver
9       'target_name': 'sync_driver',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../net/net.gyp:net',
14         '../sync/sync.gyp:sync',
15         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
16         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
17         '../ui/gfx/gfx.gyp:gfx',
18         'favicon_core',
19         'history_core_browser',
20         'invalidation_public',
21         'os_crypt',
22         'signin_core_browser',
23       ],
24       'include_dirs': [
25         '..',
26       ],
27       'sources': [
28         # Note: file list duplicated in GN build.
29         'sync_driver/backend_data_type_configurer.cc',
30         'sync_driver/backend_data_type_configurer.h',
31         'sync_driver/backend_migrator.cc',
32         'sync_driver/backend_migrator.h',
33         'sync_driver/change_processor.cc',
34         'sync_driver/change_processor.h',
35         'sync_driver/data_type_controller.cc',
36         'sync_driver/data_type_controller.h',
37         'sync_driver/data_type_encryption_handler.cc',
38         'sync_driver/data_type_encryption_handler.h',
39         'sync_driver/data_type_error_handler.h',
40         'sync_driver/data_type_manager.cc',
41         'sync_driver/data_type_manager.h',
42         'sync_driver/data_type_manager_impl.cc',
43         'sync_driver/data_type_manager_impl.h',
44         'sync_driver/data_type_manager_observer.h',
45         'sync_driver/data_type_status_table.cc',
46         'sync_driver/data_type_status_table.h',
47         'sync_driver/device_info.cc',
48         'sync_driver/device_info.h',
49         'sync_driver/device_info_data_type_controller.cc',
50         'sync_driver/device_info_data_type_controller.h',
51         'sync_driver/device_info_sync_service.cc',
52         'sync_driver/device_info_sync_service.h',
53         'sync_driver/device_info_tracker.h',
54         'sync_driver/favicon_cache.cc',
55         'sync_driver/favicon_cache.h',
56         'sync_driver/generic_change_processor.cc',
57         'sync_driver/generic_change_processor.h',
58         'sync_driver/generic_change_processor_factory.cc',
59         'sync_driver/generic_change_processor_factory.h',
60         'sync_driver/glue/synced_session.cc',
61         'sync_driver/glue/synced_session.h',
62         'sync_driver/glue/typed_url_model_associator.cc',
63         'sync_driver/glue/typed_url_model_associator.h',
64         'sync_driver/invalidation_adapter.cc',
65         'sync_driver/invalidation_adapter.h',
66         'sync_driver/invalidation_helper.cc',
67         'sync_driver/invalidation_helper.h',
68         'sync_driver/local_device_info_provider.h',
69         'sync_driver/model_association_manager.cc',
70         'sync_driver/model_association_manager.h',
71         'sync_driver/model_associator.h',
72         'sync_driver/non_blocking_data_type_controller.cc',
73         'sync_driver/non_blocking_data_type_controller.h',
74         'sync_driver/non_blocking_data_type_manager.cc',
75         'sync_driver/non_blocking_data_type_manager.h',
76         'sync_driver/non_ui_data_type_controller.cc',
77         'sync_driver/non_ui_data_type_controller.h',
78         'sync_driver/open_tabs_ui_delegate.cc',
79         'sync_driver/open_tabs_ui_delegate.h',
80         'sync_driver/pref_names.cc',
81         'sync_driver/pref_names.h',
82         'sync_driver/profile_sync_auth_provider.cc',
83         'sync_driver/profile_sync_auth_provider.h',
84         'sync_driver/profile_sync_components_factory.h',
85         'sync_driver/protocol_event_observer.cc',
86         'sync_driver/protocol_event_observer.h',
87         'sync_driver/proxy_data_type_controller.cc',
88         'sync_driver/proxy_data_type_controller.h',
89         'sync_driver/shared_change_processor.cc',
90         'sync_driver/shared_change_processor.h',
91         'sync_driver/shared_change_processor_ref.cc',
92         'sync_driver/shared_change_processor_ref.h',
93         'sync_driver/sync_api_component_factory.h',
94         'sync_driver/sync_client.cc',
95         'sync_driver/sync_client.h',
96         'sync_driver/sync_error_controller.cc',
97         'sync_driver/sync_error_controller.h',
98         'sync_driver/sync_frontend.cc',
99         'sync_driver/sync_frontend.h',
100         'sync_driver/sync_prefs.cc',
101         'sync_driver/sync_prefs.h',
102         'sync_driver/sync_service.h',
103         'sync_driver/sync_service_observer.cc',
104         'sync_driver/sync_service_observer.h',
105         'sync_driver/sync_service_utils.cc',
106         'sync_driver/sync_service_utils.h',
107         'sync_driver/sync_stopped_reporter.cc',
108         'sync_driver/sync_stopped_reporter.h',
109         'sync_driver/system_encryptor.cc',
110         'sync_driver/system_encryptor.h',
111         'sync_driver/tab_node_pool.cc',
112         'sync_driver/tab_node_pool.h',
113         'sync_driver/ui_data_type_controller.cc',
114         'sync_driver/ui_data_type_controller.h',
115         'sync_driver/user_selectable_sync_type.h',
116       ],
117       'conditions': [
118         ['OS!="ios"', {
119           'dependencies': [
120             'sessions_content',
121           ],
122         }, {  # OS==ios
123           'dependencies': [
124             'sessions_ios',
125           ],
126         }],
127         ['configuration_policy==1', {
128           'dependencies': [
129             'policy',
130           ],
131           'sources': [
132             'sync_driver/sync_policy_handler.cc',
133             'sync_driver/sync_policy_handler.h',
134           ],
135         }],
136       ],
137     },
138     {
139       'target_name': 'sync_driver_test_support',
140       'type': 'static_library',
141       'dependencies': [
142         'sync_driver',
143         '../base/base.gyp:base',
144         '../sync/sync.gyp:sync',
145         '../sync/sync.gyp:test_support_sync_internal_api',
146         '../testing/gmock.gyp:gmock',
147         '../testing/gtest.gyp:gtest',
148       ],
149       'include_dirs': [
150         '..',
151       ],
152       'sources': [
153         'sync_driver/change_processor_mock.cc',
154         'sync_driver/change_processor_mock.h',
155         'sync_driver/data_type_controller_mock.cc',
156         'sync_driver/data_type_controller_mock.h',
157         'sync_driver/data_type_error_handler_mock.cc',
158         'sync_driver/data_type_error_handler_mock.h',
159         'sync_driver/data_type_manager_mock.cc',
160         'sync_driver/data_type_manager_mock.h',
161         'sync_driver/fake_data_type_controller.cc',
162         'sync_driver/fake_data_type_controller.h',
163         'sync_driver/fake_generic_change_processor.cc',
164         'sync_driver/fake_generic_change_processor.h',
165         'sync_driver/fake_sync_service.cc',
166         'sync_driver/fake_sync_service.h',
167         'sync_driver/local_device_info_provider_mock.cc',
168         'sync_driver/local_device_info_provider_mock.h',
169         'sync_driver/model_associator_mock.cc',
170         'sync_driver/model_associator_mock.h',
171         'sync_driver/non_ui_data_type_controller_mock.cc',
172         'sync_driver/non_ui_data_type_controller_mock.h',
173       ],
174     },
175   ],