OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 | 7 |
8 content_jni_gypi_values = exec_script("//build/gypi_to_gn.py", | 8 content_jni_gypi_values = exec_script("//build/gypi_to_gn.py", |
9 [ rebase_path("../../content_jni.gypi") ], | 9 [ rebase_path("../../content_jni.gypi") ], |
10 "scope", | 10 "scope", |
(...skipping 24 matching lines...) Expand all Loading... |
35 "//media/base/android:media_java", | 35 "//media/base/android:media_java", |
36 "//net/android:net_java", | 36 "//net/android:net_java", |
37 "//ui/android:ui_java", | 37 "//ui/android:ui_java", |
38 "//third_party/jsr-305:jsr_305_javalib", | 38 "//third_party/jsr-305:jsr_305_javalib", |
39 | 39 |
40 #"//content:content_common", | 40 #"//content:content_common", |
41 ] | 41 ] |
42 | 42 |
43 srcjar_deps = [ | 43 srcjar_deps = [ |
44 ":common_aidl", | 44 ":common_aidl", |
45 ":content_gamepad_mapping_java", | 45 ":content_public_android_java_enums_srcjar", |
46 ":gesture_event_type_java", | |
47 ":popup_item_type_java", | |
48 ":result_codes_java", | |
49 ":selection_event_type_java", | |
50 ":speech_recognition_error_java", | |
51 ":top_controls_state_java", | |
52 ":screen_orientation_values_java", | |
53 ] | 46 ] |
54 | 47 |
55 DEPRECATED_java_in_dir = "java/src" | 48 DEPRECATED_java_in_dir = "java/src" |
56 if (!is_android_webview_build) { | 49 if (!is_android_webview_build) { |
57 deps += [ | 50 deps += [ |
58 "//third_party/eyesfree:eyesfree_java", | 51 "//third_party/eyesfree:eyesfree_java", |
59 ] | 52 ] |
60 } | 53 } |
61 } | 54 } |
62 | 55 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 "values-sw/android_content_strings.xml", | 96 "values-sw/android_content_strings.xml", |
104 "values-th/android_content_strings.xml", | 97 "values-th/android_content_strings.xml", |
105 "values-tr/android_content_strings.xml", | 98 "values-tr/android_content_strings.xml", |
106 "values-uk/android_content_strings.xml", | 99 "values-uk/android_content_strings.xml", |
107 "values-vi/android_content_strings.xml", | 100 "values-vi/android_content_strings.xml", |
108 "values-zh-rCN/android_content_strings.xml", | 101 "values-zh-rCN/android_content_strings.xml", |
109 "values-zh-rTW/android_content_strings.xml", | 102 "values-zh-rTW/android_content_strings.xml", |
110 ] | 103 ] |
111 } | 104 } |
112 | 105 |
113 java_cpp_template("gesture_event_type_java") { | 106 java_cpp_enum("content_public_android_java_enums_srcjar") { |
114 sources = [ | 107 sources = [ |
115 "java/src/org/chromium/content/browser/GestureEventType.template", | 108 "//content/browser/android/content_view_core_impl.cc", |
| 109 "//content/browser/android/gesture_event_type.h", |
| 110 "//content/browser/renderer_host/input/selection_event_type.h", |
| 111 "//content/browser/gamepad/gamepad_standard_mappings.h", |
| 112 "//content/public/common/result_codes.h", |
| 113 "//content/public/common/screen_orientation_values.h", |
| 114 "//content/public/common/speech_recognition_error.h", |
| 115 "//content/public/common/top_controls_state.h", |
116 ] | 116 ] |
117 package_name = "org/chromium/content/browser" | 117 outputs = [ |
118 inputs = [ | 118 "org/chromium/content/browser/GestureEventType.java", |
119 "//content/browser/android/gesture_event_type_list.h" | 119 "org/chromium/content/browser/input/CanonicalAxisIndex.java", |
| 120 "org/chromium/content/browser/input/CanonicalButtonIndex.java", |
| 121 "org/chromium/content/browser/input/PopupItemType.java", |
| 122 "org/chromium/content/browser/input/SelectionEventType.java", |
| 123 "org/chromium/content_public/common/ResultCode.java", |
| 124 "org/chromium/content_public/common/ScreenOrientationValues.java", |
| 125 "org/chromium/content_public/common/SpeechRecognitionErrorCode.java", |
| 126 "org/chromium/content_public/common/TopControlsState.java", |
120 ] | 127 ] |
121 } | 128 } |
122 | 129 |
123 java_cpp_template("popup_item_type_java") { | |
124 sources = [ | |
125 "java/src/org/chromium/content/browser/input/PopupItemType.template", | |
126 ] | |
127 package_name = "org/chromium/content/browser/input" | |
128 inputs = [ | |
129 "//content/browser/android/popup_item_type_list.h" | |
130 ] | |
131 } | |
132 | |
133 java_cpp_template("result_codes_java") { | |
134 sources = [ | |
135 "java/src/org/chromium/content/common/ResultCodes.template", | |
136 ] | |
137 package_name = "org/chromium/content/common" | |
138 inputs = [ | |
139 "//content/public/common/result_codes_list.h" | |
140 ] | |
141 } | |
142 | |
143 java_cpp_template("selection_event_type_java") { | |
144 sources = [ | |
145 "java/src/org/chromium/content/browser/input/SelectionEventType.template", | |
146 ] | |
147 package_name = "org/chromium/content/browser/input" | |
148 inputs = [ | |
149 "//content/browser/renderer_host/input/selection_event_type_list.h" | |
150 ] | |
151 } | |
152 | |
153 java_cpp_template("speech_recognition_error_java") { | |
154 sources = [ | |
155 "java/src/org/chromium/content/browser/SpeechRecognitionError.template", | |
156 ] | |
157 package_name = "org/chromium/content/browser" | |
158 inputs = [ | |
159 "//content/public/common/speech_recognition_error_list.h" | |
160 ] | |
161 } | |
162 | |
163 java_cpp_template("top_controls_state_java") { | |
164 sources = [ | |
165 "java/src/org/chromium/content/common/TopControlsState.template", | |
166 ] | |
167 package_name = "org/chromium/content/common" | |
168 inputs = [ | |
169 "//content/public/common/top_controls_state_list.h" | |
170 ] | |
171 } | |
172 | |
173 java_cpp_template("screen_orientation_values_java") { | |
174 sources = [ | |
175 "java/src/org/chromium/content_public/common/ScreenOrientationValues.templat
e", | |
176 ] | |
177 package_name = "org/chromium/content_public/common" | |
178 inputs = [ | |
179 "//content/public/common/screen_orientation_values_list.h" | |
180 ] | |
181 } | |
182 | |
183 java_cpp_template("content_gamepad_mapping_java") { | |
184 sources = [ | |
185 "java/src/org/chromium/content/browser/input/CanonicalAxisIndex.template", | |
186 "java/src/org/chromium/content/browser/input/CanonicalButtonIndex.template", | |
187 ] | |
188 package_name = "org/chromium/content/common" | |
189 inputs = [ | |
190 "//content/browser/gamepad/canonical_axis_index_list.h", | |
191 "//content/browser/gamepad/canonical_button_index_list.h", | |
192 ] | |
193 } | |
194 | |
195 generate_jar_jni("jar_jni") { | 130 generate_jar_jni("jar_jni") { |
196 jni_package = "content" | 131 jni_package = "content" |
197 classes = [ | 132 classes = [ |
198 "java/util/HashSet.class", | 133 "java/util/HashSet.class", |
199 "android/view/MotionEvent.class", | 134 "android/view/MotionEvent.class", |
200 ] | 135 ] |
201 } | 136 } |
202 | 137 |
203 generate_jni("content_jni_headers") { | 138 generate_jni("content_jni_headers") { |
204 sources = rebase_path(content_jni_gypi_values.sources, "", "../..") | 139 sources = rebase_path(content_jni_gypi_values.sources, "", "../..") |
(...skipping 22 matching lines...) Expand all Loading... |
227 "//net/android:net_java_test_support", | 162 "//net/android:net_java_test_support", |
228 "//ui/android:ui_java", | 163 "//ui/android:ui_java", |
229 ":content_java", | 164 ":content_java", |
230 ] | 165 ] |
231 | 166 |
232 DEPRECATED_java_in_dir = "javatests/src" | 167 DEPRECATED_java_in_dir = "javatests/src" |
233 } | 168 } |
234 | 169 |
235 | 170 |
236 # TODO(GYP): content_icudata | 171 # TODO(GYP): content_icudata |
OLD | NEW |