naiveproxy/components/web_contents_delegate_android/BUILD.gn
2018-01-28 13:32:06 -05:00

115 lines
5.1 KiB
Plaintext

# Copyright 2014 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("web_contents_delegate_android_strings_grd") {
grd_file = "java/strings/web_contents_delegate_android_strings.grd"
outputs = [
"values-am/web_contents_delegate_android_strings.xml",
"values-ar/web_contents_delegate_android_strings.xml",
"values-bg/web_contents_delegate_android_strings.xml",
"values-ca/web_contents_delegate_android_strings.xml",
"values-cs/web_contents_delegate_android_strings.xml",
"values-da/web_contents_delegate_android_strings.xml",
"values-de/web_contents_delegate_android_strings.xml",
"values-el/web_contents_delegate_android_strings.xml",
"values/web_contents_delegate_android_strings.xml",
"values-en-rGB/web_contents_delegate_android_strings.xml",
"values-es/web_contents_delegate_android_strings.xml",
"values-es-rUS/web_contents_delegate_android_strings.xml",
"values-fa/web_contents_delegate_android_strings.xml",
"values-fi/web_contents_delegate_android_strings.xml",
"values-tl/web_contents_delegate_android_strings.xml",
"values-fr/web_contents_delegate_android_strings.xml",
"values-hi/web_contents_delegate_android_strings.xml",
"values-hr/web_contents_delegate_android_strings.xml",
"values-hu/web_contents_delegate_android_strings.xml",
"values-in/web_contents_delegate_android_strings.xml",
"values-it/web_contents_delegate_android_strings.xml",
"values-iw/web_contents_delegate_android_strings.xml",
"values-ja/web_contents_delegate_android_strings.xml",
"values-ko/web_contents_delegate_android_strings.xml",
"values-lt/web_contents_delegate_android_strings.xml",
"values-lv/web_contents_delegate_android_strings.xml",
"values-nl/web_contents_delegate_android_strings.xml",
"values-nb/web_contents_delegate_android_strings.xml",
"values-pl/web_contents_delegate_android_strings.xml",
"values-pt-rBR/web_contents_delegate_android_strings.xml",
"values-pt-rPT/web_contents_delegate_android_strings.xml",
"values-ro/web_contents_delegate_android_strings.xml",
"values-ru/web_contents_delegate_android_strings.xml",
"values-sk/web_contents_delegate_android_strings.xml",
"values-sl/web_contents_delegate_android_strings.xml",
"values-sr/web_contents_delegate_android_strings.xml",
"values-sv/web_contents_delegate_android_strings.xml",
"values-sw/web_contents_delegate_android_strings.xml",
"values-th/web_contents_delegate_android_strings.xml",
"values-tr/web_contents_delegate_android_strings.xml",
"values-uk/web_contents_delegate_android_strings.xml",
"values-vi/web_contents_delegate_android_strings.xml",
"values-zh-rCN/web_contents_delegate_android_strings.xml",
"values-zh-rTW/web_contents_delegate_android_strings.xml",
]
}
static_library("web_contents_delegate_android") {
sources = [
"color_chooser_android.cc",
"color_chooser_android.h",
"web_contents_delegate_android.cc",
"web_contents_delegate_android.h",
]
deps = [
":web_contents_delegate_android_jni_headers",
"//base",
"//content/public/browser",
"//content/public/common",
"//net",
"//skia",
"//ui/android",
"//ui/base",
"//ui/gfx",
"//ui/gfx/geometry",
]
}
android_resources("web_contents_delegate_android_java_resources") {
custom_package = "org.chromium.components.web_contents_delegate_android"
resource_dirs = [ "java/res" ]
deps = [
":web_contents_delegate_android_strings_grd",
]
}
android_library("web_contents_delegate_android_java") {
deps = [
":web_contents_delegate_android_java_resources",
"//base:base_java",
"//content/public/android:content_java",
"//ui/android:ui_java",
]
java_files = [
"java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java",
"java/src/org/chromium/components/web_contents_delegate_android/ColorPickerAdvanced.java",
"java/src/org/chromium/components/web_contents_delegate_android/ColorPickerAdvancedComponent.java",
"java/src/org/chromium/components/web_contents_delegate_android/ColorPickerDialog.java",
"java/src/org/chromium/components/web_contents_delegate_android/ColorPickerMoreButton.java",
"java/src/org/chromium/components/web_contents_delegate_android/ColorPickerSimple.java",
"java/src/org/chromium/components/web_contents_delegate_android/ColorSuggestion.java",
"java/src/org/chromium/components/web_contents_delegate_android/ColorSuggestionListAdapter.java",
"java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java",
"java/src/org/chromium/components/web_contents_delegate_android/OnColorChangedListener.java",
]
}
generate_jni("web_contents_delegate_android_jni_headers") {
sources = [
"java/src/org/chromium/components/web_contents_delegate_android/ColorChooserAndroid.java",
"java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java",
]
jni_package = "web_contents_delegate_android"
}