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