summaryrefslogtreecommitdiffstats
path: root/components/sync_driver.gypi
blob: 36232ca08243660f6f7bb3aec2a74f969c5b7cae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      # GN version: //components/sync_driver
      'target_name': 'sync_driver',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        '../net/net.gyp:net',
        '../sync/sync.gyp:sync',
        '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
        '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
        'data_use_measurement_core',
        'invalidation_public',
        'metrics',
        'os_crypt',
        'signin_core_browser',
        'version_info',
      ],
      'export_dependent_settings': [
        '../sync/sync.gyp:sync',
        '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
      ],
      'include_dirs': [
        '..',
      ],
      'sources': [
        # Note: file list duplicated in GN build.
        'sync_driver/about_sync_util.cc',
        'sync_driver/about_sync_util.h',
        'sync_driver/backend_data_type_configurer.cc',
        'sync_driver/backend_data_type_configurer.h',
        'sync_driver/backend_migrator.cc',
        'sync_driver/backend_migrator.h',
        'sync_driver/change_processor.cc',
        'sync_driver/change_processor.h',
        'sync_driver/data_type_controller.cc',
        'sync_driver/data_type_controller.h',
        'sync_driver/data_type_encryption_handler.cc',
        'sync_driver/data_type_encryption_handler.h',
        'sync_driver/data_type_error_handler.h',
        'sync_driver/data_type_manager.cc',
        'sync_driver/data_type_manager.h',
        'sync_driver/data_type_manager_impl.cc',
        'sync_driver/data_type_manager_impl.h',
        'sync_driver/data_type_manager_observer.h',
        'sync_driver/data_type_status_table.cc',
        'sync_driver/data_type_status_table.h',
        'sync_driver/device_count_metrics_provider.cc',
        'sync_driver/device_count_metrics_provider.h',
        'sync_driver/device_info.cc',
        'sync_driver/device_info.h',
        'sync_driver/device_info_data_type_controller.cc',
        'sync_driver/device_info_data_type_controller.h',
        'sync_driver/device_info_model_type_controller.cc',
        'sync_driver/device_info_model_type_controller.h',
        'sync_driver/device_info_service.cc',
        'sync_driver/device_info_service.h',
        'sync_driver/device_info_sync_service.cc',
        'sync_driver/device_info_sync_service.h',
        'sync_driver/device_info_tracker.h',
        'sync_driver/directory_data_type_controller.cc',
        'sync_driver/directory_data_type_controller.h',
        'sync_driver/frontend_data_type_controller.cc',
        'sync_driver/frontend_data_type_controller.h',
        'sync_driver/generic_change_processor.cc',
        'sync_driver/generic_change_processor.h',
        'sync_driver/generic_change_processor_factory.cc',
        'sync_driver/generic_change_processor_factory.h',
        'sync_driver/glue/browser_thread_model_worker.cc',
        'sync_driver/glue/browser_thread_model_worker.h',
        'sync_driver/glue/chrome_report_unrecoverable_error.cc',
        'sync_driver/glue/chrome_report_unrecoverable_error.h',
        'sync_driver/glue/sync_backend_host.cc',
        'sync_driver/glue/sync_backend_host.h',
        'sync_driver/glue/sync_backend_host_core.cc',
        'sync_driver/glue/sync_backend_host_core.h',
        'sync_driver/glue/sync_backend_host_impl.cc',
        'sync_driver/glue/sync_backend_host_impl.h',
        'sync_driver/glue/sync_backend_registrar.cc',
        'sync_driver/glue/sync_backend_registrar.h',
        'sync_driver/glue/ui_model_worker.cc',
        'sync_driver/glue/ui_model_worker.h',
        'sync_driver/invalidation_adapter.cc',
        'sync_driver/invalidation_adapter.h',
        'sync_driver/invalidation_helper.cc',
        'sync_driver/invalidation_helper.h',
        'sync_driver/local_device_info_provider.h',
        'sync_driver/local_device_info_provider_impl.cc',
        'sync_driver/local_device_info_provider_impl.h',
        'sync_driver/model_association_manager.cc',
        'sync_driver/model_association_manager.h',
        'sync_driver/model_associator.h',
        'sync_driver/non_blocking_data_type_controller.cc',
        'sync_driver/non_blocking_data_type_controller.h',
        'sync_driver/non_ui_data_type_controller.cc',
        'sync_driver/non_ui_data_type_controller.h',
        'sync_driver/non_ui_model_type_controller.cc',
        'sync_driver/non_ui_model_type_controller.h',
        'sync_driver/pref_names.cc',
        'sync_driver/pref_names.h',
        'sync_driver/profile_sync_auth_provider.cc',
        'sync_driver/profile_sync_auth_provider.h',
        'sync_driver/protocol_event_observer.cc',
        'sync_driver/protocol_event_observer.h',
        'sync_driver/proxy_data_type_controller.cc',
        'sync_driver/proxy_data_type_controller.h',
        'sync_driver/shared_change_processor.cc',
        'sync_driver/shared_change_processor.h',
        'sync_driver/shared_change_processor_ref.cc',
        'sync_driver/shared_change_processor_ref.h',
        'sync_driver/signin_manager_wrapper.cc',
        'sync_driver/signin_manager_wrapper.h',
        'sync_driver/startup_controller.cc',
        'sync_driver/startup_controller.h',
        'sync_driver/sync_api_component_factory.h',
        'sync_driver/sync_client.cc',
        'sync_driver/sync_client.h',
        'sync_driver/sync_driver_switches.cc',
        'sync_driver/sync_driver_switches.h',
        'sync_driver/sync_error_controller.cc',
        'sync_driver/sync_error_controller.h',
        'sync_driver/sync_frontend.cc',
        'sync_driver/sync_frontend.h',
        'sync_driver/sync_prefs.cc',
        'sync_driver/sync_prefs.h',
        'sync_driver/sync_service.cc',
        'sync_driver/sync_service.h',
        'sync_driver/sync_service_observer.cc',
        'sync_driver/sync_service_observer.h',
        'sync_driver/sync_service_utils.cc',
        'sync_driver/sync_service_utils.h',
        'sync_driver/sync_stopped_reporter.cc',
        'sync_driver/sync_stopped_reporter.h',
        'sync_driver/sync_type_preference_provider.h',
        'sync_driver/sync_util.cc',
        'sync_driver/sync_util.h',
        'sync_driver/system_encryptor.cc',
        'sync_driver/system_encryptor.h',
        'sync_driver/ui_data_type_controller.cc',
        'sync_driver/ui_data_type_controller.h',
        'sync_driver/ui_model_type_controller.cc',
        'sync_driver/ui_model_type_controller.h',
        'sync_driver/user_selectable_sync_type.h',
      ],
      'conditions': [
        ['configuration_policy==1', {
          'dependencies': [
            'policy',
            'policy_component',
          ],
          'sources': [
            'sync_driver/sync_policy_handler.cc',
            'sync_driver/sync_policy_handler.h',
          ],
        }],
      ],
    },
    {
      'target_name': 'sync_driver_test_support',
      'type': 'static_library',
      'dependencies': [
        'sync_driver',
        'version_info',
        '../base/base.gyp:base',
        '../sync/sync.gyp:sync',
        '../sync/sync.gyp:test_support_sync_internal_api',
        '../testing/gmock.gyp:gmock',
        '../testing/gtest.gyp:gtest',
      ],
      'include_dirs': [
        '..',
      ],
      'sources': [
        'sync_driver/change_processor_mock.cc',
        'sync_driver/change_processor_mock.h',
        'sync_driver/data_type_controller_mock.cc',
        'sync_driver/data_type_controller_mock.h',
        'sync_driver/data_type_error_handler_mock.cc',
        'sync_driver/data_type_error_handler_mock.h',
        'sync_driver/data_type_manager_mock.cc',
        'sync_driver/data_type_manager_mock.h',
        'sync_driver/fake_data_type_controller.cc',
        'sync_driver/fake_data_type_controller.h',
        'sync_driver/fake_generic_change_processor.cc',
        'sync_driver/fake_generic_change_processor.h',
        'sync_driver/fake_sync_client.cc',
        'sync_driver/fake_sync_client.h',
        'sync_driver/fake_sync_service.cc',
        'sync_driver/fake_sync_service.h',
        'sync_driver/frontend_data_type_controller_mock.cc',
        'sync_driver/frontend_data_type_controller_mock.h',
        'sync_driver/glue/sync_backend_host_mock.cc',
        'sync_driver/glue/sync_backend_host_mock.h',
        'sync_driver/local_device_info_provider_mock.cc',
        'sync_driver/local_device_info_provider_mock.h',
        'sync_driver/model_associator_mock.cc',
        'sync_driver/model_associator_mock.h',
        'sync_driver/non_ui_data_type_controller_mock.cc',
        'sync_driver/non_ui_data_type_controller_mock.h',
        'sync_driver/sync_api_component_factory_mock.cc',
        'sync_driver/sync_api_component_factory_mock.h',
      ],
    },
  ],
}