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