Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / android / BUILD.gn
blob875815d1305d8f91715c810843480a898071a5ff
1 import("//build/config/android/rules.gni")
3 assert(is_android)
5 java_cpp_template("window_open_disposition_srcjar") {
6   package_name = "org/chromium/ui"
7   sources = [
8     "java/WindowOpenDisposition.template",
9   ]
10   inputs = [
11     "../base/window_open_disposition_list.h"
12   ]
15 java_cpp_template("bitmap_format_srcjar") {
16   package_name = "org/chromium/ui/gfx"
17   sources = [
18     "java/BitmapFormat.template",
19   ]
20   inputs = [
21     "../gfx/android/bitmap_config_list.h"
22   ]
25 java_strings_grd("ui_strings_grd") {
26   grd_file = "java/strings/android_ui_strings.grd"
27   outputs = [
28     "values-am/android_ui_strings.xml",
29     "values-ar/android_ui_strings.xml",
30     "values-bg/android_ui_strings.xml",
31     "values-ca/android_ui_strings.xml",
32     "values-cs/android_ui_strings.xml",
33     "values-da/android_ui_strings.xml",
34     "values-de/android_ui_strings.xml",
35     "values-el/android_ui_strings.xml",
36     "values/android_ui_strings.xml",
37     "values-en-rGB/android_ui_strings.xml",
38     "values-es/android_ui_strings.xml",
39     "values-es-rUS/android_ui_strings.xml",
40     "values-fa/android_ui_strings.xml",
41     "values-fi/android_ui_strings.xml",
42     "values-tl/android_ui_strings.xml",
43     "values-fr/android_ui_strings.xml",
44     "values-hi/android_ui_strings.xml",
45     "values-hr/android_ui_strings.xml",
46     "values-hu/android_ui_strings.xml",
47     "values-in/android_ui_strings.xml",
48     "values-it/android_ui_strings.xml",
49     "values-iw/android_ui_strings.xml",
50     "values-ja/android_ui_strings.xml",
51     "values-ko/android_ui_strings.xml",
52     "values-lt/android_ui_strings.xml",
53     "values-lv/android_ui_strings.xml",
54     "values-nl/android_ui_strings.xml",
55     "values-nb/android_ui_strings.xml",
56     "values-pl/android_ui_strings.xml",
57     "values-pt-rBR/android_ui_strings.xml",
58     "values-pt-rPT/android_ui_strings.xml",
59     "values-ro/android_ui_strings.xml",
60     "values-ru/android_ui_strings.xml",
61     "values-sk/android_ui_strings.xml",
62     "values-sl/android_ui_strings.xml",
63     "values-sr/android_ui_strings.xml",
64     "values-sv/android_ui_strings.xml",
65     "values-sw/android_ui_strings.xml",
66     "values-th/android_ui_strings.xml",
67     "values-tr/android_ui_strings.xml",
68     "values-uk/android_ui_strings.xml",
69     "values-vi/android_ui_strings.xml",
70     "values-zh-rCN/android_ui_strings.xml",
71     "values-zh-rTW/android_ui_strings.xml",
72   ]
75 android_resources("ui_java_res") {
76   custom_package = "org.chromium.ui"
77   resource_dirs = [
78     "java/res"
79   ]
80   deps = [
81     ":ui_strings_grd",
82   ]
85 android_library("ui_java") {
86   java_files = [
87     "java/src/org/chromium/ui/ColorPickerAdvanced.java",
88     "java/src/org/chromium/ui/ColorPickerAdvancedComponent.java",
89     "java/src/org/chromium/ui/ColorPickerDialog.java",
90     "java/src/org/chromium/ui/ColorPickerMoreButton.java",
91     "java/src/org/chromium/ui/ColorPickerSimple.java",
92     "java/src/org/chromium/ui/ColorSuggestion.java",
93     "java/src/org/chromium/ui/ColorSuggestionListAdapter.java",
94     "java/src/org/chromium/ui/DropdownAdapter.java",
95     "java/src/org/chromium/ui/DropdownDividerDrawable.java",
96     "java/src/org/chromium/ui/DropdownItem.java",
97     "java/src/org/chromium/ui/DropdownPopupWindow.java",
98     "java/src/org/chromium/ui/OnColorChangedListener.java",
99     "java/src/org/chromium/ui/UiUtils.java",
100     "java/src/org/chromium/ui/VSyncMonitor.java",
101     "java/src/org/chromium/ui/autofill/AutofillPopup.java",
102     "java/src/org/chromium/ui/autofill/AutofillSuggestion.java",
103     "java/src/org/chromium/ui/base/ActivityWindowAndroid.java",
104     "java/src/org/chromium/ui/base/Clipboard.java",
105     "java/src/org/chromium/ui/base/DeviceFormFactor.java",
106     "java/src/org/chromium/ui/base/LocalizationUtils.java",
107     "java/src/org/chromium/ui/base/ResourceBundle.java",
108     "java/src/org/chromium/ui/base/SelectFileDialog.java",
109     "java/src/org/chromium/ui/base/TouchDevice.java",
110     "java/src/org/chromium/ui/base/ViewAndroid.java",
111     "java/src/org/chromium/ui/base/ViewAndroidDelegate.java",
112     "java/src/org/chromium/ui/base/WindowAndroid.java",
113     "java/src/org/chromium/ui/gfx/BitmapHelper.java",
114     "java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
115     "java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
116     "java/src/org/chromium/ui/gl/SurfaceTextureListener.java",
117     "java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java",
118   ]
119   deps = [
120     ":ui_java_res",
121     "//base:base_java",
122   ]
123   srcjar_deps = [
124     ":window_open_disposition_srcjar",
125     ":bitmap_format_srcjar",
126   ]