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.
8 # GN version: //components/password_manager/core/browser
9 'target_name': 'password_manager_core_browser',
10 'type': 'static_library',
12 '../base/base.gyp:base',
15 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
16 '../url/url.gyp:url_lib',
17 'autofill_core_common',
18 'components_strings.gyp:components_strings',
21 '../third_party/re2/re2.gyp:re2',
22 'password_manager_core_common',
23 'password_manager_core_browser_proto',
29 # Note: sources list duplicated in GN build.
30 'password_manager/core/browser/affiliated_match_helper.cc',
31 'password_manager/core/browser/affiliated_match_helper.h',
32 'password_manager/core/browser/affiliation_backend.cc',
33 'password_manager/core/browser/affiliation_backend.h',
34 'password_manager/core/browser/affiliation_database.cc',
35 'password_manager/core/browser/affiliation_database.h',
36 'password_manager/core/browser/affiliation_fetch_throttler.cc',
37 'password_manager/core/browser/affiliation_fetch_throttler.h',
38 'password_manager/core/browser/affiliation_fetch_throttler_delegate.h',
39 'password_manager/core/browser/affiliation_fetcher.cc',
40 'password_manager/core/browser/affiliation_fetcher.h',
41 'password_manager/core/browser/affiliation_fetcher_delegate.h',
42 'password_manager/core/browser/affiliation_service.cc',
43 'password_manager/core/browser/affiliation_service.h',
44 'password_manager/core/browser/affiliation_utils.cc',
45 'password_manager/core/browser/affiliation_utils.h',
46 'password_manager/core/browser/browser_save_password_progress_logger.cc',
47 'password_manager/core/browser/browser_save_password_progress_logger.h',
48 'password_manager/core/browser/export/csv_writer.cc',
49 'password_manager/core/browser/export/csv_writer.h',
50 'password_manager/core/browser/facet_manager.cc',
51 'password_manager/core/browser/facet_manager.h',
52 'password_manager/core/browser/facet_manager_host.h',
53 'password_manager/core/browser/import/csv_reader.cc',
54 'password_manager/core/browser/import/csv_reader.h',
55 'password_manager/core/browser/log_receiver.h',
56 'password_manager/core/browser/log_router.cc',
57 'password_manager/core/browser/log_router.h',
58 'password_manager/core/browser/login_database.cc',
59 'password_manager/core/browser/login_database.h',
60 'password_manager/core/browser/login_database_mac.cc',
61 'password_manager/core/browser/login_database_posix.cc',
62 'password_manager/core/browser/login_database_win.cc',
63 'password_manager/core/browser/login_model.h',
64 'password_manager/core/browser/password_autofill_manager.cc',
65 'password_manager/core/browser/password_autofill_manager.h',
66 'password_manager/core/browser/password_form_manager.cc',
67 'password_manager/core/browser/password_form_manager.h',
68 'password_manager/core/browser/password_generation_manager.cc',
69 'password_manager/core/browser/password_generation_manager.h',
70 'password_manager/core/browser/password_manager.cc',
71 'password_manager/core/browser/password_manager.h',
72 'password_manager/core/browser/password_manager_client.cc',
73 'password_manager/core/browser/password_manager_client.h',
74 'password_manager/core/browser/password_manager_driver.h',
75 'password_manager/core/browser/password_manager_internals_service.cc',
76 'password_manager/core/browser/password_manager_internals_service.h',
77 'password_manager/core/browser/password_manager_metrics_util.cc',
78 'password_manager/core/browser/password_manager_metrics_util.h',
79 'password_manager/core/browser/password_store.cc',
80 'password_manager/core/browser/password_store.h',
81 'password_manager/core/browser/password_store_change.h',
82 'password_manager/core/browser/password_store_consumer.cc',
83 'password_manager/core/browser/password_store_consumer.h',
84 'password_manager/core/browser/password_store_default.cc',
85 'password_manager/core/browser/password_store_default.h',
86 'password_manager/core/browser/password_store_sync.cc',
87 'password_manager/core/browser/password_store_sync.h',
88 'password_manager/core/browser/psl_matching_helper.cc',
89 'password_manager/core/browser/psl_matching_helper.h',
90 'password_manager/core/browser/test_affiliation_fetcher_factory.h',
91 'password_manager/core/browser/webdata/logins_table.cc',
92 'password_manager/core/browser/webdata/logins_table.h',
93 'password_manager/core/browser/webdata/logins_table_win.cc',
94 'password_manager/core/browser/webdata/password_web_data_service_win.cc',
95 'password_manager/core/browser/webdata/password_web_data_service_win.h',
99 ['android_webview_build == 1', {
100 # Android WebView doesn't support sync.
101 'password_manager_enable_sync%': 0,
103 'password_manager_enable_sync%': 1,
110 # TODO(blundell): Provide the iOS login DB implementation and then
111 # also exclude the POSIX one from iOS. http://crbug.com/341429
112 'password_manager/core/browser/login_database_posix.cc',
115 ['password_manager_enable_sync == 1', {
117 'PASSWORD_MANAGER_ENABLE_SYNC',
120 '../sync/sync.gyp:sync',
122 'direct_dependent_settings': {
124 'PASSWORD_MANAGER_ENABLE_SYNC',
128 # Note: sources list duplicated in GN build.
129 'password_manager/core/browser/password_syncable_service.cc',
130 'password_manager/core/browser/password_syncable_service.h',
134 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
135 'msvs_disabled_warnings': [ 4267, ],
138 # GN version: //components/password_manager/core/browser:proto
139 'target_name': 'password_manager_core_browser_proto',
140 'type': 'static_library',
142 'password_manager/core/browser/affiliation_api.proto'
145 'proto_in_dir': 'password_manager/core/browser',
146 'proto_out_dir': 'components/password_manager/core/browser',
148 'includes': ['../build/protoc.gypi'],
151 # GN version: //components/password_manager/core/browser:test_support
152 'target_name': 'password_manager_core_browser_test_support',
153 'type': 'static_library',
155 'autofill_core_common',
156 '../base/base.gyp:base',
157 '../testing/gmock.gyp:gmock',
158 '../testing/gtest.gyp:gtest',
164 # Note: sources list duplicated in GN build.
165 'password_manager/core/browser/fake_affiliation_api.cc',
166 'password_manager/core/browser/fake_affiliation_api.h',
167 'password_manager/core/browser/fake_affiliation_fetcher.cc',
168 'password_manager/core/browser/fake_affiliation_fetcher.h',
169 'password_manager/core/browser/mock_affiliation_consumer.cc',
170 'password_manager/core/browser/mock_affiliation_consumer.h',
171 'password_manager/core/browser/mock_password_store.cc',
172 'password_manager/core/browser/mock_password_store.h',
173 'password_manager/core/browser/password_manager_test_utils.cc',
174 'password_manager/core/browser/password_manager_test_utils.h',
175 'password_manager/core/browser/stub_password_manager_client.cc',
176 'password_manager/core/browser/stub_password_manager_client.h',
177 'password_manager/core/browser/stub_password_manager_driver.cc',
178 'password_manager/core/browser/stub_password_manager_driver.h',
179 'password_manager/core/browser/test_password_store.cc',
180 'password_manager/core/browser/test_password_store.h',
184 # GN version: //components/password_manager/core/common
185 'target_name': 'password_manager_core_common',
186 'type': 'static_library',
188 '../base/base.gyp:base',
194 # Note: sources list duplicated in GN build.
195 'password_manager/core/common/experiments.cc',
196 'password_manager/core/common/experiments.h',
197 'password_manager/core/common/password_manager_pref_names.cc',
198 'password_manager/core/common/password_manager_pref_names.h',
199 'password_manager/core/common/password_manager_switches.cc',
200 'password_manager/core/common/password_manager_switches.h',
201 'password_manager/core/common/password_manager_ui.h',
209 # GN version: //components/password_manager/content/common
210 'target_name': 'password_manager_content_common',
211 'type': 'static_library',
213 '../base/base.gyp:base',
214 '../content/content.gyp:content_common',
215 '../ipc/ipc.gyp:ipc',
216 '../third_party/WebKit/public/blink.gyp:blink_minimal',
217 'password_manager_core_common',
223 'password_manager/content/common/credential_manager_message_generator.cc',
224 'password_manager/content/common/credential_manager_message_generator.h',
225 'password_manager/content/common/credential_manager_messages.h',
226 'password_manager/content/common/credential_manager_types.cc',
227 'password_manager/content/common/credential_manager_types.h',
231 # GN version: //components/password_manager/content/renderer
232 'target_name': 'password_manager_content_renderer',
233 'type': 'static_library',
235 '../base/base.gyp:base',
236 '../content/content.gyp:content_common',
237 '../ipc/ipc.gyp:ipc',
238 '../third_party/WebKit/public/blink.gyp:blink',
239 'password_manager_core_common',
240 'password_manager_content_common',
246 'password_manager/content/renderer/credential_manager_client.cc',
247 'password_manager/content/renderer/credential_manager_client.h',
251 # GN version: //components/password_manager/content/browser
252 'target_name': 'password_manager_content_browser',
253 'type': 'static_library',
255 '../base/base.gyp:base',
256 '../content/content.gyp:content_browser',
257 '../content/content.gyp:content_common',
258 '../ipc/ipc.gyp:ipc',
259 '../net/net.gyp:net',
260 'autofill_content_browser',
261 'autofill_content_common',
262 'autofill_core_common',
263 'keyed_service_content',
264 'password_manager_core_browser',
265 'password_manager_content_common',
271 # Note: sources list duplicated in GN build.
272 'password_manager/content/browser/content_password_manager_driver.cc',
273 'password_manager/content/browser/content_password_manager_driver.h',
274 'password_manager/content/browser/content_password_manager_driver_factory.cc',
275 'password_manager/content/browser/content_password_manager_driver_factory.h',
276 'password_manager/content/browser/credential_manager_dispatcher.cc',
277 'password_manager/content/browser/credential_manager_dispatcher.h',
278 'password_manager/content/browser/credential_manager_password_form_manager.cc',
279 'password_manager/content/browser/credential_manager_password_form_manager.h',
280 'password_manager/content/browser/password_manager_internals_service_factory.cc',
281 'password_manager/content/browser/password_manager_internals_service_factory.h',