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