Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / password_manager.gypi
blob537af0f7bca9700e22bc4644e26934ce559e6df7
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_settings_migration_experiment.cc',
92         'password_manager/core/browser/password_manager_settings_migration_experiment.h',
93         'password_manager/core/browser/password_manager_util.cc',
94         'password_manager/core/browser/password_manager_util.h',
95         'password_manager/core/browser/password_store.cc',
96         'password_manager/core/browser/password_store.h',
97         'password_manager/core/browser/password_store_change.h',
98         'password_manager/core/browser/password_store_consumer.cc',
99         'password_manager/core/browser/password_store_consumer.h',
100         'password_manager/core/browser/password_store_default.cc',
101         'password_manager/core/browser/password_store_default.h',
102         'password_manager/core/browser/password_store_sync.cc',
103         'password_manager/core/browser/password_store_sync.h',
104         'password_manager/core/browser/password_syncable_service.cc',
105         'password_manager/core/browser/password_syncable_service.h',
106         'password_manager/core/browser/psl_matching_helper.cc',
107         'password_manager/core/browser/psl_matching_helper.h',
108         'password_manager/core/browser/statistics_table.cc',
109         'password_manager/core/browser/statistics_table.h',
110         'password_manager/core/browser/test_affiliation_fetcher_factory.h',
111         'password_manager/core/browser/webdata/logins_table.cc',
112         'password_manager/core/browser/webdata/logins_table.h',
113         'password_manager/core/browser/webdata/logins_table_win.cc',
114         'password_manager/core/browser/webdata/password_web_data_service_win.cc',
115         'password_manager/core/browser/webdata/password_web_data_service_win.h',
116       ],
117       'conditions': [
118         ['OS=="mac"', {
119           'sources!': [
120             # TODO(blundell): Provide the iOS login DB implementation and then
121             # also exclude the POSIX one from iOS. http://crbug.com/341429
122             'password_manager/core/browser/login_database_posix.cc',
123           ],
124         }],
125       ],
126       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
127       'msvs_disabled_warnings': [ 4267, ],
128     },
129     {
130       # GN version: //components/password_manager/core/browser:proto
131       'target_name': 'password_manager_core_browser_proto',
132       'type': 'static_library',
133       'sources': [
134         'password_manager/core/browser/affiliation_api.proto'
135       ],
136       'variables': {
137         'proto_in_dir': 'password_manager/core/browser',
138         'proto_out_dir': 'components/password_manager/core/browser',
139       },
140       'includes': ['../build/protoc.gypi'],
141     },
142     {
143       # GN version: //components/password_manager/core/browser:test_support
144       'target_name': 'password_manager_core_browser_test_support',
145       'type': 'static_library',
146       'dependencies': [
147         'autofill_core_common',
148         '../base/base.gyp:base',
149         '../testing/gmock.gyp:gmock',
150         '../testing/gtest.gyp:gtest',
151       ],
152       'include_dirs': [
153         '..',
154       ],
155       'sources': [
156         # Note: sources list duplicated in GN build.
157         'password_manager/core/browser/fake_affiliation_api.cc',
158         'password_manager/core/browser/fake_affiliation_api.h',
159         'password_manager/core/browser/fake_affiliation_fetcher.cc',
160         'password_manager/core/browser/fake_affiliation_fetcher.h',
161         'password_manager/core/browser/mock_affiliation_consumer.cc',
162         'password_manager/core/browser/mock_affiliation_consumer.h',
163         'password_manager/core/browser/mock_password_store.cc',
164         'password_manager/core/browser/mock_password_store.h',
165         'password_manager/core/browser/password_manager_test_utils.cc',
166         'password_manager/core/browser/password_manager_test_utils.h',
167         'password_manager/core/browser/stub_password_manager_client.cc',
168         'password_manager/core/browser/stub_password_manager_client.h',
169         'password_manager/core/browser/stub_password_manager_driver.cc',
170         'password_manager/core/browser/stub_password_manager_driver.h',
171         'password_manager/core/browser/test_password_store.cc',
172         'password_manager/core/browser/test_password_store.h',
173       ],
174     },
175     {
176       # GN version: //components/password_manager/core/common
177       'target_name': 'password_manager_core_common',
178       'type': 'static_library',
179       'dependencies': [
180         '../base/base.gyp:base',
181       ],
182       'include_dirs': [
183         '..',
184       ],
185       'sources': [
186         # Note: sources list duplicated in GN build.
187         'password_manager/core/common/credential_manager_types.cc',
188         'password_manager/core/common/credential_manager_types.h',
189         'password_manager/core/common/experiments.cc',
190         'password_manager/core/common/experiments.h',
191         'password_manager/core/common/password_manager_pref_names.cc',
192         'password_manager/core/common/password_manager_pref_names.h',
193         'password_manager/core/common/password_manager_switches.cc',
194         'password_manager/core/common/password_manager_switches.h',
195         'password_manager/core/common/password_manager_ui.h',
196       ],
197     },
198     {
199       # GN version: //components/password_manager/sync/browser
200       'target_name': 'password_manager_sync_browser',
201       'type': 'static_library',
202       'dependencies': [
203         '../base/base.gyp:base',
204         '../google_apis/google_apis.gyp:google_apis',
205         '../net/net.gyp:net',
206         '../sync/sync.gyp:sync',
207         'autofill_core_common',
208         'password_manager_core_browser',
209       ],
210       'include_dirs': [
211         '..',
212       ],
213       'sources': [
214         # Note: sources list duplicated in GN build.
215         'password_manager/sync/browser/password_model_worker.cc',
216         'password_manager/sync/browser/password_model_worker.h',
217         'password_manager/sync/browser/password_sync_util.cc',
218         'password_manager/sync/browser/password_sync_util.h',
219         'password_manager/sync/browser/sync_store_result_filter.cc',
220         'password_manager/sync/browser/sync_store_result_filter.h',
221       ],
222     },
223   ],
224   'conditions': [
225     ['OS != "ios"', {
226       'targets': [
227         {
228           # GN version: //components/password_manager/content/common
229           'target_name': 'password_manager_content_common',
230           'type': 'static_library',
231           'dependencies': [
232             '../base/base.gyp:base',
233             '../content/content.gyp:content_common',
234             '../ipc/ipc.gyp:ipc',
235             '../third_party/WebKit/public/blink.gyp:blink_minimal',
236             'password_manager_core_common',
237           ],
238           'include_dirs': [
239             '..',
240           ],
241           'sources': [
242             'password_manager/content/common/credential_manager_content_utils.cc',
243             'password_manager/content/common/credential_manager_content_utils.h',
244             'password_manager/content/common/credential_manager_message_generator.cc',
245             'password_manager/content/common/credential_manager_message_generator.h',
246             'password_manager/content/common/credential_manager_messages.h',
247           ],
248         },
249         {
250           # GN version: //components/password_manager/content/renderer
251           'target_name': 'password_manager_content_renderer',
252           'type': 'static_library',
253           'dependencies': [
254             '../base/base.gyp:base',
255             '../content/content.gyp:content_common',
256             '../ipc/ipc.gyp:ipc',
257             '../third_party/WebKit/public/blink.gyp:blink',
258             'password_manager_core_common',
259             'password_manager_content_common',
260           ],
261           'include_dirs': [
262             '..',
263           ],
264           'sources': [
265             'password_manager/content/renderer/credential_manager_client.cc',
266             'password_manager/content/renderer/credential_manager_client.h',
267           ],
268         },
269         {
270           # GN version: //components/password_manager/content/browser
271           'target_name': 'password_manager_content_browser',
272           'type': 'static_library',
273           'dependencies': [
274             '../base/base.gyp:base',
275             '../content/content.gyp:content_browser',
276             '../content/content.gyp:content_common',
277             '../ipc/ipc.gyp:ipc',
278             '../net/net.gyp:net',
279             'autofill_content_browser',
280             'autofill_content_common',
281             'autofill_core_common',
282             'keyed_service_content',
283             'password_manager_core_browser',
284             'password_manager_content_common',
285           ],
286           'include_dirs': [
287             '..',
288           ],
289           'sources': [
290             # Note: sources list duplicated in GN build.
291             'password_manager/content/browser/bad_message.cc',
292             'password_manager/content/browser/bad_message.h',
293             'password_manager/content/browser/content_password_manager_driver.cc',
294             'password_manager/content/browser/content_password_manager_driver.h',
295             'password_manager/content/browser/content_password_manager_driver_factory.cc',
296             'password_manager/content/browser/content_password_manager_driver_factory.h',
297             'password_manager/content/browser/credential_manager_dispatcher.cc',
298             'password_manager/content/browser/credential_manager_dispatcher.h',
299             'password_manager/content/browser/password_manager_internals_service_factory.cc',
300             'password_manager/content/browser/password_manager_internals_service_factory.h',
301           ],
302         },
303       ],
304     }],
305   ],