Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / components / sync_driver.gypi
blob63f063798fca4800281e141146b4e6b429399c13
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         'version_info',
24       ],
25       'include_dirs': [
26         '..',
27       ],
28       'sources': [
29         # Note: file list duplicated in GN build.
30         'sync_driver/about_sync_util.cc',
31         'sync_driver/about_sync_util.h',
32         'sync_driver/backend_data_type_configurer.cc',
33         'sync_driver/backend_data_type_configurer.h',
34         'sync_driver/backend_migrator.cc',
35         'sync_driver/backend_migrator.h',
36         'sync_driver/backup_rollback_controller.cc',
37         'sync_driver/backup_rollback_controller.h',
38         'sync_driver/change_processor.cc',
39         'sync_driver/change_processor.h',
40         'sync_driver/data_type_controller.cc',
41         'sync_driver/data_type_controller.h',
42         'sync_driver/data_type_encryption_handler.cc',
43         'sync_driver/data_type_encryption_handler.h',
44         'sync_driver/data_type_error_handler.h',
45         'sync_driver/data_type_manager.cc',
46         'sync_driver/data_type_manager.h',
47         'sync_driver/data_type_manager_impl.cc',
48         'sync_driver/data_type_manager_impl.h',
49         'sync_driver/data_type_manager_observer.h',
50         'sync_driver/data_type_status_table.cc',
51         'sync_driver/data_type_status_table.h',
52         'sync_driver/device_info.cc',
53         'sync_driver/device_info.h',
54         'sync_driver/device_info_data_type_controller.cc',
55         'sync_driver/device_info_data_type_controller.h',
56         'sync_driver/device_info_sync_service.cc',
57         'sync_driver/device_info_sync_service.h',
58         'sync_driver/device_info_tracker.h',
59         'sync_driver/directory_data_type_controller.cc',
60         'sync_driver/directory_data_type_controller.h',
61         'sync_driver/favicon_cache.cc',
62         'sync_driver/favicon_cache.h',
63         'sync_driver/frontend_data_type_controller.cc',
64         'sync_driver/frontend_data_type_controller.h',
65         'sync_driver/generic_change_processor.cc',
66         'sync_driver/generic_change_processor.h',
67         'sync_driver/generic_change_processor_factory.cc',
68         'sync_driver/generic_change_processor_factory.h',
69         'sync_driver/glue/browser_thread_model_worker.cc',
70         'sync_driver/glue/browser_thread_model_worker.h',
71         'sync_driver/glue/history_model_worker.cc',
72         'sync_driver/glue/history_model_worker.h',
73         'sync_driver/glue/synced_session.cc',
74         'sync_driver/glue/synced_session.h',
75         'sync_driver/glue/synced_window_delegate.h',
76         'sync_driver/glue/typed_url_model_associator.cc',
77         'sync_driver/glue/typed_url_model_associator.h',
78         'sync_driver/glue/ui_model_worker.cc',
79         'sync_driver/glue/ui_model_worker.h',
80         'sync_driver/invalidation_adapter.cc',
81         'sync_driver/invalidation_adapter.h',
82         'sync_driver/invalidation_helper.cc',
83         'sync_driver/invalidation_helper.h',
84         'sync_driver/local_device_info_provider.h',
85         'sync_driver/model_association_manager.cc',
86         'sync_driver/model_association_manager.h',
87         'sync_driver/model_associator.h',
88         'sync_driver/non_blocking_data_type_controller.cc',
89         'sync_driver/non_blocking_data_type_controller.h',
90         'sync_driver/non_ui_data_type_controller.cc',
91         'sync_driver/non_ui_data_type_controller.h',
92         'sync_driver/open_tabs_ui_delegate.cc',
93         'sync_driver/open_tabs_ui_delegate.h',
94         'sync_driver/pref_names.cc',
95         'sync_driver/pref_names.h',
96         'sync_driver/profile_sync_auth_provider.cc',
97         'sync_driver/profile_sync_auth_provider.h',
98         'sync_driver/protocol_event_observer.cc',
99         'sync_driver/protocol_event_observer.h',
100         'sync_driver/proxy_data_type_controller.cc',
101         'sync_driver/proxy_data_type_controller.h',
102         'sync_driver/revisit/current_tab_matcher.cc',
103         'sync_driver/revisit/current_tab_matcher.h',
104         'sync_driver/revisit/offset_tab_matcher.cc',
105         'sync_driver/revisit/offset_tab_matcher.h',
106         'sync_driver/revisit/page_equality.h',
107         'sync_driver/revisit/page_visit_observer.h',
108         'sync_driver/revisit/sessions_page_revisit_observer.cc',
109         'sync_driver/revisit/sessions_page_revisit_observer.h',
110         'sync_driver/sessions/synced_window_delegates_getter.cc',
111         'sync_driver/sessions/synced_window_delegates_getter.h',
112         'sync_driver/shared_change_processor.cc',
113         'sync_driver/shared_change_processor.h',
114         'sync_driver/shared_change_processor_ref.cc',
115         'sync_driver/shared_change_processor_ref.h',
116         'sync_driver/signin_manager_wrapper.cc',
117         'sync_driver/signin_manager_wrapper.h',
118         'sync_driver/sync_api_component_factory.h',
119         'sync_driver/sync_client.cc',
120         'sync_driver/sync_client.h',
121         'sync_driver/sync_driver_switches.cc',
122         'sync_driver/sync_driver_switches.h',
123         'sync_driver/sync_error_controller.cc',
124         'sync_driver/sync_error_controller.h',
125         'sync_driver/sync_frontend.cc',
126         'sync_driver/sync_frontend.h',
127         'sync_driver/sync_prefs.cc',
128         'sync_driver/sync_prefs.h',
129         'sync_driver/sync_service.cc',
130         'sync_driver/sync_service.h',
131         'sync_driver/sync_service_observer.cc',
132         'sync_driver/sync_service_observer.h',
133         'sync_driver/sync_service_utils.cc',
134         'sync_driver/sync_service_utils.h',
135         'sync_driver/sync_stopped_reporter.cc',
136         'sync_driver/sync_stopped_reporter.h',
137         'sync_driver/sync_util.cc',
138         'sync_driver/sync_util.h',
139         'sync_driver/system_encryptor.cc',
140         'sync_driver/system_encryptor.h',
141         'sync_driver/tab_node_pool.cc',
142         'sync_driver/tab_node_pool.h',
143         'sync_driver/ui_data_type_controller.cc',
144         'sync_driver/ui_data_type_controller.h',
145         'sync_driver/user_selectable_sync_type.h',
146       ],
147       'conditions': [
148         ['OS!="ios"', {
149           'dependencies': [
150             'sessions_content',
151           ],
152         }, {  # OS==ios
153           'dependencies': [
154             'sessions_ios',
155           ],
156         }],
157         ['configuration_policy==1', {
158           'dependencies': [
159             'policy',
160           ],
161           'sources': [
162             'sync_driver/sync_policy_handler.cc',
163             'sync_driver/sync_policy_handler.h',
164           ],
165         }],
166       ],
167     },
168     {
169       'target_name': 'sync_driver_test_support',
170       'type': 'static_library',
171       'dependencies': [
172         'sync_driver',
173         '../base/base.gyp:base',
174         '../sync/sync.gyp:sync',
175         '../sync/sync.gyp:test_support_sync_internal_api',
176         '../testing/gmock.gyp:gmock',
177         '../testing/gtest.gyp:gtest',
178       ],
179       'include_dirs': [
180         '..',
181       ],
182       'sources': [
183         'sync_driver/change_processor_mock.cc',
184         'sync_driver/change_processor_mock.h',
185         'sync_driver/data_type_controller_mock.cc',
186         'sync_driver/data_type_controller_mock.h',
187         'sync_driver/data_type_error_handler_mock.cc',
188         'sync_driver/data_type_error_handler_mock.h',
189         'sync_driver/data_type_manager_mock.cc',
190         'sync_driver/data_type_manager_mock.h',
191         'sync_driver/fake_data_type_controller.cc',
192         'sync_driver/fake_data_type_controller.h',
193         'sync_driver/fake_generic_change_processor.cc',
194         'sync_driver/fake_generic_change_processor.h',
195         'sync_driver/fake_sync_client.cc',
196         'sync_driver/fake_sync_client.h',
197         'sync_driver/fake_sync_service.cc',
198         'sync_driver/fake_sync_service.h',
199         'sync_driver/frontend_data_type_controller_mock.cc',
200         'sync_driver/frontend_data_type_controller_mock.h',
201         'sync_driver/local_device_info_provider_mock.cc',
202         'sync_driver/local_device_info_provider_mock.h',
203         'sync_driver/model_associator_mock.cc',
204         'sync_driver/model_associator_mock.h',
205         'sync_driver/non_ui_data_type_controller_mock.cc',
206         'sync_driver/non_ui_data_type_controller_mock.h',
207       ],
208     },
209   ],