Revert 253521 "Introduce telemetry.web_components and a simple c..."
[chromium-blink-merge.git] / components / password_manager.gypi
blobb6bbe7f76c6f895e03bf92ac05e6db966b484d37
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       'target_name': 'password_manager_core_browser',
9       'type': 'static_library',
10       'dependencies': [
11         'autofill_core_common',
12         'encryptor',
13         'password_manager_core_common',
14         '../base/base.gyp:base',
15         '../net/net.gyp:net',
16         '../sql/sql.gyp:sql',
17         '../url/url.gyp:url_lib',
18       ],
19       'include_dirs': [
20         '..',
21       ],
22       'sources': [
23         'password_manager/core/browser/login_database.cc',
24         'password_manager/core/browser/login_database.h',
25         'password_manager/core/browser/login_database_mac.cc',
26         'password_manager/core/browser/login_database_posix.cc',
27         'password_manager/core/browser/login_database_win.cc',
28         'password_manager/core/browser/login_model.h',
29         'password_manager/core/browser/password_manager_metrics_util.cc',
30         'password_manager/core/browser/password_manager_metrics_util.h',
31         'password_manager/core/browser/password_store.cc',
32         'password_manager/core/browser/password_store.h',
33         'password_manager/core/browser/password_store_change.h',
34         'password_manager/core/browser/password_store_consumer.cc',
35         'password_manager/core/browser/password_store_consumer.h',
36         'password_manager/core/browser/password_store_default.cc',
37         'password_manager/core/browser/password_store_default.h',
38         'password_manager/core/browser/psl_matching_helper.cc',
39         'password_manager/core/browser/psl_matching_helper.h',
40       ],
41       'variables': {
42         'conditions': [
43           ['android_webview_build == 1', {
44             # Android WebView doesn't support sync.
45             'password_manager_enable_sync%': 0,
46           }, {
47             'password_manager_enable_sync%': 1,
48           }],
49         ],
50       },
51       'conditions': [
52         ['OS=="mac"', {
53           'sources!': [
54             # TODO(blundell): Provide the iOS login DB implementation and then
55             # also exclude the POSIX one from iOS. http://crbug.com/341429
56             'password_manager/core/browser/login_database_posix.cc',
57           ],
58         }],
59         ['password_manager_enable_sync == 1', {
60           'defines': [
61             'PASSWORD_MANAGER_ENABLE_SYNC',
62           ],
63           'dependencies': [
64             '../sync/sync.gyp:sync',
65           ],
66           'direct_dependent_settings': {
67             'defines': [
68               'PASSWORD_MANAGER_ENABLE_SYNC',
69             ],
70           },
71           'sources': [
72             'password_manager/core/browser/password_syncable_service.cc',
73             'password_manager/core/browser/password_syncable_service.h',
74           ],
75         }],
76       ],
77       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
78       'msvs_disabled_warnings': [ 4267, ],
79     },
80     {
81       'target_name': 'password_manager_core_browser_test_support',
82       'type': 'static_library',
83       'dependencies': [
84         'autofill_core_common',
85         '../base/base.gyp:base',
86         '../testing/gmock.gyp:gmock',
87         '../testing/gtest.gyp:gtest',
88       ],
89       'include_dirs': [
90         '..',
91       ],
92       'sources': [
93         'password_manager/core/browser/mock_password_store.cc',
94         'password_manager/core/browser/mock_password_store.h',
95         'password_manager/core/browser/password_form_data.cc',
96         'password_manager/core/browser/password_form_data.h',
97         'password_manager/core/browser/test_password_store.cc',
98         'password_manager/core/browser/test_password_store.h',
99       ],
100     },
101     {
102       'target_name': 'password_manager_core_common',
103       'type': 'static_library',
104       'dependencies': [
105       ],
106       'include_dirs': [
107         '..',
108       ],
109       'sources': [
110         'password_manager/core/common/password_manager_pref_names.cc',
111         'password_manager/core/common/password_manager_pref_names.h',
112         'password_manager/core/common/password_manager_switches.cc',
113         'password_manager/core/common/password_manager_switches.h',
114       ],
115     },
116   ],