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
)
12 LOCAL_MODULE
:= android_webview_java
14 LOCAL_MODULE_TAGS
:= optional
16 # Temporary extra dependency: force android_webview_java_with_new_resources to
17 # be built whenever this target is built, so that we get build coverage until
19 LOCAL_ADDITIONAL_DEPENDENCIES
:= \
20 $(call intermediates-dir-for
,JAVA_LIBRARIES
,android_webview_java_with_new_resources
,,COMMON
)/javalib.jar
23 include $(LOCAL_PATH
)/java_library_common.mk
26 $(call all-java-files-under
, ..
/content
/public
/android
/java
/resource_map
) \
27 $(call all-java-files-under
, ..
/ui
/android
/java
/resource_map
) \
29 include $(BUILD_STATIC_JAVA_LIBRARY
)
31 ########################################################
32 # This is intended to replace android_webview_java once the Android side of
33 # the code that uses the WebView is updated. In the transition period the
34 # goal of having this here is to make sure the new build isn't broken.
36 LOCAL_MODULE
:= android_webview_java_with_new_resources
38 LOCAL_MODULE_TAGS
:= optional
40 include $(LOCAL_PATH
)/java_library_common.mk
43 include $(LOCAL_PATH
)/build
/resources_config.mk
44 LOCAL_FULL_MANIFEST_FILE
:= $(android_webview_manifest_file
)
45 LOCAL_RESOURCE_DIR
:= $(android_webview_resources_dirs
)
46 LOCAL_AAPT_FLAGS
:= $(android_webview_aapt_flags
)
48 include $(BUILD_STATIC_JAVA_LIBRARY
)
50 # Depend on the android_webview_strings target to ensure the grd->string.xml
51 # processing takes place.
52 $(R_file_stamp
): $(android_webview_resources_stamp
)
54 ########################################################
55 # These packages are the resource paks used by webview.
58 LOCAL_MODULE
:= webviewchromium_pak
59 LOCAL_MODULE_STEM
:= webviewchromium
60 LOCAL_BUILT_MODULE_STEM
:= android_webview_apk
/assets
/webviewchromium.pak
61 include $(LOCAL_PATH
)/webview_pak.mk
64 LOCAL_MODULE
:= webviewchromium_webkit_strings_am.pak
65 LOCAL_MODULE_STEM
:= am
66 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_am.pak
67 include $(LOCAL_PATH
)/webview_pak.mk
70 LOCAL_MODULE
:= webviewchromium_webkit_strings_ar.pak
71 LOCAL_MODULE_STEM
:= ar
72 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ar.pak
73 include $(LOCAL_PATH
)/webview_pak.mk
76 LOCAL_MODULE
:= webviewchromium_webkit_strings_bg.pak
77 LOCAL_MODULE_STEM
:= bg
78 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_bg.pak
79 include $(LOCAL_PATH
)/webview_pak.mk
82 LOCAL_MODULE
:= webviewchromium_webkit_strings_bn.pak
83 LOCAL_MODULE_STEM
:= bn
84 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_bn.pak
85 include $(LOCAL_PATH
)/webview_pak.mk
88 LOCAL_MODULE
:= webviewchromium_webkit_strings_ca.pak
89 LOCAL_MODULE_STEM
:= ca
90 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ca.pak
91 include $(LOCAL_PATH
)/webview_pak.mk
94 LOCAL_MODULE
:= webviewchromium_webkit_strings_cs.pak
95 LOCAL_MODULE_STEM
:= cs
96 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_cs.pak
97 include $(LOCAL_PATH
)/webview_pak.mk
100 LOCAL_MODULE
:= webviewchromium_webkit_strings_da.pak
101 LOCAL_MODULE_STEM
:= da
102 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_da.pak
103 include $(LOCAL_PATH
)/webview_pak.mk
105 include $(CLEAR_VARS
)
106 LOCAL_MODULE
:= webviewchromium_webkit_strings_de.pak
107 LOCAL_MODULE_STEM
:= de
108 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_de.pak
109 include $(LOCAL_PATH
)/webview_pak.mk
111 include $(CLEAR_VARS
)
112 LOCAL_MODULE
:= webviewchromium_webkit_strings_el.pak
113 LOCAL_MODULE_STEM
:= el
114 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_el.pak
115 include $(LOCAL_PATH
)/webview_pak.mk
117 include $(CLEAR_VARS
)
118 LOCAL_MODULE
:= webviewchromium_webkit_strings_en-GB.pak
119 LOCAL_MODULE_STEM
:= en-GB
120 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_en-GB.pak
121 include $(LOCAL_PATH
)/webview_pak.mk
123 include $(CLEAR_VARS
)
124 LOCAL_MODULE
:= webviewchromium_webkit_strings_en-US.pak
125 LOCAL_MODULE_STEM
:= en-US
126 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_en-US.pak
127 include $(LOCAL_PATH
)/webview_pak.mk
129 include $(CLEAR_VARS
)
130 LOCAL_MODULE
:= webviewchromium_webkit_strings_es-419.pak
131 LOCAL_MODULE_STEM
:= es-419
132 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_es-419.pak
133 include $(LOCAL_PATH
)/webview_pak.mk
135 include $(CLEAR_VARS
)
136 LOCAL_MODULE
:= webviewchromium_webkit_strings_es.pak
137 LOCAL_MODULE_STEM
:= es
138 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_es.pak
139 include $(LOCAL_PATH
)/webview_pak.mk
141 include $(CLEAR_VARS
)
142 LOCAL_MODULE
:= webviewchromium_webkit_strings_et.pak
143 LOCAL_MODULE_STEM
:= et
144 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_et.pak
145 include $(LOCAL_PATH
)/webview_pak.mk
147 include $(CLEAR_VARS
)
148 LOCAL_MODULE
:= webviewchromium_webkit_strings_fa.pak
149 LOCAL_MODULE_STEM
:= fa
150 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_fa.pak
151 include $(LOCAL_PATH
)/webview_pak.mk
153 include $(CLEAR_VARS
)
154 LOCAL_MODULE
:= webviewchromium_webkit_strings_fil.pak
155 LOCAL_MODULE_STEM
:= fil
156 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_fil.pak
157 include $(LOCAL_PATH
)/webview_pak.mk
159 include $(CLEAR_VARS
)
160 LOCAL_MODULE
:= webviewchromium_webkit_strings_fi.pak
161 LOCAL_MODULE_STEM
:= fi
162 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_fi.pak
163 include $(LOCAL_PATH
)/webview_pak.mk
165 include $(CLEAR_VARS
)
166 LOCAL_MODULE
:= webviewchromium_webkit_strings_fr.pak
167 LOCAL_MODULE_STEM
:= fr
168 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_fr.pak
169 include $(LOCAL_PATH
)/webview_pak.mk
171 include $(CLEAR_VARS
)
172 LOCAL_MODULE
:= webviewchromium_webkit_strings_gu.pak
173 LOCAL_MODULE_STEM
:= gu
174 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_gu.pak
175 include $(LOCAL_PATH
)/webview_pak.mk
177 include $(CLEAR_VARS
)
178 LOCAL_MODULE
:= webviewchromium_webkit_strings_he.pak
179 LOCAL_MODULE_STEM
:= he
180 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_he.pak
181 include $(LOCAL_PATH
)/webview_pak.mk
183 include $(CLEAR_VARS
)
184 LOCAL_MODULE
:= webviewchromium_webkit_strings_hi.pak
185 LOCAL_MODULE_STEM
:= hi
186 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_hi.pak
187 include $(LOCAL_PATH
)/webview_pak.mk
189 include $(CLEAR_VARS
)
190 LOCAL_MODULE
:= webviewchromium_webkit_strings_hr.pak
191 LOCAL_MODULE_STEM
:= hr
192 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_hr.pak
193 include $(LOCAL_PATH
)/webview_pak.mk
195 include $(CLEAR_VARS
)
196 LOCAL_MODULE
:= webviewchromium_webkit_strings_hu.pak
197 LOCAL_MODULE_STEM
:= hu
198 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_hu.pak
199 include $(LOCAL_PATH
)/webview_pak.mk
201 include $(CLEAR_VARS
)
202 LOCAL_MODULE
:= webviewchromium_webkit_strings_id.pak
203 LOCAL_MODULE_STEM
:= id
204 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_id.pak
205 include $(LOCAL_PATH
)/webview_pak.mk
207 include $(CLEAR_VARS
)
208 LOCAL_MODULE
:= webviewchromium_webkit_strings_it.pak
209 LOCAL_MODULE_STEM
:= it
210 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_it.pak
211 include $(LOCAL_PATH
)/webview_pak.mk
213 include $(CLEAR_VARS
)
214 LOCAL_MODULE
:= webviewchromium_webkit_strings_ja.pak
215 LOCAL_MODULE_STEM
:= ja
216 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ja.pak
217 include $(LOCAL_PATH
)/webview_pak.mk
219 include $(CLEAR_VARS
)
220 LOCAL_MODULE
:= webviewchromium_webkit_strings_kn.pak
221 LOCAL_MODULE_STEM
:= kn
222 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_kn.pak
223 include $(LOCAL_PATH
)/webview_pak.mk
225 include $(CLEAR_VARS
)
226 LOCAL_MODULE
:= webviewchromium_webkit_strings_ko.pak
227 LOCAL_MODULE_STEM
:= ko
228 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ko.pak
229 include $(LOCAL_PATH
)/webview_pak.mk
231 include $(CLEAR_VARS
)
232 LOCAL_MODULE
:= webviewchromium_webkit_strings_lt.pak
233 LOCAL_MODULE_STEM
:= lt
234 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_lt.pak
235 include $(LOCAL_PATH
)/webview_pak.mk
237 include $(CLEAR_VARS
)
238 LOCAL_MODULE
:= webviewchromium_webkit_strings_lv.pak
239 LOCAL_MODULE_STEM
:= lv
240 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_lv.pak
241 include $(LOCAL_PATH
)/webview_pak.mk
243 include $(CLEAR_VARS
)
244 LOCAL_MODULE
:= webviewchromium_webkit_strings_ml.pak
245 LOCAL_MODULE_STEM
:= ml
246 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ml.pak
247 include $(LOCAL_PATH
)/webview_pak.mk
249 include $(CLEAR_VARS
)
250 LOCAL_MODULE
:= webviewchromium_webkit_strings_mr.pak
251 LOCAL_MODULE_STEM
:= mr
252 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_mr.pak
253 include $(LOCAL_PATH
)/webview_pak.mk
255 include $(CLEAR_VARS
)
256 LOCAL_MODULE
:= webviewchromium_webkit_strings_ms.pak
257 LOCAL_MODULE_STEM
:= ms
258 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ms.pak
259 include $(LOCAL_PATH
)/webview_pak.mk
261 include $(CLEAR_VARS
)
262 LOCAL_MODULE
:= webviewchromium_webkit_strings_nb.pak
263 LOCAL_MODULE_STEM
:= nb
264 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_nb.pak
265 include $(LOCAL_PATH
)/webview_pak.mk
267 include $(CLEAR_VARS
)
268 LOCAL_MODULE
:= webviewchromium_webkit_strings_nl.pak
269 LOCAL_MODULE_STEM
:= nl
270 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_nl.pak
271 include $(LOCAL_PATH
)/webview_pak.mk
273 include $(CLEAR_VARS
)
274 LOCAL_MODULE
:= webviewchromium_webkit_strings_pl.pak
275 LOCAL_MODULE_STEM
:= pl
276 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_pl.pak
277 include $(LOCAL_PATH
)/webview_pak.mk
279 include $(CLEAR_VARS
)
280 LOCAL_MODULE
:= webviewchromium_webkit_strings_pt-BR.pak
281 LOCAL_MODULE_STEM
:= pt-BR
282 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_pt-BR.pak
283 include $(LOCAL_PATH
)/webview_pak.mk
285 include $(CLEAR_VARS
)
286 LOCAL_MODULE
:= webviewchromium_webkit_strings_pt-PT.pak
287 LOCAL_MODULE_STEM
:= pt-PT
288 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_pt-PT.pak
289 include $(LOCAL_PATH
)/webview_pak.mk
291 include $(CLEAR_VARS
)
292 LOCAL_MODULE
:= webviewchromium_webkit_strings_ro.pak
293 LOCAL_MODULE_STEM
:= ro
294 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ro.pak
295 include $(LOCAL_PATH
)/webview_pak.mk
297 include $(CLEAR_VARS
)
298 LOCAL_MODULE
:= webviewchromium_webkit_strings_ru.pak
299 LOCAL_MODULE_STEM
:= ru
300 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ru.pak
301 include $(LOCAL_PATH
)/webview_pak.mk
303 include $(CLEAR_VARS
)
304 LOCAL_MODULE
:= webviewchromium_webkit_strings_sk.pak
305 LOCAL_MODULE_STEM
:= sk
306 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_sk.pak
307 include $(LOCAL_PATH
)/webview_pak.mk
309 include $(CLEAR_VARS
)
310 LOCAL_MODULE
:= webviewchromium_webkit_strings_sl.pak
311 LOCAL_MODULE_STEM
:= sl
312 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_sl.pak
313 include $(LOCAL_PATH
)/webview_pak.mk
315 include $(CLEAR_VARS
)
316 LOCAL_MODULE
:= webviewchromium_webkit_strings_sr.pak
317 LOCAL_MODULE_STEM
:= sr
318 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_sr.pak
319 include $(LOCAL_PATH
)/webview_pak.mk
321 include $(CLEAR_VARS
)
322 LOCAL_MODULE
:= webviewchromium_webkit_strings_sv.pak
323 LOCAL_MODULE_STEM
:= sv
324 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_sv.pak
325 include $(LOCAL_PATH
)/webview_pak.mk
327 include $(CLEAR_VARS
)
328 LOCAL_MODULE
:= webviewchromium_webkit_strings_sw.pak
329 LOCAL_MODULE_STEM
:= sw
330 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_sw.pak
331 include $(LOCAL_PATH
)/webview_pak.mk
333 include $(CLEAR_VARS
)
334 LOCAL_MODULE
:= webviewchromium_webkit_strings_ta.pak
335 LOCAL_MODULE_STEM
:= ta
336 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_ta.pak
337 include $(LOCAL_PATH
)/webview_pak.mk
339 include $(CLEAR_VARS
)
340 LOCAL_MODULE
:= webviewchromium_webkit_strings_te.pak
341 LOCAL_MODULE_STEM
:= te
342 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_te.pak
343 include $(LOCAL_PATH
)/webview_pak.mk
345 include $(CLEAR_VARS
)
346 LOCAL_MODULE
:= webviewchromium_webkit_strings_th.pak
347 LOCAL_MODULE_STEM
:= th
348 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_th.pak
349 include $(LOCAL_PATH
)/webview_pak.mk
351 include $(CLEAR_VARS
)
352 LOCAL_MODULE
:= webviewchromium_webkit_strings_tr.pak
353 LOCAL_MODULE_STEM
:= tr
354 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_tr.pak
355 include $(LOCAL_PATH
)/webview_pak.mk
357 include $(CLEAR_VARS
)
358 LOCAL_MODULE
:= webviewchromium_webkit_strings_uk.pak
359 LOCAL_MODULE_STEM
:= uk
360 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_uk.pak
361 include $(LOCAL_PATH
)/webview_pak.mk
363 include $(CLEAR_VARS
)
364 LOCAL_MODULE
:= webviewchromium_webkit_strings_vi.pak
365 LOCAL_MODULE_STEM
:= vi
366 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_vi.pak
367 include $(LOCAL_PATH
)/webview_pak.mk
369 include $(CLEAR_VARS
)
370 LOCAL_MODULE
:= webviewchromium_webkit_strings_zh-CN.pak
371 LOCAL_MODULE_STEM
:= zh-CN
372 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_zh-CN.pak
373 include $(LOCAL_PATH
)/webview_pak.mk
375 include $(CLEAR_VARS
)
376 LOCAL_MODULE
:= webviewchromium_webkit_strings_zh-TW.pak
377 LOCAL_MODULE_STEM
:= zh-TW
378 LOCAL_BUILT_MODULE_STEM
:= content
/app
/strings
/content_strings_zh-TW.pak
379 include $(LOCAL_PATH
)/webview_pak.mk