naiveproxy/components/autofill/android/BUILD.gn

133 lines
4.1 KiB
Plaintext
Raw Normal View History

2018-12-10 05:59:24 +03:00
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
java_strings_grd("autofill_strings_grd") {
grd_file = "java/strings/autofill_strings.grd"
outputs = [
"values-am/autofill_strings.xml",
"values-ar/autofill_strings.xml",
"values-bg/autofill_strings.xml",
"values-ca/autofill_strings.xml",
"values-cs/autofill_strings.xml",
"values-da/autofill_strings.xml",
"values-de/autofill_strings.xml",
"values-el/autofill_strings.xml",
"values/autofill_strings.xml",
"values-en-rGB/autofill_strings.xml",
"values-es/autofill_strings.xml",
"values-es-rUS/autofill_strings.xml",
"values-fa/autofill_strings.xml",
"values-fi/autofill_strings.xml",
"values-tl/autofill_strings.xml",
"values-fr/autofill_strings.xml",
"values-hi/autofill_strings.xml",
"values-hr/autofill_strings.xml",
"values-hu/autofill_strings.xml",
"values-in/autofill_strings.xml",
"values-it/autofill_strings.xml",
"values-iw/autofill_strings.xml",
"values-ja/autofill_strings.xml",
"values-ko/autofill_strings.xml",
"values-lt/autofill_strings.xml",
"values-lv/autofill_strings.xml",
"values-nl/autofill_strings.xml",
"values-nb/autofill_strings.xml",
"values-pl/autofill_strings.xml",
"values-pt-rBR/autofill_strings.xml",
"values-pt-rPT/autofill_strings.xml",
"values-ro/autofill_strings.xml",
"values-ru/autofill_strings.xml",
"values-sk/autofill_strings.xml",
"values-sl/autofill_strings.xml",
"values-sr/autofill_strings.xml",
"values-sv/autofill_strings.xml",
"values-sw/autofill_strings.xml",
"values-th/autofill_strings.xml",
"values-tr/autofill_strings.xml",
"values-uk/autofill_strings.xml",
"values-vi/autofill_strings.xml",
"values-zh-rCN/autofill_strings.xml",
"values-zh-rTW/autofill_strings.xml",
]
}
android_resources("autofill_java_resources") {
custom_package = "org.chromium.components.autofill"
resource_dirs = [ "java/res" ]
deps = [
":autofill_strings_grd",
"//ui/android:ui_java_resources",
]
}
java_cpp_enum("autofill_core_browser_java_enums") {
sources = [
"../core/browser/popup_item_ids.h",
]
}
android_library("autofill_java") {
deps = [
":autofill_java_resources",
"//base:base_java",
"//content/public/android:content_java",
"//third_party/android_tools:android_support_v7_appcompat_java",
"//ui/android:ui_java",
]
java_files = [
"java/src/org/chromium/components/autofill/AutofillDelegate.java",
"java/src/org/chromium/components/autofill/AutofillDropdownAdapter.java",
"java/src/org/chromium/components/autofill/AutofillPopup.java",
"java/src/org/chromium/components/autofill/AutofillSuggestion.java",
]
srcjar_deps = [ ":autofill_core_browser_java_enums" ]
}
java_cpp_enum("autofill_core_common_java_enums") {
sources = [
"../core/common/submission_source.h",
]
}
android_library("provider_java") {
deps = [
"//base:base_java",
"//content/public/android:content_java",
"//third_party/android_tools:android_support_annotations_java",
]
java_files = [
"java/src/org/chromium/components/autofill/AutofillProvider.java",
"java/src/org/chromium/components/autofill/FormData.java",
"java/src/org/chromium/components/autofill/FormFieldData.java",
]
srcjar_deps = [ ":autofill_core_common_java_enums" ]
}
generate_jni("jni_headers") {
sources = [
"java/src/org/chromium/components/autofill/AutofillProvider.java",
"java/src/org/chromium/components/autofill/FormData.java",
"java/src/org/chromium/components/autofill/FormFieldData.java",
]
jni_package = "autofill"
}
static_library("provider") {
sources = [
"autofill_provider_android.cc",
"autofill_provider_android.h",
"form_data_android.cc",
"form_data_android.h",
"form_field_data_android.cc",
"form_field_data_android.h",
]
deps = [
":jni_headers",
"//components/autofill/core/browser:browser",
"//content/public/browser",
]
}