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 import("//build/config/android/config.gni")
7 autofill_enable_sync = !is_android_webview_build
9 autofill_enable_sync = true
12 config("autofill_browser_config") {
13 if (autofill_enable_sync) {
14 defines = [ "AUTOFILL_ENABLE_SYNC" ]
18 # GYP version: components/autofill.gyp:autofill_regexes
20 visibility = [ "//components/autofill/*" ]
21 script = "//build/escape_unicode.py"
24 "autofill_regex_constants.cc.utf8",
27 "$target_gen_dir/autofill_regex_constants.cc",
32 rebase_path(target_gen_dir, root_build_dir),
34 args += rebase_path(inputs, root_build_dir)
37 # GYP version: components/autofill.gyp:autofill_core_browser
38 static_library("browser") {
46 "autocomplete_history_manager.cc",
47 "autocomplete_history_manager.h",
49 "autofill_cc_infobar_delegate.cc",
50 "autofill_cc_infobar_delegate.h",
52 "autofill_country.cc",
54 "autofill_data_model.cc",
55 "autofill_data_model.h",
56 "autofill_download_manager.cc",
57 "autofill_download_manager.h",
59 "autofill_external_delegate.cc",
60 "autofill_external_delegate.h",
63 "autofill_ie_toolbar_import_win.cc",
64 "autofill_ie_toolbar_import_win.h",
65 "autofill_manager.cc",
67 "autofill_manager_test_delegate.h",
68 "autofill_metrics.cc",
70 "autofill_popup_delegate.h",
71 "autofill_profile.cc",
73 "autofill_regex_constants.cc.utf8",
74 "autofill_regex_constants.h",
75 "autofill_regexes.cc",
77 "autofill_scanner.cc",
79 "autofill_server_field_info.h",
80 "autofill_sync_constants.cc",
81 "autofill_sync_constants.h",
84 "autofill_xml_parser.cc",
85 "autofill_xml_parser.h",
86 "card_unmask_delegate.cc",
87 "card_unmask_delegate.h",
92 "credit_card_field.cc",
93 "credit_card_field.h",
105 "password_generator.cc",
106 "password_generator.h",
107 "personal_data_manager.cc",
108 "personal_data_manager.h",
109 "personal_data_manager_mac.mm",
110 "personal_data_manager_observer.h",
115 "phone_number_i18n.cc",
116 "phone_number_i18n.h",
124 "wallet/real_pan_wallet_client.cc",
125 "wallet/real_pan_wallet_client.h",
126 "webdata/autocomplete_syncable_service.cc",
127 "webdata/autocomplete_syncable_service.h",
128 "webdata/autofill_change.cc",
129 "webdata/autofill_change.h",
130 "webdata/autofill_entry.cc",
131 "webdata/autofill_entry.h",
132 "webdata/autofill_profile_syncable_service.cc",
133 "webdata/autofill_profile_syncable_service.h",
134 "webdata/autofill_table.cc",
135 "webdata/autofill_table.h",
136 "webdata/autofill_wallet_syncable_service.cc",
137 "webdata/autofill_wallet_syncable_service.h",
138 "webdata/autofill_webdata.h",
139 "webdata/autofill_webdata_backend.h",
140 "webdata/autofill_webdata_backend_impl.cc",
141 "webdata/autofill_webdata_backend_impl.h",
142 "webdata/autofill_webdata_service.cc",
143 "webdata/autofill_webdata_service.h",
144 "webdata/autofill_webdata_service_observer.h",
147 # Compile the generated regex file.
148 sources += get_target_outputs(":regexes")
155 "//components/autofill/core/common",
156 "//components/infobars/core",
157 "//components/keyed_service/core",
158 "//components/os_crypt",
159 "//components/pref_registry",
160 "//components/resources",
161 "//components/strings",
162 "//components/webdata/common",
167 "//third_party/fips181",
169 "//third_party/libaddressinput:util",
170 "//third_party/libphonenumber",
171 "//third_party/libjingle",
178 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
179 public_configs = [ ":autofill_browser_config" ]
181 if (autofill_enable_sync) {
185 "webdata/autocomplete_syncable_service.cc",
186 "webdata/autocomplete_syncable_service.h",
187 "webdata/autofill_profile_syncable_service.cc",
188 "webdata/autofill_profile_syncable_service.h",
189 "webdata/autofill_wallet_syncable_service.cc",
190 "webdata/autofill_wallet_syncable_service.h",
195 static_library("test_support") {
198 "autofill_test_utils.cc",
199 "autofill_test_utils.h",
200 "data_driven_test.cc",
201 "data_driven_test.h",
202 "suggestion_test_helpers.h",
203 "test_autofill_client.cc",
204 "test_autofill_client.h",
205 "test_autofill_driver.cc",
206 "test_autofill_driver.h",
207 "test_autofill_external_delegate.cc",
208 "test_autofill_external_delegate.h",
209 "test_personal_data_manager.cc",
210 "test_personal_data_manager.h",
217 "//base:prefs_test_support",
218 "//base/test:test_support",
219 "//components/autofill/core/browser",
220 "//components/autofill/core/common",
221 "//components/os_crypt",
222 "//components/pref_registry",
228 source_set("unit_tests") {
231 "address_field_unittest.cc",
232 "address_unittest.cc",
233 "autocomplete_history_manager_unittest.cc",
234 "autofill_country_unittest.cc",
235 "autofill_data_model_unittest.cc",
236 "autofill_download_manager_unittest.cc",
237 "autofill_external_delegate_unittest.cc",
238 "autofill_field_unittest.cc",
239 "autofill_ie_toolbar_import_win_unittest.cc",
240 "autofill_manager_unittest.cc",
241 "autofill_merge_unittest.cc",
242 "autofill_metrics_unittest.cc",
243 "autofill_profile_unittest.cc",
244 "autofill_regexes_unittest.cc",
245 "autofill_type_unittest.cc",
246 "autofill_xml_parser_unittest.cc",
247 "contact_info_unittest.cc",
248 "credit_card_field_unittest.cc",
249 "credit_card_unittest.cc",
250 "form_field_unittest.cc",
251 "form_structure_unittest.cc",
252 "name_field_unittest.cc",
253 "password_generator_unittest.cc",
254 "personal_data_manager_unittest.cc",
255 "phone_field_unittest.cc",
256 "phone_number_i18n_unittest.cc",
257 "phone_number_unittest.cc",
258 "validation_unittest.cc",
259 "webdata/autofill_profile_syncable_service_unittest.cc",
260 "webdata/autofill_table_unittest.cc",
261 "webdata/web_data_service_unittest.cc",
269 "//base/test:test_support",
270 "//components/autofill/core/common",
271 "//components/os_crypt",
272 "//components/resources",
273 "//components/strings",
274 "//components/webdata/common",
275 "//net:test_support",
278 "//sync:test_support_sync_api",
281 "//third_party/libphonenumber",
282 "//third_party/libjingle",