1 # Copyright 2015 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.
5 import("//build/config/android/rules.gni")
6 import("//testing/test.gni")
10 component("android") {
11 output_name = "ui_android"
13 "resources/resource_manager.cc",
14 "resources/resource_manager.h",
15 "resources/resource_manager_impl.cc",
16 "resources/resource_manager_impl.h",
17 "resources/ui_resource_android.cc",
18 "resources/ui_resource_android.h",
19 "resources/ui_resource_client_android.h",
20 "resources/ui_resource_provider.cc",
21 "resources/ui_resource_provider.h",
22 "ui_android_export.h",
23 "ui_android_jni_registrar.cc",
24 "ui_android_jni_registrar.h",
27 defines = [ "UI_ANDROID_IMPLEMENTATION" ]
35 ":ui_android_jni_headers",
39 generate_jni("ui_android_jni_headers") {
41 "java/src/org/chromium/ui/resources/ResourceManager.java",
43 jni_package = "ui_android"
46 java_cpp_enum("java_enums_srcjar") {
48 "../base/ime/text_input_type.h",
49 "../base/page_transition_types.h",
50 "../base/touch/touch_device.h",
51 "../base/window_open_disposition.h",
52 "../gfx/android/java_bitmap.h",
53 "resources/resource_manager.h",
54 "resources/system_ui_resource_type.h",
57 "org/chromium/ui/WindowOpenDisposition.java",
58 "org/chromium/ui/base/PageTransition.java",
59 "org/chromium/ui/base/HoverType.java",
60 "org/chromium/ui/base/PointerType.java",
61 "org/chromium/ui/base/ime/TextInputType.java",
62 "org/chromium/ui/gfx/BitmapFormat.java",
63 "org/chromium/ui/resources/AndroidResourceType.java",
64 "org/chromium/ui/resources/SystemUIResourceType.java",
68 java_strings_grd("ui_strings_grd") {
69 grd_file = "java/strings/android_ui_strings.grd"
71 "values-am/android_ui_strings.xml",
72 "values-ar/android_ui_strings.xml",
73 "values-bg/android_ui_strings.xml",
74 "values-ca/android_ui_strings.xml",
75 "values-cs/android_ui_strings.xml",
76 "values-da/android_ui_strings.xml",
77 "values-de/android_ui_strings.xml",
78 "values-el/android_ui_strings.xml",
79 "values/android_ui_strings.xml",
80 "values-en-rGB/android_ui_strings.xml",
81 "values-es/android_ui_strings.xml",
82 "values-es-rUS/android_ui_strings.xml",
83 "values-fa/android_ui_strings.xml",
84 "values-fi/android_ui_strings.xml",
85 "values-tl/android_ui_strings.xml",
86 "values-fr/android_ui_strings.xml",
87 "values-hi/android_ui_strings.xml",
88 "values-hr/android_ui_strings.xml",
89 "values-hu/android_ui_strings.xml",
90 "values-in/android_ui_strings.xml",
91 "values-it/android_ui_strings.xml",
92 "values-iw/android_ui_strings.xml",
93 "values-ja/android_ui_strings.xml",
94 "values-ko/android_ui_strings.xml",
95 "values-lt/android_ui_strings.xml",
96 "values-lv/android_ui_strings.xml",
97 "values-nl/android_ui_strings.xml",
98 "values-nb/android_ui_strings.xml",
99 "values-pl/android_ui_strings.xml",
100 "values-pt-rBR/android_ui_strings.xml",
101 "values-pt-rPT/android_ui_strings.xml",
102 "values-ro/android_ui_strings.xml",
103 "values-ru/android_ui_strings.xml",
104 "values-sk/android_ui_strings.xml",
105 "values-sl/android_ui_strings.xml",
106 "values-sr/android_ui_strings.xml",
107 "values-sv/android_ui_strings.xml",
108 "values-sw/android_ui_strings.xml",
109 "values-th/android_ui_strings.xml",
110 "values-tr/android_ui_strings.xml",
111 "values-uk/android_ui_strings.xml",
112 "values-vi/android_ui_strings.xml",
113 "values-zh-rCN/android_ui_strings.xml",
114 "values-zh-rTW/android_ui_strings.xml",
118 android_resources("ui_java_resources") {
119 custom_package = "org.chromium.ui"
120 resource_dirs = [ "java/res" ]
126 android_library("ui_java") {
127 DEPRECATED_java_in_dir = "java/src"
129 ":ui_java_resources",
132 srcjar_deps = [ ":java_enums_srcjar" ]
135 android_library("ui_javatests") {
136 DEPRECATED_java_in_dir = "javatests/src"
139 ":ui_java_resources",
142 "//base:base_java_test_support",
146 test("ui_android_unittests") {
148 "resources/resource_manager_impl_unittest.cc",
149 "run_all_unittests.cc",
154 "//base/test:test_support",
160 "//ui/resources:ui_test_pak",
162 apk_deps = [ ":ui_java" ]