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