Don't reset the database when there was an I/O error.
[chromium-blink-merge.git] / android_webview / Android.mk
blob1be3e6bb1ad74ebefd07473d49a3c8fdecbf8868
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)/../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)
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) \
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)
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/common/ResultCodes.java \
59 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/media/ImageFormat.java \
60 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/net/CertificateMimeType.java \
61 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/net/CertVerifyResultAndroid.java \
62 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/net/NetError.java \
63 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/net/PrivateKeyType.java \
64 $(call intermediates-dir-for,GYP,shared)/templates/org/chromium/ui/WindowOpenDisposition.java \
66 # content dependencies on java components that are provided by the system on
67 # android
68 LOCAL_STATIC_JAVA_LIBRARIES += jsr305 guava
70 include $(BUILD_STATIC_JAVA_LIBRARY)
73 ########################################################
74 # These packages are the resource paks used by webview.
76 include $(CLEAR_VARS)
77 LOCAL_MODULE := webviewchromium_pak
78 LOCAL_MODULE_STEM := webviewchromium
79 LOCAL_BUILT_MODULE_STEM := android_webview_apk/assets/webviewchromium.pak
80 include $(LOCAL_PATH)/webview_pak.mk
82 include $(CLEAR_VARS)
83 LOCAL_MODULE := webviewchromium_webkit_strings_am.pak
84 LOCAL_MODULE_STEM := am
85 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_am.pak
86 include $(LOCAL_PATH)/webview_pak.mk
88 include $(CLEAR_VARS)
89 LOCAL_MODULE := webviewchromium_webkit_strings_ar.pak
90 LOCAL_MODULE_STEM := ar
91 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ar.pak
92 include $(LOCAL_PATH)/webview_pak.mk
94 include $(CLEAR_VARS)
95 LOCAL_MODULE := webviewchromium_webkit_strings_bg.pak
96 LOCAL_MODULE_STEM := bg
97 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_bg.pak
98 include $(LOCAL_PATH)/webview_pak.mk
100 include $(CLEAR_VARS)
101 LOCAL_MODULE := webviewchromium_webkit_strings_bn.pak
102 LOCAL_MODULE_STEM := bn
103 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_bn.pak
104 include $(LOCAL_PATH)/webview_pak.mk
106 include $(CLEAR_VARS)
107 LOCAL_MODULE := webviewchromium_webkit_strings_ca.pak
108 LOCAL_MODULE_STEM := ca
109 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ca.pak
110 include $(LOCAL_PATH)/webview_pak.mk
112 include $(CLEAR_VARS)
113 LOCAL_MODULE := webviewchromium_webkit_strings_cs.pak
114 LOCAL_MODULE_STEM := cs
115 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_cs.pak
116 include $(LOCAL_PATH)/webview_pak.mk
118 include $(CLEAR_VARS)
119 LOCAL_MODULE := webviewchromium_webkit_strings_da.pak
120 LOCAL_MODULE_STEM := da
121 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_da.pak
122 include $(LOCAL_PATH)/webview_pak.mk
124 include $(CLEAR_VARS)
125 LOCAL_MODULE := webviewchromium_webkit_strings_de.pak
126 LOCAL_MODULE_STEM := de
127 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_de.pak
128 include $(LOCAL_PATH)/webview_pak.mk
130 include $(CLEAR_VARS)
131 LOCAL_MODULE := webviewchromium_webkit_strings_el.pak
132 LOCAL_MODULE_STEM := el
133 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_el.pak
134 include $(LOCAL_PATH)/webview_pak.mk
136 include $(CLEAR_VARS)
137 LOCAL_MODULE := webviewchromium_webkit_strings_en-GB.pak
138 LOCAL_MODULE_STEM := en-GB
139 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_en-GB.pak
140 include $(LOCAL_PATH)/webview_pak.mk
142 include $(CLEAR_VARS)
143 LOCAL_MODULE := webviewchromium_webkit_strings_en-US.pak
144 LOCAL_MODULE_STEM := en-US
145 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_en-US.pak
146 include $(LOCAL_PATH)/webview_pak.mk
148 include $(CLEAR_VARS)
149 LOCAL_MODULE := webviewchromium_webkit_strings_es-419.pak
150 LOCAL_MODULE_STEM := es-419
151 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_es-419.pak
152 include $(LOCAL_PATH)/webview_pak.mk
154 include $(CLEAR_VARS)
155 LOCAL_MODULE := webviewchromium_webkit_strings_es.pak
156 LOCAL_MODULE_STEM := es
157 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_es.pak
158 include $(LOCAL_PATH)/webview_pak.mk
160 include $(CLEAR_VARS)
161 LOCAL_MODULE := webviewchromium_webkit_strings_et.pak
162 LOCAL_MODULE_STEM := et
163 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_et.pak
164 include $(LOCAL_PATH)/webview_pak.mk
166 include $(CLEAR_VARS)
167 LOCAL_MODULE := webviewchromium_webkit_strings_fa.pak
168 LOCAL_MODULE_STEM := fa
169 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_fa.pak
170 include $(LOCAL_PATH)/webview_pak.mk
172 include $(CLEAR_VARS)
173 LOCAL_MODULE := webviewchromium_webkit_strings_fil.pak
174 LOCAL_MODULE_STEM := fil
175 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_fil.pak
176 include $(LOCAL_PATH)/webview_pak.mk
178 include $(CLEAR_VARS)
179 LOCAL_MODULE := webviewchromium_webkit_strings_fi.pak
180 LOCAL_MODULE_STEM := fi
181 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_fi.pak
182 include $(LOCAL_PATH)/webview_pak.mk
184 include $(CLEAR_VARS)
185 LOCAL_MODULE := webviewchromium_webkit_strings_fr.pak
186 LOCAL_MODULE_STEM := fr
187 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_fr.pak
188 include $(LOCAL_PATH)/webview_pak.mk
190 include $(CLEAR_VARS)
191 LOCAL_MODULE := webviewchromium_webkit_strings_gu.pak
192 LOCAL_MODULE_STEM := gu
193 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_gu.pak
194 include $(LOCAL_PATH)/webview_pak.mk
196 include $(CLEAR_VARS)
197 LOCAL_MODULE := webviewchromium_webkit_strings_he.pak
198 LOCAL_MODULE_STEM := he
199 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_he.pak
200 include $(LOCAL_PATH)/webview_pak.mk
202 include $(CLEAR_VARS)
203 LOCAL_MODULE := webviewchromium_webkit_strings_hi.pak
204 LOCAL_MODULE_STEM := hi
205 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_hi.pak
206 include $(LOCAL_PATH)/webview_pak.mk
208 include $(CLEAR_VARS)
209 LOCAL_MODULE := webviewchromium_webkit_strings_hr.pak
210 LOCAL_MODULE_STEM := hr
211 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_hr.pak
212 include $(LOCAL_PATH)/webview_pak.mk
214 include $(CLEAR_VARS)
215 LOCAL_MODULE := webviewchromium_webkit_strings_hu.pak
216 LOCAL_MODULE_STEM := hu
217 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_hu.pak
218 include $(LOCAL_PATH)/webview_pak.mk
220 include $(CLEAR_VARS)
221 LOCAL_MODULE := webviewchromium_webkit_strings_id.pak
222 LOCAL_MODULE_STEM := id
223 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_id.pak
224 include $(LOCAL_PATH)/webview_pak.mk
226 include $(CLEAR_VARS)
227 LOCAL_MODULE := webviewchromium_webkit_strings_it.pak
228 LOCAL_MODULE_STEM := it
229 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_it.pak
230 include $(LOCAL_PATH)/webview_pak.mk
232 include $(CLEAR_VARS)
233 LOCAL_MODULE := webviewchromium_webkit_strings_ja.pak
234 LOCAL_MODULE_STEM := ja
235 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ja.pak
236 include $(LOCAL_PATH)/webview_pak.mk
238 include $(CLEAR_VARS)
239 LOCAL_MODULE := webviewchromium_webkit_strings_kn.pak
240 LOCAL_MODULE_STEM := kn
241 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_kn.pak
242 include $(LOCAL_PATH)/webview_pak.mk
244 include $(CLEAR_VARS)
245 LOCAL_MODULE := webviewchromium_webkit_strings_ko.pak
246 LOCAL_MODULE_STEM := ko
247 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ko.pak
248 include $(LOCAL_PATH)/webview_pak.mk
250 include $(CLEAR_VARS)
251 LOCAL_MODULE := webviewchromium_webkit_strings_lt.pak
252 LOCAL_MODULE_STEM := lt
253 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_lt.pak
254 include $(LOCAL_PATH)/webview_pak.mk
256 include $(CLEAR_VARS)
257 LOCAL_MODULE := webviewchromium_webkit_strings_lv.pak
258 LOCAL_MODULE_STEM := lv
259 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_lv.pak
260 include $(LOCAL_PATH)/webview_pak.mk
262 include $(CLEAR_VARS)
263 LOCAL_MODULE := webviewchromium_webkit_strings_ml.pak
264 LOCAL_MODULE_STEM := ml
265 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ml.pak
266 include $(LOCAL_PATH)/webview_pak.mk
268 include $(CLEAR_VARS)
269 LOCAL_MODULE := webviewchromium_webkit_strings_mr.pak
270 LOCAL_MODULE_STEM := mr
271 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_mr.pak
272 include $(LOCAL_PATH)/webview_pak.mk
274 include $(CLEAR_VARS)
275 LOCAL_MODULE := webviewchromium_webkit_strings_ms.pak
276 LOCAL_MODULE_STEM := ms
277 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ms.pak
278 include $(LOCAL_PATH)/webview_pak.mk
280 include $(CLEAR_VARS)
281 LOCAL_MODULE := webviewchromium_webkit_strings_nb.pak
282 LOCAL_MODULE_STEM := nb
283 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_nb.pak
284 include $(LOCAL_PATH)/webview_pak.mk
286 include $(CLEAR_VARS)
287 LOCAL_MODULE := webviewchromium_webkit_strings_nl.pak
288 LOCAL_MODULE_STEM := nl
289 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_nl.pak
290 include $(LOCAL_PATH)/webview_pak.mk
292 include $(CLEAR_VARS)
293 LOCAL_MODULE := webviewchromium_webkit_strings_pl.pak
294 LOCAL_MODULE_STEM := pl
295 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_pl.pak
296 include $(LOCAL_PATH)/webview_pak.mk
298 include $(CLEAR_VARS)
299 LOCAL_MODULE := webviewchromium_webkit_strings_pt-BR.pak
300 LOCAL_MODULE_STEM := pt-BR
301 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_pt-BR.pak
302 include $(LOCAL_PATH)/webview_pak.mk
304 include $(CLEAR_VARS)
305 LOCAL_MODULE := webviewchromium_webkit_strings_pt-PT.pak
306 LOCAL_MODULE_STEM := pt-PT
307 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_pt-PT.pak
308 include $(LOCAL_PATH)/webview_pak.mk
310 include $(CLEAR_VARS)
311 LOCAL_MODULE := webviewchromium_webkit_strings_ro.pak
312 LOCAL_MODULE_STEM := ro
313 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ro.pak
314 include $(LOCAL_PATH)/webview_pak.mk
316 include $(CLEAR_VARS)
317 LOCAL_MODULE := webviewchromium_webkit_strings_ru.pak
318 LOCAL_MODULE_STEM := ru
319 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ru.pak
320 include $(LOCAL_PATH)/webview_pak.mk
322 include $(CLEAR_VARS)
323 LOCAL_MODULE := webviewchromium_webkit_strings_sk.pak
324 LOCAL_MODULE_STEM := sk
325 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sk.pak
326 include $(LOCAL_PATH)/webview_pak.mk
328 include $(CLEAR_VARS)
329 LOCAL_MODULE := webviewchromium_webkit_strings_sl.pak
330 LOCAL_MODULE_STEM := sl
331 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sl.pak
332 include $(LOCAL_PATH)/webview_pak.mk
334 include $(CLEAR_VARS)
335 LOCAL_MODULE := webviewchromium_webkit_strings_sr.pak
336 LOCAL_MODULE_STEM := sr
337 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sr.pak
338 include $(LOCAL_PATH)/webview_pak.mk
340 include $(CLEAR_VARS)
341 LOCAL_MODULE := webviewchromium_webkit_strings_sv.pak
342 LOCAL_MODULE_STEM := sv
343 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sv.pak
344 include $(LOCAL_PATH)/webview_pak.mk
346 include $(CLEAR_VARS)
347 LOCAL_MODULE := webviewchromium_webkit_strings_sw.pak
348 LOCAL_MODULE_STEM := sw
349 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_sw.pak
350 include $(LOCAL_PATH)/webview_pak.mk
352 include $(CLEAR_VARS)
353 LOCAL_MODULE := webviewchromium_webkit_strings_ta.pak
354 LOCAL_MODULE_STEM := ta
355 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_ta.pak
356 include $(LOCAL_PATH)/webview_pak.mk
358 include $(CLEAR_VARS)
359 LOCAL_MODULE := webviewchromium_webkit_strings_te.pak
360 LOCAL_MODULE_STEM := te
361 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_te.pak
362 include $(LOCAL_PATH)/webview_pak.mk
364 include $(CLEAR_VARS)
365 LOCAL_MODULE := webviewchromium_webkit_strings_th.pak
366 LOCAL_MODULE_STEM := th
367 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_th.pak
368 include $(LOCAL_PATH)/webview_pak.mk
370 include $(CLEAR_VARS)
371 LOCAL_MODULE := webviewchromium_webkit_strings_tr.pak
372 LOCAL_MODULE_STEM := tr
373 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_tr.pak
374 include $(LOCAL_PATH)/webview_pak.mk
376 include $(CLEAR_VARS)
377 LOCAL_MODULE := webviewchromium_webkit_strings_uk.pak
378 LOCAL_MODULE_STEM := uk
379 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_uk.pak
380 include $(LOCAL_PATH)/webview_pak.mk
382 include $(CLEAR_VARS)
383 LOCAL_MODULE := webviewchromium_webkit_strings_vi.pak
384 LOCAL_MODULE_STEM := vi
385 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_vi.pak
386 include $(LOCAL_PATH)/webview_pak.mk
388 include $(CLEAR_VARS)
389 LOCAL_MODULE := webviewchromium_webkit_strings_zh-CN.pak
390 LOCAL_MODULE_STEM := zh-CN
391 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_zh-CN.pak
392 include $(LOCAL_PATH)/webview_pak.mk
394 include $(CLEAR_VARS)
395 LOCAL_MODULE := webviewchromium_webkit_strings_zh-TW.pak
396 LOCAL_MODULE_STEM := zh-TW
397 LOCAL_BUILT_MODULE_STEM := webkit/webkit_strings_zh-TW.pak
398 include $(LOCAL_PATH)/webview_pak.mk