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
3 # found in the LICENSE file.
5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni")
8 content_jni_gypi_values = exec_script("//build/gypi_to_gn.py",
9 [ rebase_path("../../content_jni.gypi") ],
11 [ "../../content_jni.gypi" ])
13 android_aidl("common_aidl") {
14 interface_file = "java/src/org/chromium/content/common/common.aidl"
15 import_include = "java/src"
17 "java/src/org/chromium/content/common/IChildProcessCallback.aidl",
18 "java/src/org/chromium/content/common/IChildProcessService.aidl",
22 android_resources("content_java_resources") {
24 ":content_strings_grd",
25 "//ui/android:ui_java_resources",
27 custom_package = "org.chromium.content"
28 resource_dirs = [ "java/res" ]
31 android_library("content_java") {
33 ":content_java_resources",
35 "//device/battery/android:battery_monitor_android",
36 "//device/battery:mojo_bindings_java",
37 "//device/bluetooth:java",
38 "//device/vibration/android:vibration_manager_android",
39 "//device/vibration:mojo_bindings_java",
40 "//media/base/android:media_java",
41 "//media/midi:midi_java",
42 "//mojo/android:system_java",
43 "//net/android:net_java",
44 "//third_party/android_tools:android_support_v13_java",
45 "//third_party/mojo/src/mojo/public/java:bindings",
46 "//third_party/mojo/src/mojo/public/java:system",
47 "//ui/accessibility:ui_accessibility_java",
48 "//ui/android:ui_java",
49 "//third_party/jsr-305:jsr_305_javalib",
50 "//third_party/WebKit/public:blink_headers_java",
52 #"//content:content_common",
57 ":content_public_android_java_enums_srcjar",
58 "//content/browser/accessibility:content_browser_accessibility_java_enums_srcjar",
59 "//ui/touch_selection:ui_touch_selection_enums_srcjar",
60 "//ui/touch_selection:ui_touch_handle_orientation_srcjar",
63 DEPRECATED_java_in_dir = "java/src"
66 java_strings_grd("content_strings_grd") {
67 grd_file = "java/strings/android_content_strings.grd"
69 "values-am/android_content_strings.xml",
70 "values-ar/android_content_strings.xml",
71 "values-bg/android_content_strings.xml",
72 "values-ca/android_content_strings.xml",
73 "values-cs/android_content_strings.xml",
74 "values-da/android_content_strings.xml",
75 "values-de/android_content_strings.xml",
76 "values-el/android_content_strings.xml",
77 "values/android_content_strings.xml",
78 "values-en-rGB/android_content_strings.xml",
79 "values-es/android_content_strings.xml",
80 "values-es-rUS/android_content_strings.xml",
81 "values-fa/android_content_strings.xml",
82 "values-fi/android_content_strings.xml",
83 "values-tl/android_content_strings.xml",
84 "values-fr/android_content_strings.xml",
85 "values-hi/android_content_strings.xml",
86 "values-hr/android_content_strings.xml",
87 "values-hu/android_content_strings.xml",
88 "values-in/android_content_strings.xml",
89 "values-it/android_content_strings.xml",
90 "values-iw/android_content_strings.xml",
91 "values-ja/android_content_strings.xml",
92 "values-ko/android_content_strings.xml",
93 "values-lt/android_content_strings.xml",
94 "values-lv/android_content_strings.xml",
95 "values-nl/android_content_strings.xml",
96 "values-nb/android_content_strings.xml",
97 "values-pl/android_content_strings.xml",
98 "values-pt-rBR/android_content_strings.xml",
99 "values-pt-rPT/android_content_strings.xml",
100 "values-ro/android_content_strings.xml",
101 "values-ru/android_content_strings.xml",
102 "values-sk/android_content_strings.xml",
103 "values-sl/android_content_strings.xml",
104 "values-sr/android_content_strings.xml",
105 "values-sv/android_content_strings.xml",
106 "values-sw/android_content_strings.xml",
107 "values-th/android_content_strings.xml",
108 "values-tr/android_content_strings.xml",
109 "values-uk/android_content_strings.xml",
110 "values-vi/android_content_strings.xml",
111 "values-zh-rCN/android_content_strings.xml",
112 "values-zh-rTW/android_content_strings.xml",
116 java_cpp_enum("content_public_android_java_enums_srcjar") {
118 "//content/browser/android/content_view_core_impl.cc",
119 "//content/browser/android/gesture_event_type.h",
120 "//content/browser/gamepad/gamepad_standard_mappings.h",
121 "//content/public/browser/invalidate_type.h",
122 "//content/public/browser/navigation_controller.h",
123 "//content/public/browser/readback_types.h",
124 "//content/public/common/console_message_level.h",
125 "//content/public/common/result_codes.h",
126 "//content/public/common/screen_orientation_values.h",
127 "//content/public/common/speech_recognition_error.h",
128 "//content/public/common/top_controls_state.h",
131 "org/chromium/content/browser/GestureEventType.java",
132 "org/chromium/content/browser/input/CanonicalAxisIndex.java",
133 "org/chromium/content/browser/input/CanonicalButtonIndex.java",
134 "org/chromium/content/browser/input/PopupItemType.java",
135 "org/chromium/content_public/browser/InvalidateTypes.java",
136 "org/chromium/content_public/browser/navigation_controller/LoadURLType.java",
137 "org/chromium/content_public/browser/navigation_controller/UserAgentOverrideOption.java",
138 "org/chromium/content_public/browser/readback_types/ReadbackResponse.java",
139 "org/chromium/content_public/common/ConsoleMessageLevel.java",
140 "org/chromium/content_public/common/ResultCode.java",
141 "org/chromium/content_public/common/ScreenOrientationValues.java",
142 "org/chromium/content_public/common/SpeechRecognitionErrorCode.java",
143 "org/chromium/content_public/common/TopControlsState.java",
147 generate_jar_jni("jar_jni") {
148 jni_package = "content"
150 "java/util/HashSet.class",
151 "android/view/MotionEvent.class",
155 generate_jni("content_jni_headers") {
156 sources = rebase_path(content_jni_gypi_values.sources, "", "../..")
157 jni_package = "content"
162 ":content_jni_headers",
167 android_library("content_javatests") {
171 "//base:base_java_test_support",
172 "//content/public/test/android:content_java_test_support",
173 "//content/shell/android:content_shell_java",
174 "//content/shell/android:content_shell_java_resources",
175 "//content/shell/android:content_shell_apk_java",
176 "//content/shell/android:content_shell_test_java",
177 "//media/base/android:media_java",
178 "//mojo/android:system_java",
179 "//net/android:net_java",
180 "//net/android:net_java_test_support",
181 "//third_party/android_tools:android_support_v13_java",
182 "//third_party/android_tools:legacy_http_javalib",
183 "//third_party/mojo/src/mojo/public/interfaces/bindings/tests:test_interfaces_java",
184 "//third_party/mojo/src/mojo/public/java:bindings",
185 "//third_party/mojo/src/mojo/public/java:system",
186 "//ui/android:ui_java",
190 DEPRECATED_java_in_dir = "javatests/src"
193 # GYP: //content/content_tests.gypi:content_junit_tests
194 junit_binary("content_junit_tests") {
195 java_files = [ "junit/src/org/chromium/content/browser/input/GamepadMappingsTest.java" ]
199 "//base:base_java_test_support",
202 # TODO(GYP): content_icudata