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 "//media/base/android:media_java",
38 "//mojo/android:system_java",
39 "//net/android:net_java",
40 "//third_party/mojo/src/mojo/public/java:bindings",
41 "//third_party/mojo/src/mojo/public/java:system",
42 "//ui/android:ui_java",
43 "//third_party/jsr-305:jsr_305_javalib",
44 "//third_party/WebKit/public:blink_headers_java",
46 #"//content:content_common",
51 ":content_public_android_java_enums_srcjar",
52 "//ui/touch_selection:ui_touch_selection_enums_srcjar",
53 "//ui/touch_selection:ui_touch_handle_orientation_srcjar",
56 DEPRECATED_java_in_dir = "java/src"
59 java_strings_grd("content_strings_grd") {
60 grd_file = "java/strings/android_content_strings.grd"
62 "values-am/android_content_strings.xml",
63 "values-ar/android_content_strings.xml",
64 "values-bg/android_content_strings.xml",
65 "values-ca/android_content_strings.xml",
66 "values-cs/android_content_strings.xml",
67 "values-da/android_content_strings.xml",
68 "values-de/android_content_strings.xml",
69 "values-el/android_content_strings.xml",
70 "values/android_content_strings.xml",
71 "values-en-rGB/android_content_strings.xml",
72 "values-es/android_content_strings.xml",
73 "values-es-rUS/android_content_strings.xml",
74 "values-fa/android_content_strings.xml",
75 "values-fi/android_content_strings.xml",
76 "values-tl/android_content_strings.xml",
77 "values-fr/android_content_strings.xml",
78 "values-hi/android_content_strings.xml",
79 "values-hr/android_content_strings.xml",
80 "values-hu/android_content_strings.xml",
81 "values-in/android_content_strings.xml",
82 "values-it/android_content_strings.xml",
83 "values-iw/android_content_strings.xml",
84 "values-ja/android_content_strings.xml",
85 "values-ko/android_content_strings.xml",
86 "values-lt/android_content_strings.xml",
87 "values-lv/android_content_strings.xml",
88 "values-nl/android_content_strings.xml",
89 "values-nb/android_content_strings.xml",
90 "values-pl/android_content_strings.xml",
91 "values-pt-rBR/android_content_strings.xml",
92 "values-pt-rPT/android_content_strings.xml",
93 "values-ro/android_content_strings.xml",
94 "values-ru/android_content_strings.xml",
95 "values-sk/android_content_strings.xml",
96 "values-sl/android_content_strings.xml",
97 "values-sr/android_content_strings.xml",
98 "values-sv/android_content_strings.xml",
99 "values-sw/android_content_strings.xml",
100 "values-th/android_content_strings.xml",
101 "values-tr/android_content_strings.xml",
102 "values-uk/android_content_strings.xml",
103 "values-vi/android_content_strings.xml",
104 "values-zh-rCN/android_content_strings.xml",
105 "values-zh-rTW/android_content_strings.xml",
109 java_cpp_enum("content_public_android_java_enums_srcjar") {
111 "//content/browser/android/content_view_core_impl.cc",
112 "//content/browser/android/gesture_event_type.h",
113 "//content/browser/gamepad/gamepad_standard_mappings.h",
114 "//content/public/browser/navigation_controller.h",
115 "//content/public/common/console_message_level.h",
116 "//content/public/common/result_codes.h",
117 "//content/public/common/screen_orientation_values.h",
118 "//content/public/common/speech_recognition_error.h",
119 "//content/public/common/top_controls_state.h",
122 "org/chromium/content/browser/GestureEventType.java",
123 "org/chromium/content/browser/input/CanonicalAxisIndex.java",
124 "org/chromium/content/browser/input/CanonicalButtonIndex.java",
125 "org/chromium/content/browser/input/PopupItemType.java",
126 "org/chromium/content_public/browser/navigation_controller/LoadURLType.java",
127 "org/chromium/content_public/browser/navigation_controller/UserAgentOverrideOption.java",
128 "org/chromium/content_public/common/ConsoleMessageLevel.java",
129 "org/chromium/content_public/common/ResultCode.java",
130 "org/chromium/content_public/common/ScreenOrientationValues.java",
131 "org/chromium/content_public/common/SpeechRecognitionErrorCode.java",
132 "org/chromium/content_public/common/TopControlsState.java",
136 generate_jar_jni("jar_jni") {
137 jni_package = "content"
139 "java/util/HashSet.class",
140 "android/view/MotionEvent.class",
144 generate_jni("content_jni_headers") {
145 sources = rebase_path(content_jni_gypi_values.sources, "", "../..")
146 jni_package = "content"
151 ":content_jni_headers",
156 android_library("content_javatests") {
160 "//base:base_java_test_support",
161 "//content/public/test/android:content_java_test_support",
162 "//content/shell/android:content_shell_java",
163 "//content/shell/android:content_shell_java_resources",
164 "//content/shell/android:content_shell_apk_java",
165 "//content/shell/android:content_shell_test_java",
166 "//media/base/android:media_java",
167 "//mojo/android:system_java",
168 "//net/android:net_java",
169 "//net/android:net_java_test_support",
170 "//third_party/mojo/src/mojo/public/interfaces/bindings/tests:test_interfaces_java",
171 "//third_party/mojo/src/mojo/public/java:bindings",
172 "//third_party/mojo/src/mojo/public/java:system",
173 "//ui/android:ui_java",
177 DEPRECATED_java_in_dir = "javatests/src"
179 # TODO(GYP): content_icudata