1 # Copyright (c) 2012 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. 4 5 # This package provides the parts of the WebView java code which live in the 6 # Chromium tree. This is built into a static library so it can be used by the 7 # glue layer in the Android tree. 8 9 LOCAL_PATH := $(call my-dir) 10 include $(CLEAR_VARS) 11 12 LOCAL_MODULE := android_webview_java 13 14 LOCAL_MODULE_TAGS := optional 15 16 LOCAL_SRC_FILES := $(call all-java-files-under, java/src) 17 18 # resource glue layer 19 LOCAL_SRC_FILES += \ 20 $(call all-java-files-under, ../content/public/android/java/resource_map) \ 21 $(call all-java-files-under, ../ui/android/java/resource_map) \ 22 23 # contentview and its dependencies 24 LOCAL_AIDL_INCLUDES := \ 25 $(LOCAL_PATH)/../content/public/android/java/src \ 26 $(LOCAL_PATH)/../third_party/eyesfree/src/android/java/src 27 LOCAL_SRC_FILES += \ 28 $(call all-java-files-under, ../content/public/android/java/src) \ 29 ../content/public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl \ 30 ../content/public/android/java/src/org/chromium/content/common/IChildProcessService.aidl \ 31 $(call all-java-files-under, ../base/android/java/src) \ 32 $(call all-java-files-under, ../media/base/android/java/src) \ 33 $(call all-java-files-under, ../net/android/java/src) \ 34 $(call all-java-files-under, ../ui/android/java/src) \ 35 $(call all-java-files-under, ../third_party/eyesfree/src/android/java/src) \ 36 $(call all-Iaidl-files-under, ../third_party/eyesfree/src/android/java/src) 37 38 # browser components 39 LOCAL_SRC_FILES += \ 40 $(call all-java-files-under, \ 41 ../components/web_contents_delegate_android/android/java/src) \ 42 $(call all-java-files-under, \ 43 ../components/navigation_interception/android/java/src) \ 44 45 # This directory includes .java files that are generated by the normal gyp build, but are checked in 46 # for the Android build. 47 # TODO(torne, cjhopman): Consider removing this. 48 LOCAL_SRC_FILES += \ 49 $(call all-java-files-under, java/generated_src) 50 51 # Java files generated from .template rules. This list should match list of java dependencies in 52 # android_webview/all_webview.gyp 53 LOCAL_GENERATED_SOURCES := \ 54 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/base/ActivityState.java \ 55 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/base/MemoryPressureLevelList.java \ 56 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/content/browser/PageTransitionTypes.java \ 57 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/content/browser/SpeechRecognitionError.java \ 58 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/content/browser/input/PopupItemType.java \ 59 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/content/common/ResultCodes.java \ 60 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/media/ImageFormat.java \ 61 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/net/CertificateMimeType.java \ 62 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/net/CertVerifyResultAndroid.java \ 63 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/net/NetError.java \ 64 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/net/PrivateKeyType.java \ 65 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/ui/WindowOpenDisposition.java \ 66 67 # content dependencies on java components that are provided by the system on 68 # android 69 LOCAL_STATIC_JAVA_LIBRARIES += jsr305 guava 70 71 include $(BUILD_STATIC_JAVA_LIBRARY) 72 73 74 ######################################################## 75 # These packages are the resource paks used by webview. 76 77 include $(CLEAR_VARS) 78 LOCAL_MODULE := webviewchromium_pak 79 LOCAL_MODULE_STEM := webviewchromium 80 LOCAL_BUILT_MODULE_STEM := android_webview_apk/assets/webviewchromium.pak 81 include $(LOCAL_PATH)/webview_pak.mk 82 83 include $(CLEAR_VARS) 84 LOCAL_MODULE := webviewchromium_webkit_strings_am.pak 85 LOCAL_MODULE_STEM := am 86 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_am.pak 87 include $(LOCAL_PATH)/webview_pak.mk 88 89 include $(CLEAR_VARS) 90 LOCAL_MODULE := webviewchromium_webkit_strings_ar.pak 91 LOCAL_MODULE_STEM := ar 92 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ar.pak 93 include $(LOCAL_PATH)/webview_pak.mk 94 95 include $(CLEAR_VARS) 96 LOCAL_MODULE := webviewchromium_webkit_strings_bg.pak 97 LOCAL_MODULE_STEM := bg 98 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_bg.pak 99 include $(LOCAL_PATH)/webview_pak.mk 100 101 include $(CLEAR_VARS) 102 LOCAL_MODULE := webviewchromium_webkit_strings_bn.pak 103 LOCAL_MODULE_STEM := bn 104 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_bn.pak 105 include $(LOCAL_PATH)/webview_pak.mk 106 107 include $(CLEAR_VARS) 108 LOCAL_MODULE := webviewchromium_webkit_strings_ca.pak 109 LOCAL_MODULE_STEM := ca 110 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ca.pak 111 include $(LOCAL_PATH)/webview_pak.mk 112 113 include $(CLEAR_VARS) 114 LOCAL_MODULE := webviewchromium_webkit_strings_cs.pak 115 LOCAL_MODULE_STEM := cs 116 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_cs.pak 117 include $(LOCAL_PATH)/webview_pak.mk 118 119 include $(CLEAR_VARS) 120 LOCAL_MODULE := webviewchromium_webkit_strings_da.pak 121 LOCAL_MODULE_STEM := da 122 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_da.pak 123 include $(LOCAL_PATH)/webview_pak.mk 124 125 include $(CLEAR_VARS) 126 LOCAL_MODULE := webviewchromium_webkit_strings_de.pak 127 LOCAL_MODULE_STEM := de 128 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_de.pak 129 include $(LOCAL_PATH)/webview_pak.mk 130 131 include $(CLEAR_VARS) 132 LOCAL_MODULE := webviewchromium_webkit_strings_el.pak 133 LOCAL_MODULE_STEM := el 134 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_el.pak 135 include $(LOCAL_PATH)/webview_pak.mk 136 137 include $(CLEAR_VARS) 138 LOCAL_MODULE := webviewchromium_webkit_strings_en-GB.pak 139 LOCAL_MODULE_STEM := en-GB 140 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_en-GB.pak 141 include $(LOCAL_PATH)/webview_pak.mk 142 143 include $(CLEAR_VARS) 144 LOCAL_MODULE := webviewchromium_webkit_strings_en-US.pak 145 LOCAL_MODULE_STEM := en-US 146 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_en-US.pak 147 include $(LOCAL_PATH)/webview_pak.mk 148 149 include $(CLEAR_VARS) 150 LOCAL_MODULE := webviewchromium_webkit_strings_es-419.pak 151 LOCAL_MODULE_STEM := es-419 152 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_es-419.pak 153 include $(LOCAL_PATH)/webview_pak.mk 154 155 include $(CLEAR_VARS) 156 LOCAL_MODULE := webviewchromium_webkit_strings_es.pak 157 LOCAL_MODULE_STEM := es 158 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_es.pak 159 include $(LOCAL_PATH)/webview_pak.mk 160 161 include $(CLEAR_VARS) 162 LOCAL_MODULE := webviewchromium_webkit_strings_et.pak 163 LOCAL_MODULE_STEM := et 164 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_et.pak 165 include $(LOCAL_PATH)/webview_pak.mk 166 167 include $(CLEAR_VARS) 168 LOCAL_MODULE := webviewchromium_webkit_strings_fa.pak 169 LOCAL_MODULE_STEM := fa 170 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_fa.pak 171 include $(LOCAL_PATH)/webview_pak.mk 172 173 include $(CLEAR_VARS) 174 LOCAL_MODULE := webviewchromium_webkit_strings_fil.pak 175 LOCAL_MODULE_STEM := fil 176 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_fil.pak 177 include $(LOCAL_PATH)/webview_pak.mk 178 179 include $(CLEAR_VARS) 180 LOCAL_MODULE := webviewchromium_webkit_strings_fi.pak 181 LOCAL_MODULE_STEM := fi 182 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_fi.pak 183 include $(LOCAL_PATH)/webview_pak.mk 184 185 include $(CLEAR_VARS) 186 LOCAL_MODULE := webviewchromium_webkit_strings_fr.pak 187 LOCAL_MODULE_STEM := fr 188 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_fr.pak 189 include $(LOCAL_PATH)/webview_pak.mk 190 191 include $(CLEAR_VARS) 192 LOCAL_MODULE := webviewchromium_webkit_strings_gu.pak 193 LOCAL_MODULE_STEM := gu 194 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_gu.pak 195 include $(LOCAL_PATH)/webview_pak.mk 196 197 include $(CLEAR_VARS) 198 LOCAL_MODULE := webviewchromium_webkit_strings_he.pak 199 LOCAL_MODULE_STEM := he 200 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_he.pak 201 include $(LOCAL_PATH)/webview_pak.mk 202 203 include $(CLEAR_VARS) 204 LOCAL_MODULE := webviewchromium_webkit_strings_hi.pak 205 LOCAL_MODULE_STEM := hi 206 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_hi.pak 207 include $(LOCAL_PATH)/webview_pak.mk 208 209 include $(CLEAR_VARS) 210 LOCAL_MODULE := webviewchromium_webkit_strings_hr.pak 211 LOCAL_MODULE_STEM := hr 212 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_hr.pak 213 include $(LOCAL_PATH)/webview_pak.mk 214 215 include $(CLEAR_VARS) 216 LOCAL_MODULE := webviewchromium_webkit_strings_hu.pak 217 LOCAL_MODULE_STEM := hu 218 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_hu.pak 219 include $(LOCAL_PATH)/webview_pak.mk 220 221 include $(CLEAR_VARS) 222 LOCAL_MODULE := webviewchromium_webkit_strings_id.pak 223 LOCAL_MODULE_STEM := id 224 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_id.pak 225 include $(LOCAL_PATH)/webview_pak.mk 226 227 include $(CLEAR_VARS) 228 LOCAL_MODULE := webviewchromium_webkit_strings_it.pak 229 LOCAL_MODULE_STEM := it 230 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_it.pak 231 include $(LOCAL_PATH)/webview_pak.mk 232 233 include $(CLEAR_VARS) 234 LOCAL_MODULE := webviewchromium_webkit_strings_ja.pak 235 LOCAL_MODULE_STEM := ja 236 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ja.pak 237 include $(LOCAL_PATH)/webview_pak.mk 238 239 include $(CLEAR_VARS) 240 LOCAL_MODULE := webviewchromium_webkit_strings_kn.pak 241 LOCAL_MODULE_STEM := kn 242 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_kn.pak 243 include $(LOCAL_PATH)/webview_pak.mk 244 245 include $(CLEAR_VARS) 246 LOCAL_MODULE := webviewchromium_webkit_strings_ko.pak 247 LOCAL_MODULE_STEM := ko 248 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ko.pak 249 include $(LOCAL_PATH)/webview_pak.mk 250 251 include $(CLEAR_VARS) 252 LOCAL_MODULE := webviewchromium_webkit_strings_lt.pak 253 LOCAL_MODULE_STEM := lt 254 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_lt.pak 255 include $(LOCAL_PATH)/webview_pak.mk 256 257 include $(CLEAR_VARS) 258 LOCAL_MODULE := webviewchromium_webkit_strings_lv.pak 259 LOCAL_MODULE_STEM := lv 260 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_lv.pak 261 include $(LOCAL_PATH)/webview_pak.mk 262 263 include $(CLEAR_VARS) 264 LOCAL_MODULE := webviewchromium_webkit_strings_ml.pak 265 LOCAL_MODULE_STEM := ml 266 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ml.pak 267 include $(LOCAL_PATH)/webview_pak.mk 268 269 include $(CLEAR_VARS) 270 LOCAL_MODULE := webviewchromium_webkit_strings_mr.pak 271 LOCAL_MODULE_STEM := mr 272 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_mr.pak 273 include $(LOCAL_PATH)/webview_pak.mk 274 275 include $(CLEAR_VARS) 276 LOCAL_MODULE := webviewchromium_webkit_strings_ms.pak 277 LOCAL_MODULE_STEM := ms 278 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ms.pak 279 include $(LOCAL_PATH)/webview_pak.mk 280 281 include $(CLEAR_VARS) 282 LOCAL_MODULE := webviewchromium_webkit_strings_nb.pak 283 LOCAL_MODULE_STEM := nb 284 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_nb.pak 285 include $(LOCAL_PATH)/webview_pak.mk 286 287 include $(CLEAR_VARS) 288 LOCAL_MODULE := webviewchromium_webkit_strings_nl.pak 289 LOCAL_MODULE_STEM := nl 290 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_nl.pak 291 include $(LOCAL_PATH)/webview_pak.mk 292 293 include $(CLEAR_VARS) 294 LOCAL_MODULE := webviewchromium_webkit_strings_pl.pak 295 LOCAL_MODULE_STEM := pl 296 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_pl.pak 297 include $(LOCAL_PATH)/webview_pak.mk 298 299 include $(CLEAR_VARS) 300 LOCAL_MODULE := webviewchromium_webkit_strings_pt-BR.pak 301 LOCAL_MODULE_STEM := pt-BR 302 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_pt-BR.pak 303 include $(LOCAL_PATH)/webview_pak.mk 304 305 include $(CLEAR_VARS) 306 LOCAL_MODULE := webviewchromium_webkit_strings_pt-PT.pak 307 LOCAL_MODULE_STEM := pt-PT 308 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_pt-PT.pak 309 include $(LOCAL_PATH)/webview_pak.mk 310 311 include $(CLEAR_VARS) 312 LOCAL_MODULE := webviewchromium_webkit_strings_ro.pak 313 LOCAL_MODULE_STEM := ro 314 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ro.pak 315 include $(LOCAL_PATH)/webview_pak.mk 316 317 include $(CLEAR_VARS) 318 LOCAL_MODULE := webviewchromium_webkit_strings_ru.pak 319 LOCAL_MODULE_STEM := ru 320 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ru.pak 321 include $(LOCAL_PATH)/webview_pak.mk 322 323 include $(CLEAR_VARS) 324 LOCAL_MODULE := webviewchromium_webkit_strings_sk.pak 325 LOCAL_MODULE_STEM := sk 326 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sk.pak 327 include $(LOCAL_PATH)/webview_pak.mk 328 329 include $(CLEAR_VARS) 330 LOCAL_MODULE := webviewchromium_webkit_strings_sl.pak 331 LOCAL_MODULE_STEM := sl 332 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sl.pak 333 include $(LOCAL_PATH)/webview_pak.mk 334 335 include $(CLEAR_VARS) 336 LOCAL_MODULE := webviewchromium_webkit_strings_sr.pak 337 LOCAL_MODULE_STEM := sr 338 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sr.pak 339 include $(LOCAL_PATH)/webview_pak.mk 340 341 include $(CLEAR_VARS) 342 LOCAL_MODULE := webviewchromium_webkit_strings_sv.pak 343 LOCAL_MODULE_STEM := sv 344 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sv.pak 345 include $(LOCAL_PATH)/webview_pak.mk 346 347 include $(CLEAR_VARS) 348 LOCAL_MODULE := webviewchromium_webkit_strings_sw.pak 349 LOCAL_MODULE_STEM := sw 350 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sw.pak 351 include $(LOCAL_PATH)/webview_pak.mk 352 353 include $(CLEAR_VARS) 354 LOCAL_MODULE := webviewchromium_webkit_strings_ta.pak 355 LOCAL_MODULE_STEM := ta 356 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ta.pak 357 include $(LOCAL_PATH)/webview_pak.mk 358 359 include $(CLEAR_VARS) 360 LOCAL_MODULE := webviewchromium_webkit_strings_te.pak 361 LOCAL_MODULE_STEM := te 362 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_te.pak 363 include $(LOCAL_PATH)/webview_pak.mk 364 365 include $(CLEAR_VARS) 366 LOCAL_MODULE := webviewchromium_webkit_strings_th.pak 367 LOCAL_MODULE_STEM := th 368 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_th.pak 369 include $(LOCAL_PATH)/webview_pak.mk 370 371 include $(CLEAR_VARS) 372 LOCAL_MODULE := webviewchromium_webkit_strings_tr.pak 373 LOCAL_MODULE_STEM := tr 374 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_tr.pak 375 include $(LOCAL_PATH)/webview_pak.mk 376 377 include $(CLEAR_VARS) 378 LOCAL_MODULE := webviewchromium_webkit_strings_uk.pak 379 LOCAL_MODULE_STEM := uk 380 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_uk.pak 381 include $(LOCAL_PATH)/webview_pak.mk 382 383 include $(CLEAR_VARS) 384 LOCAL_MODULE := webviewchromium_webkit_strings_vi.pak 385 LOCAL_MODULE_STEM := vi 386 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_vi.pak 387 include $(LOCAL_PATH)/webview_pak.mk 388 389 include $(CLEAR_VARS) 390 LOCAL_MODULE := webviewchromium_webkit_strings_zh-CN.pak 391 LOCAL_MODULE_STEM := zh-CN 392 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_zh-CN.pak 393 include $(LOCAL_PATH)/webview_pak.mk 394 395 include $(CLEAR_VARS) 396 LOCAL_MODULE := webviewchromium_webkit_strings_zh-TW.pak 397 LOCAL_MODULE_STEM := zh-TW 398 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_zh-TW.pak 399 include $(LOCAL_PATH)/webview_pak.mk 400