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