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/affiliation_backend.cc',
31 'password_manager/core/browser/affiliation_backend.h',
32 'password_manager/core/browser/affiliation_database.cc',
33 'password_manager/core/browser/affiliation_database.h',
34 'password_manager/core/browser/affiliation_fetch_throttler.cc',
35 'password_manager/core/browser/affiliation_fetch_throttler.h',
36 'password_manager/core/browser/affiliation_fetch_throttler_delegate.h',
37 'password_manager/core/browser/affiliation_fetcher.cc',
38 'password_manager/core/browser/affiliation_fetcher.h',
39 'password_manager/core/browser/affiliation_fetcher_delegate.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/facet_manager.cc',
49 'password_manager/core/browser/facet_manager.h',
50 'password_manager/core/browser/facet_manager_host.h',
51 'password_manager/core/browser/import/csv_reader.cc',
52 'password_manager/core/browser/import/csv_reader.h',
53 'password_manager/core/browser/log_receiver.h',
54 'password_manager/core/browser/log_router.cc',
55 'password_manager/core/browser/log_router.h',
56 'password_manager/core/browser/login_database.cc',
57 'password_manager/core/browser/login_database.h',
58 'password_manager/core/browser/login_database_mac.cc',
59 'password_manager/core/browser/login_database_posix.cc',
60 'password_manager/core/browser/login_database_win.cc',
61 'password_manager/core/browser/login_model.h',
62 'password_manager/core/browser/password_autofill_manager.cc',
63 'password_manager/core/browser/password_autofill_manager.h',
64 'password_manager/core/browser/password_form_manager.cc',
65 'password_manager/core/browser/password_form_manager.h',
66 'password_manager/core/browser/password_generation_manager.cc',
67 'password_manager/core/browser/password_generation_manager.h',
68 'password_manager/core/browser/password_manager.cc',
69 'password_manager/core/browser/password_manager.h',
70 'password_manager/core/browser/password_manager_client.cc',
71 'password_manager/core/browser/password_manager_client.h',
72 'password_manager/core/browser/password_manager_driver.h',
73 'password_manager/core/browser/password_manager_internals_service.cc',
74 'password_manager/core/browser/password_manager_internals_service.h',
75 'password_manager/core/browser/password_manager_metrics_util.cc',
76 'password_manager/core/browser/password_manager_metrics_util.h',
77 'password_manager/core/browser/password_manager_url_collection_experiment.cc',
78 'password_manager/core/browser/password_manager_url_collection_experiment.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.cc',
202 'password_manager/core/common/password_manager_ui.h',
210 # GN version: //components/password_manager/content/common
211 'target_name': 'password_manager_content_common',
212 'type': 'static_library',
214 '../base/base.gyp:base',
215 '../content/content.gyp:content_common',
216 '../ipc/ipc.gyp:ipc',
217 '../third_party/WebKit/public/blink.gyp:blink_minimal',
218 'password_manager_core_common',
224 'password_manager/content/common/credential_manager_message_generator.cc',
225 'password_manager/content/common/credential_manager_message_generator.h',
226 'password_manager/content/common/credential_manager_messages.h',
227 'password_manager/content/common/credential_manager_types.cc',
228 'password_manager/content/common/credential_manager_types.h',
232 # GN version: //components/password_manager/content/renderer
233 'target_name': 'password_manager_content_renderer',
234 'type': 'static_library',
236 '../base/base.gyp:base',
237 '../content/content.gyp:content_common',
238 '../ipc/ipc.gyp:ipc',
239 '../third_party/WebKit/public/blink.gyp:blink',
240 'password_manager_core_common',
241 'password_manager_content_common',
247 'password_manager/content/renderer/credential_manager_client.cc',
248 'password_manager/content/renderer/credential_manager_client.h',
252 # GN version: //components/password_manager/content/browser
253 'target_name': 'password_manager_content_browser',
254 'type': 'static_library',
256 '../base/base.gyp:base',
257 '../content/content.gyp:content_browser',
258 '../content/content.gyp:content_common',
259 '../ipc/ipc.gyp:ipc',
260 '../net/net.gyp:net',
261 'autofill_content_browser',
262 'autofill_content_common',
263 'autofill_core_common',
264 'keyed_service_content',
265 'password_manager_core_browser',
266 'password_manager_content_common',
272 # Note: sources list duplicated in GN build.
273 'password_manager/content/browser/content_password_manager_driver.cc',
274 'password_manager/content/browser/content_password_manager_driver.h',
275 'password_manager/content/browser/content_password_manager_driver_factory.cc',
276 'password_manager/content/browser/content_password_manager_driver_factory.h',
277 'password_manager/content/browser/credential_manager_dispatcher.cc',
278 'password_manager/content/browser/credential_manager_dispatcher.h',
279 'password_manager/content/browser/credential_manager_password_form_manager.cc',
280 'password_manager/content/browser/credential_manager_password_form_manager.h',
281 'password_manager/content/browser/password_manager_internals_service_factory.cc',
282 'password_manager/content/browser/password_manager_internals_service_factory.h',