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