Enable Enterprise enrollment on desktop builds.
[chromium-blink-merge.git] / components / password_manager.gypi
blob82ba89e3f5b8134ec0eeb5dcc629ad3daac872dd
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         '../base/base.gyp:base',
12         '../net/net.gyp:net',
13         '../sql/sql.gyp:sql',
14         '../url/url.gyp:url_lib',
15         'autofill_core_common',
16         'os_crypt',
17         'password_manager_core_common',
18       ],
19       'include_dirs': [
20         '..',
21       ],
22       'sources': [
23         'password_manager/core/browser/browser_save_password_progress_logger.cc',
24         'password_manager/core/browser/browser_save_password_progress_logger.h',
25         'password_manager/core/browser/login_database.cc',
26         'password_manager/core/browser/login_database.h',
27         'password_manager/core/browser/login_database_mac.cc',
28         'password_manager/core/browser/login_database_posix.cc',
29         'password_manager/core/browser/login_database_win.cc',
30         'password_manager/core/browser/login_model.h',
31         'password_manager/core/browser/password_autofill_manager.cc',
32         'password_manager/core/browser/password_autofill_manager.h',
33         'password_manager/core/browser/password_form_manager.cc',
34         'password_manager/core/browser/password_form_manager.h',
35         'password_manager/core/browser/password_generation_manager.cc',
36         'password_manager/core/browser/password_generation_manager.h',
37         'password_manager/core/browser/password_manager.cc',
38         'password_manager/core/browser/password_manager.h',
39         'password_manager/core/browser/password_manager_client.cc',
40         'password_manager/core/browser/password_manager_client.h',
41         'password_manager/core/browser/password_manager_driver.h',
42         'password_manager/core/browser/password_manager_logger.h',
43         'password_manager/core/browser/password_manager_metrics_util.cc',
44         'password_manager/core/browser/password_manager_metrics_util.h',
45         'password_manager/core/browser/password_store.cc',
46         'password_manager/core/browser/password_store.h',
47         'password_manager/core/browser/password_store_change.h',
48         'password_manager/core/browser/password_store_consumer.cc',
49         'password_manager/core/browser/password_store_consumer.h',
50         'password_manager/core/browser/password_store_default.cc',
51         'password_manager/core/browser/password_store_default.h',
52         'password_manager/core/browser/psl_matching_helper.cc',
53         'password_manager/core/browser/psl_matching_helper.h',
54       ],
55       'variables': {
56         'conditions': [
57           ['android_webview_build == 1', {
58             # Android WebView doesn't support sync.
59             'password_manager_enable_sync%': 0,
60           }, {
61             'password_manager_enable_sync%': 1,
62           }],
63         ],
64       },
65       'conditions': [
66         ['OS=="mac"', {
67           'sources!': [
68             # TODO(blundell): Provide the iOS login DB implementation and then
69             # also exclude the POSIX one from iOS. http://crbug.com/341429
70             'password_manager/core/browser/login_database_posix.cc',
71           ],
72         }],
73         ['password_manager_enable_sync == 1', {
74           'defines': [
75             'PASSWORD_MANAGER_ENABLE_SYNC',
76           ],
77           'dependencies': [
78             '../sync/sync.gyp:sync',
79           ],
80           'direct_dependent_settings': {
81             'defines': [
82               'PASSWORD_MANAGER_ENABLE_SYNC',
83             ],
84           },
85           'sources': [
86             'password_manager/core/browser/password_syncable_service.cc',
87             'password_manager/core/browser/password_syncable_service.h',
88           ],
89         }],
90       ],
91       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
92       'msvs_disabled_warnings': [ 4267, ],
93     },
94     {
95       'target_name': 'password_manager_core_browser_test_support',
96       'type': 'static_library',
97       'dependencies': [
98         'autofill_core_common',
99         '../base/base.gyp:base',
100         '../testing/gmock.gyp:gmock',
101         '../testing/gtest.gyp:gtest',
102       ],
103       'include_dirs': [
104         '..',
105       ],
106       'sources': [
107         'password_manager/core/browser/mock_password_manager_driver.cc',
108         'password_manager/core/browser/mock_password_manager_driver.h',
109         'password_manager/core/browser/mock_password_store.cc',
110         'password_manager/core/browser/mock_password_store.h',
111         'password_manager/core/browser/password_form_data.cc',
112         'password_manager/core/browser/password_form_data.h',
113         'password_manager/core/browser/stub_password_manager_client.cc',
114         'password_manager/core/browser/stub_password_manager_client.h',
115         'password_manager/core/browser/test_password_store.cc',
116         'password_manager/core/browser/test_password_store.h',
117       ],
118     },
119     {
120       'target_name': 'password_manager_core_common',
121       'type': 'static_library',
122       'dependencies': [
123       ],
124       'include_dirs': [
125         '..',
126       ],
127       'sources': [
128         'password_manager/core/common/password_manager_pref_names.cc',
129         'password_manager/core/common/password_manager_pref_names.h',
130         'password_manager/core/common/password_manager_switches.cc',
131         'password_manager/core/common/password_manager_switches.h',
132       ],
133     },
134   ],
135   'conditions': [
136     ['OS != "ios"', {
137       'targets': [
138         {
139           'target_name': 'password_manager_content_browser',
140           'type': 'static_library',
141           'dependencies': [
142             'autofill_content_browser',
143             'autofill_content_common',
144             'autofill_core_common',
145             'password_manager_core_browser',
146             '../base/base.gyp:base',
147             '../content/content.gyp:content_browser',
148             '../content/content.gyp:content_common',
149             '../ipc/ipc.gyp:ipc',
150             '../net/net.gyp:net',
151           ],
152           'include_dirs': [
153             '..',
154           ],
155           'sources': [
156             'password_manager/content/browser/content_password_manager_driver.cc',
157             'password_manager/content/browser/content_password_manager_driver.h',
158           ],
159         },
160       ],
161     }],
162   ],