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