OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 autofill_enable_sync = !is_android_webview_build | 7 autofill_enable_sync = !is_android_webview_build |
8 } else { | 8 } else { |
9 autofill_enable_sync = true | 9 autofill_enable_sync = true |
10 } | 10 } |
11 | 11 |
12 config("autofill_browser_config") { | 12 config("autofill_browser_config") { |
13 if (autofill_enable_sync) { | 13 if (autofill_enable_sync) { |
14 defines = [ "AUTOFILL_ENABLE_SYNC" ] | 14 defines = [ "AUTOFILL_ENABLE_SYNC" ] |
15 } | 15 } |
16 } | 16 } |
17 | 17 |
18 # GYP version: components/autofill.gyp:autofill_regexes | 18 # GYP version: components/autofill.gyp:autofill_regexes |
19 action("regexes") { | 19 action("regexes") { |
20 visibility = "//components/autofill/*" | 20 visibility = "//components/autofill/*" |
21 script = "//build/escape_unicode.py" | 21 script = "//build/escape_unicode.py" |
22 | 22 |
23 source_prereqs = [ | 23 inputs = [ |
24 "autofill_regex_constants.cc.utf8", | 24 "autofill_regex_constants.cc.utf8", |
25 ] | 25 ] |
26 outputs = [ | 26 outputs = [ |
27 "$target_gen_dir/autofill_regex_constants.cc", | 27 "$target_gen_dir/autofill_regex_constants.cc", |
28 ] | 28 ] |
29 | 29 |
30 args = [ "-o", rebase_path(target_gen_dir, root_build_dir) ] | 30 args = [ "-o", rebase_path(target_gen_dir, root_build_dir) ] |
31 args += rebase_path(source_prereqs, root_build_dir) | 31 args += rebase_path(inputs, root_build_dir) |
32 } | 32 } |
33 | 33 |
34 # GYP version: components/autofill.gyp:autofill_core_browser | 34 # GYP version: components/autofill.gyp:autofill_core_browser |
35 static_library("browser") { | 35 static_library("browser") { |
36 sources = [ | 36 sources = [ |
37 "address.cc", | 37 "address.cc", |
38 "address.h", | 38 "address.h", |
39 "address_field.cc", | 39 "address_field.cc", |
40 "address_field.h", | 40 "address_field.h", |
41 "address_i18n.cc", | 41 "address_i18n.cc", |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 "test_personal_data_manager.h", | 193 "test_personal_data_manager.h", |
194 ] | 194 ] |
195 | 195 |
196 deps = [ | 196 deps = [ |
197 "//components/autofill/core/browser", | 197 "//components/autofill/core/browser", |
198 "//components/autofill/core/common", | 198 "//components/autofill/core/common", |
199 "//skia", | 199 "//skia", |
200 "//testing/gtest", | 200 "//testing/gtest", |
201 ] | 201 ] |
202 } | 202 } |
OLD | NEW |