Start the migration of passwords from the Keychain.
[chromium-blink-merge.git] / components / password_manager.gypi
blob631095fdb2a2207eded1a52a3029a7bf1655f51a
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/password_manager/core/browser
9       'target_name': 'password_manager_core_browser',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../net/net.gyp:net',
14         '../sql/sql.gyp:sql',
15         '../sync/sync.gyp:sync',
16         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
17         '../url/url.gyp:url_lib',
18         'autofill_core_common',
19         'components_strings.gyp:components_strings',
20         'keyed_service_core',
21         'os_crypt',
22         '../third_party/re2/re2.gyp:re2',
23         'password_manager_core_common',
24         'password_manager_core_browser_proto',
25       ],
26       'include_dirs': [
27         '..',
28       ],
29       'sources': [
30         # Note: sources list duplicated in GN build.
31         'password_manager/core/browser/affiliated_match_helper.cc',
32         'password_manager/core/browser/affiliated_match_helper.h',
33         'password_manager/core/browser/affiliation_backend.cc',
34         'password_manager/core/browser/affiliation_backend.h',
35         'password_manager/core/browser/affiliation_database.cc',
36         'password_manager/core/browser/affiliation_database.h',
37         'password_manager/core/browser/affiliation_fetch_throttler.cc',
38         'password_manager/core/browser/affiliation_fetch_throttler.h',
39         'password_manager/core/browser/affiliation_fetch_throttler_delegate.h',
40         'password_manager/core/browser/affiliation_fetcher.cc',
41         'password_manager/core/browser/affiliation_fetcher.h',
42         'password_manager/core/browser/affiliation_fetcher_delegate.h',
43         'password_manager/core/browser/affiliation_service.cc',
44         'password_manager/core/browser/affiliation_service.h',
45         'password_manager/core/browser/affiliation_utils.cc',
46         'password_manager/core/browser/affiliation_utils.h',
47         'password_manager/core/browser/browser_save_password_progress_logger.cc',
48         'password_manager/core/browser/browser_save_password_progress_logger.h',
49         'password_manager/core/browser/credential_manager_password_form_manager.cc',
50         'password_manager/core/browser/credential_manager_password_form_manager.h',
51         'password_manager/core/browser/credential_manager_pending_request_task.cc',
52         'password_manager/core/browser/credential_manager_pending_request_task.h',
53         'password_manager/core/browser/credential_manager_pending_require_user_mediation_task.cc',
54         'password_manager/core/browser/credential_manager_pending_require_user_mediation_task.h',
55         'password_manager/core/browser/export/csv_writer.cc',
56         'password_manager/core/browser/export/csv_writer.h',
57         'password_manager/core/browser/facet_manager.cc',
58         'password_manager/core/browser/facet_manager.h',
59         'password_manager/core/browser/facet_manager_host.h',
60         'password_manager/core/browser/import/csv_reader.cc',
61         'password_manager/core/browser/import/csv_reader.h',
62         'password_manager/core/browser/keychain_migration_status_mac.h',
63         'password_manager/core/browser/log_receiver.h',
64         'password_manager/core/browser/log_router.cc',
65         'password_manager/core/browser/log_router.h',
66         'password_manager/core/browser/login_database.cc',
67         'password_manager/core/browser/login_database.h',
68         'password_manager/core/browser/login_database_mac.cc',
69         'password_manager/core/browser/login_database_posix.cc',
70         'password_manager/core/browser/login_database_win.cc',
71         'password_manager/core/browser/login_model.h',
72         'password_manager/core/browser/password_autofill_manager.cc',
73         'password_manager/core/browser/password_autofill_manager.h',
74         'password_manager/core/browser/password_bubble_experiment.cc',
75         'password_manager/core/browser/password_bubble_experiment.h',
76         'password_manager/core/browser/password_form_manager.cc',
77         'password_manager/core/browser/password_form_manager.h',
78         'password_manager/core/browser/password_generation_manager.cc',
79         'password_manager/core/browser/password_generation_manager.h',
80         'password_manager/core/browser/password_manager.cc',
81         'password_manager/core/browser/password_manager.h',
82         'password_manager/core/browser/password_manager_client.cc',
83         'password_manager/core/browser/password_manager_client.h',
84         'password_manager/core/browser/password_manager_driver.h',
85         'password_manager/core/browser/password_manager_internals_service.cc',
86         'password_manager/core/browser/password_manager_internals_service.h',
87         'password_manager/core/browser/password_manager_metrics_util.cc',
88         'password_manager/core/browser/password_manager_metrics_util.h',
89         'password_manager/core/browser/password_manager_util.cc',
90         'password_manager/core/browser/password_manager_util.h',
91         'password_manager/core/browser/password_store.cc',
92         'password_manager/core/browser/password_store.h',
93         'password_manager/core/browser/password_store_change.h',
94         'password_manager/core/browser/password_store_consumer.cc',
95         'password_manager/core/browser/password_store_consumer.h',
96         'password_manager/core/browser/password_store_default.cc',
97         'password_manager/core/browser/password_store_default.h',
98         'password_manager/core/browser/password_store_sync.cc',
99         'password_manager/core/browser/password_store_sync.h',
100         'password_manager/core/browser/password_syncable_service.cc',
101         'password_manager/core/browser/password_syncable_service.h',
102         'password_manager/core/browser/psl_matching_helper.cc',
103         'password_manager/core/browser/psl_matching_helper.h',
104         'password_manager/core/browser/statistics_table.cc',
105         'password_manager/core/browser/statistics_table.h',
106         'password_manager/core/browser/test_affiliation_fetcher_factory.h',
107         'password_manager/core/browser/webdata/logins_table.cc',
108         'password_manager/core/browser/webdata/logins_table.h',
109         'password_manager/core/browser/webdata/logins_table_win.cc',
110         'password_manager/core/browser/webdata/password_web_data_service_win.cc',
111         'password_manager/core/browser/webdata/password_web_data_service_win.h',
112       ],
113       'conditions': [
114         ['OS=="mac"', {
115           'sources!': [
116             # TODO(blundell): Provide the iOS login DB implementation and then
117             # also exclude the POSIX one from iOS. http://crbug.com/341429
118             'password_manager/core/browser/login_database_posix.cc',
119           ],
120         }],
121       ],
122       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
123       'msvs_disabled_warnings': [ 4267, ],
124     },
125     {
126       # GN version: //components/password_manager/core/browser:proto
127       'target_name': 'password_manager_core_browser_proto',
128       'type': 'static_library',
129       'sources': [
130         'password_manager/core/browser/affiliation_api.proto'
131       ],
132       'variables': {
133         'proto_in_dir': 'password_manager/core/browser',
134         'proto_out_dir': 'components/password_manager/core/browser',
135       },
136       'includes': ['../build/protoc.gypi'],
137     },
138     {
139       # GN version: //components/password_manager/core/browser:test_support
140       'target_name': 'password_manager_core_browser_test_support',
141       'type': 'static_library',
142       'dependencies': [
143         'autofill_core_common',
144         '../base/base.gyp:base',
145         '../testing/gmock.gyp:gmock',
146         '../testing/gtest.gyp:gtest',
147       ],
148       'include_dirs': [
149         '..',
150       ],
151       'sources': [
152         # Note: sources list duplicated in GN build.
153         'password_manager/core/browser/fake_affiliation_api.cc',
154         'password_manager/core/browser/fake_affiliation_api.h',
155         'password_manager/core/browser/fake_affiliation_fetcher.cc',
156         'password_manager/core/browser/fake_affiliation_fetcher.h',
157         'password_manager/core/browser/mock_affiliation_consumer.cc',
158         'password_manager/core/browser/mock_affiliation_consumer.h',
159         'password_manager/core/browser/mock_password_store.cc',
160         'password_manager/core/browser/mock_password_store.h',
161         'password_manager/core/browser/password_manager_test_utils.cc',
162         'password_manager/core/browser/password_manager_test_utils.h',
163         'password_manager/core/browser/stub_password_manager_client.cc',
164         'password_manager/core/browser/stub_password_manager_client.h',
165         'password_manager/core/browser/stub_password_manager_driver.cc',
166         'password_manager/core/browser/stub_password_manager_driver.h',
167         'password_manager/core/browser/test_password_store.cc',
168         'password_manager/core/browser/test_password_store.h',
169       ],
170     },
171     {
172       # GN version: //components/password_manager/core/common
173       'target_name': 'password_manager_core_common',
174       'type': 'static_library',
175       'dependencies': [
176         '../base/base.gyp:base',
177       ],
178       'include_dirs': [
179         '..',
180       ],
181       'sources': [
182         # Note: sources list duplicated in GN build.
183         'password_manager/core/common/credential_manager_types.cc',
184         'password_manager/core/common/credential_manager_types.h',
185         'password_manager/core/common/experiments.cc',
186         'password_manager/core/common/experiments.h',
187         'password_manager/core/common/password_manager_pref_names.cc',
188         'password_manager/core/common/password_manager_pref_names.h',
189         'password_manager/core/common/password_manager_switches.cc',
190         'password_manager/core/common/password_manager_switches.h',
191         'password_manager/core/common/password_manager_ui.h',
192       ],
193     },
194   ],
195   'conditions': [
196     ['OS != "ios"', {
197       'targets': [
198         {
199           # GN version: //components/password_manager/content/common
200           'target_name': 'password_manager_content_common',
201           'type': 'static_library',
202           'dependencies': [
203             '../base/base.gyp:base',
204             '../content/content.gyp:content_common',
205             '../ipc/ipc.gyp:ipc',
206             '../third_party/WebKit/public/blink.gyp:blink_minimal',
207             'password_manager_core_common',
208           ],
209           'include_dirs': [
210             '..',
211           ],
212           'sources': [
213             'password_manager/content/common/credential_manager_content_utils.cc',
214             'password_manager/content/common/credential_manager_content_utils.h',
215             'password_manager/content/common/credential_manager_message_generator.cc',
216             'password_manager/content/common/credential_manager_message_generator.h',
217             'password_manager/content/common/credential_manager_messages.h',
218           ],
219         },
220         {
221           # GN version: //components/password_manager/content/renderer
222           'target_name': 'password_manager_content_renderer',
223           'type': 'static_library',
224           'dependencies': [
225             '../base/base.gyp:base',
226             '../content/content.gyp:content_common',
227             '../ipc/ipc.gyp:ipc',
228             '../third_party/WebKit/public/blink.gyp:blink',
229             'password_manager_core_common',
230             'password_manager_content_common',
231           ],
232           'include_dirs': [
233             '..',
234           ],
235           'sources': [
236             'password_manager/content/renderer/credential_manager_client.cc',
237             'password_manager/content/renderer/credential_manager_client.h',
238           ],
239         },
240         {
241           # GN version: //components/password_manager/content/browser
242           'target_name': 'password_manager_content_browser',
243           'type': 'static_library',
244           'dependencies': [
245             '../base/base.gyp:base',
246             '../content/content.gyp:content_browser',
247             '../content/content.gyp:content_common',
248             '../ipc/ipc.gyp:ipc',
249             '../net/net.gyp:net',
250             'autofill_content_browser',
251             'autofill_content_common',
252             'autofill_core_common',
253             'keyed_service_content',
254             'password_manager_core_browser',
255             'password_manager_content_common',
256           ],
257           'include_dirs': [
258             '..',
259           ],
260           'sources': [
261             # Note: sources list duplicated in GN build.
262             'password_manager/content/browser/content_password_manager_driver.cc',
263             'password_manager/content/browser/content_password_manager_driver.h',
264             'password_manager/content/browser/content_password_manager_driver_factory.cc',
265             'password_manager/content/browser/content_password_manager_driver_factory.h',
266             'password_manager/content/browser/credential_manager_dispatcher.cc',
267             'password_manager/content/browser/credential_manager_dispatcher.h',
268             'password_manager/content/browser/password_manager_internals_service_factory.cc',
269             'password_manager/content/browser/password_manager_internals_service_factory.h',
270           ],
271         },
272       ],
273     }],
274   ],