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 LOCAL_SRC_FILES
:= $(call all-java-files-under
, java
/src
)
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
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
)
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.
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
/net
/CertificateMimeType.java \
60 $(call intermediates-dir-for
,GYP
,shared
)/templates
/org
/chromium
/net
/CertVerifyResultAndroid.java \
61 $(call intermediates-dir-for
,GYP
,shared
)/templates
/org
/chromium
/net
/NetError.java \
62 $(call intermediates-dir-for
,GYP
,shared
)/templates
/org
/chromium
/net
/PrivateKeyType.java \
63 $(call intermediates-dir-for
,GYP
,shared
)/templates
/org
/chromium
/ui
/WindowOpenDisposition.java \
65 # content dependencies on java components that are provided by the system on
67 LOCAL_STATIC_JAVA_LIBRARIES
+= jsr305 guava
69 include $(BUILD_STATIC_JAVA_LIBRARY
)
72 ########################################################
73 # These packages are the resource paks used by webview.
76 LOCAL_MODULE
:= webviewchromium_pak
77 LOCAL_MODULE_STEM
:= webviewchromium
78 LOCAL_BUILT_MODULE_STEM
:= android_webview_apk
/assets
/webviewchromium.pak
79 include $(LOCAL_PATH
)/webview_pak.mk
82 LOCAL_MODULE
:= webviewchromium_webkit_strings_am.pak
83 LOCAL_MODULE_STEM
:= am
84 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_am.pak
85 include $(LOCAL_PATH
)/webview_pak.mk
88 LOCAL_MODULE
:= webviewchromium_webkit_strings_ar.pak
89 LOCAL_MODULE_STEM
:= ar
90 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ar.pak
91 include $(LOCAL_PATH
)/webview_pak.mk
94 LOCAL_MODULE
:= webviewchromium_webkit_strings_bg.pak
95 LOCAL_MODULE_STEM
:= bg
96 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_bg.pak
97 include $(LOCAL_PATH
)/webview_pak.mk
100 LOCAL_MODULE
:= webviewchromium_webkit_strings_bn.pak
101 LOCAL_MODULE_STEM
:= bn
102 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_bn.pak
103 include $(LOCAL_PATH
)/webview_pak.mk
105 include $(CLEAR_VARS
)
106 LOCAL_MODULE
:= webviewchromium_webkit_strings_ca.pak
107 LOCAL_MODULE_STEM
:= ca
108 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ca.pak
109 include $(LOCAL_PATH
)/webview_pak.mk
111 include $(CLEAR_VARS
)
112 LOCAL_MODULE
:= webviewchromium_webkit_strings_cs.pak
113 LOCAL_MODULE_STEM
:= cs
114 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_cs.pak
115 include $(LOCAL_PATH
)/webview_pak.mk
117 include $(CLEAR_VARS
)
118 LOCAL_MODULE
:= webviewchromium_webkit_strings_da.pak
119 LOCAL_MODULE_STEM
:= da
120 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_da.pak
121 include $(LOCAL_PATH
)/webview_pak.mk
123 include $(CLEAR_VARS
)
124 LOCAL_MODULE
:= webviewchromium_webkit_strings_de.pak
125 LOCAL_MODULE_STEM
:= de
126 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_de.pak
127 include $(LOCAL_PATH
)/webview_pak.mk
129 include $(CLEAR_VARS
)
130 LOCAL_MODULE
:= webviewchromium_webkit_strings_el.pak
131 LOCAL_MODULE_STEM
:= el
132 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_el.pak
133 include $(LOCAL_PATH
)/webview_pak.mk
135 include $(CLEAR_VARS
)
136 LOCAL_MODULE
:= webviewchromium_webkit_strings_en-GB.pak
137 LOCAL_MODULE_STEM
:= en-GB
138 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_en-GB.pak
139 include $(LOCAL_PATH
)/webview_pak.mk
141 include $(CLEAR_VARS
)
142 LOCAL_MODULE
:= webviewchromium_webkit_strings_en-US.pak
143 LOCAL_MODULE_STEM
:= en-US
144 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_en-US.pak
145 include $(LOCAL_PATH
)/webview_pak.mk
147 include $(CLEAR_VARS
)
148 LOCAL_MODULE
:= webviewchromium_webkit_strings_es-419.pak
149 LOCAL_MODULE_STEM
:= es-419
150 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_es-419.pak
151 include $(LOCAL_PATH
)/webview_pak.mk
153 include $(CLEAR_VARS
)
154 LOCAL_MODULE
:= webviewchromium_webkit_strings_es.pak
155 LOCAL_MODULE_STEM
:= es
156 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_es.pak
157 include $(LOCAL_PATH
)/webview_pak.mk
159 include $(CLEAR_VARS
)
160 LOCAL_MODULE
:= webviewchromium_webkit_strings_et.pak
161 LOCAL_MODULE_STEM
:= et
162 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_et.pak
163 include $(LOCAL_PATH
)/webview_pak.mk
165 include $(CLEAR_VARS
)
166 LOCAL_MODULE
:= webviewchromium_webkit_strings_fa.pak
167 LOCAL_MODULE_STEM
:= fa
168 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_fa.pak
169 include $(LOCAL_PATH
)/webview_pak.mk
171 include $(CLEAR_VARS
)
172 LOCAL_MODULE
:= webviewchromium_webkit_strings_fil.pak
173 LOCAL_MODULE_STEM
:= fil
174 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_fil.pak
175 include $(LOCAL_PATH
)/webview_pak.mk
177 include $(CLEAR_VARS
)
178 LOCAL_MODULE
:= webviewchromium_webkit_strings_fi.pak
179 LOCAL_MODULE_STEM
:= fi
180 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_fi.pak
181 include $(LOCAL_PATH
)/webview_pak.mk
183 include $(CLEAR_VARS
)
184 LOCAL_MODULE
:= webviewchromium_webkit_strings_fr.pak
185 LOCAL_MODULE_STEM
:= fr
186 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_fr.pak
187 include $(LOCAL_PATH
)/webview_pak.mk
189 include $(CLEAR_VARS
)
190 LOCAL_MODULE
:= webviewchromium_webkit_strings_gu.pak
191 LOCAL_MODULE_STEM
:= gu
192 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_gu.pak
193 include $(LOCAL_PATH
)/webview_pak.mk
195 include $(CLEAR_VARS
)
196 LOCAL_MODULE
:= webviewchromium_webkit_strings_he.pak
197 LOCAL_MODULE_STEM
:= he
198 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_he.pak
199 include $(LOCAL_PATH
)/webview_pak.mk
201 include $(CLEAR_VARS
)
202 LOCAL_MODULE
:= webviewchromium_webkit_strings_hi.pak
203 LOCAL_MODULE_STEM
:= hi
204 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_hi.pak
205 include $(LOCAL_PATH
)/webview_pak.mk
207 include $(CLEAR_VARS
)
208 LOCAL_MODULE
:= webviewchromium_webkit_strings_hr.pak
209 LOCAL_MODULE_STEM
:= hr
210 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_hr.pak
211 include $(LOCAL_PATH
)/webview_pak.mk
213 include $(CLEAR_VARS
)
214 LOCAL_MODULE
:= webviewchromium_webkit_strings_hu.pak
215 LOCAL_MODULE_STEM
:= hu
216 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_hu.pak
217 include $(LOCAL_PATH
)/webview_pak.mk
219 include $(CLEAR_VARS
)
220 LOCAL_MODULE
:= webviewchromium_webkit_strings_id.pak
221 LOCAL_MODULE_STEM
:= id
222 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_id.pak
223 include $(LOCAL_PATH
)/webview_pak.mk
225 include $(CLEAR_VARS
)
226 LOCAL_MODULE
:= webviewchromium_webkit_strings_it.pak
227 LOCAL_MODULE_STEM
:= it
228 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_it.pak
229 include $(LOCAL_PATH
)/webview_pak.mk
231 include $(CLEAR_VARS
)
232 LOCAL_MODULE
:= webviewchromium_webkit_strings_ja.pak
233 LOCAL_MODULE_STEM
:= ja
234 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ja.pak
235 include $(LOCAL_PATH
)/webview_pak.mk
237 include $(CLEAR_VARS
)
238 LOCAL_MODULE
:= webviewchromium_webkit_strings_kn.pak
239 LOCAL_MODULE_STEM
:= kn
240 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_kn.pak
241 include $(LOCAL_PATH
)/webview_pak.mk
243 include $(CLEAR_VARS
)
244 LOCAL_MODULE
:= webviewchromium_webkit_strings_ko.pak
245 LOCAL_MODULE_STEM
:= ko
246 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ko.pak
247 include $(LOCAL_PATH
)/webview_pak.mk
249 include $(CLEAR_VARS
)
250 LOCAL_MODULE
:= webviewchromium_webkit_strings_lt.pak
251 LOCAL_MODULE_STEM
:= lt
252 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_lt.pak
253 include $(LOCAL_PATH
)/webview_pak.mk
255 include $(CLEAR_VARS
)
256 LOCAL_MODULE
:= webviewchromium_webkit_strings_lv.pak
257 LOCAL_MODULE_STEM
:= lv
258 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_lv.pak
259 include $(LOCAL_PATH
)/webview_pak.mk
261 include $(CLEAR_VARS
)
262 LOCAL_MODULE
:= webviewchromium_webkit_strings_ml.pak
263 LOCAL_MODULE_STEM
:= ml
264 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ml.pak
265 include $(LOCAL_PATH
)/webview_pak.mk
267 include $(CLEAR_VARS
)
268 LOCAL_MODULE
:= webviewchromium_webkit_strings_mr.pak
269 LOCAL_MODULE_STEM
:= mr
270 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_mr.pak
271 include $(LOCAL_PATH
)/webview_pak.mk
273 include $(CLEAR_VARS
)
274 LOCAL_MODULE
:= webviewchromium_webkit_strings_ms.pak
275 LOCAL_MODULE_STEM
:= ms
276 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ms.pak
277 include $(LOCAL_PATH
)/webview_pak.mk
279 include $(CLEAR_VARS
)
280 LOCAL_MODULE
:= webviewchromium_webkit_strings_nb.pak
281 LOCAL_MODULE_STEM
:= nb
282 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_nb.pak
283 include $(LOCAL_PATH
)/webview_pak.mk
285 include $(CLEAR_VARS
)
286 LOCAL_MODULE
:= webviewchromium_webkit_strings_nl.pak
287 LOCAL_MODULE_STEM
:= nl
288 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_nl.pak
289 include $(LOCAL_PATH
)/webview_pak.mk
291 include $(CLEAR_VARS
)
292 LOCAL_MODULE
:= webviewchromium_webkit_strings_pl.pak
293 LOCAL_MODULE_STEM
:= pl
294 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_pl.pak
295 include $(LOCAL_PATH
)/webview_pak.mk
297 include $(CLEAR_VARS
)
298 LOCAL_MODULE
:= webviewchromium_webkit_strings_pt-BR.pak
299 LOCAL_MODULE_STEM
:= pt-BR
300 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_pt-BR.pak
301 include $(LOCAL_PATH
)/webview_pak.mk
303 include $(CLEAR_VARS
)
304 LOCAL_MODULE
:= webviewchromium_webkit_strings_pt-PT.pak
305 LOCAL_MODULE_STEM
:= pt-PT
306 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_pt-PT.pak
307 include $(LOCAL_PATH
)/webview_pak.mk
309 include $(CLEAR_VARS
)
310 LOCAL_MODULE
:= webviewchromium_webkit_strings_ro.pak
311 LOCAL_MODULE_STEM
:= ro
312 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ro.pak
313 include $(LOCAL_PATH
)/webview_pak.mk
315 include $(CLEAR_VARS
)
316 LOCAL_MODULE
:= webviewchromium_webkit_strings_ru.pak
317 LOCAL_MODULE_STEM
:= ru
318 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ru.pak
319 include $(LOCAL_PATH
)/webview_pak.mk
321 include $(CLEAR_VARS
)
322 LOCAL_MODULE
:= webviewchromium_webkit_strings_sk.pak
323 LOCAL_MODULE_STEM
:= sk
324 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_sk.pak
325 include $(LOCAL_PATH
)/webview_pak.mk
327 include $(CLEAR_VARS
)
328 LOCAL_MODULE
:= webviewchromium_webkit_strings_sl.pak
329 LOCAL_MODULE_STEM
:= sl
330 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_sl.pak
331 include $(LOCAL_PATH
)/webview_pak.mk
333 include $(CLEAR_VARS
)
334 LOCAL_MODULE
:= webviewchromium_webkit_strings_sr.pak
335 LOCAL_MODULE_STEM
:= sr
336 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_sr.pak
337 include $(LOCAL_PATH
)/webview_pak.mk
339 include $(CLEAR_VARS
)
340 LOCAL_MODULE
:= webviewchromium_webkit_strings_sv.pak
341 LOCAL_MODULE_STEM
:= sv
342 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_sv.pak
343 include $(LOCAL_PATH
)/webview_pak.mk
345 include $(CLEAR_VARS
)
346 LOCAL_MODULE
:= webviewchromium_webkit_strings_sw.pak
347 LOCAL_MODULE_STEM
:= sw
348 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_sw.pak
349 include $(LOCAL_PATH
)/webview_pak.mk
351 include $(CLEAR_VARS
)
352 LOCAL_MODULE
:= webviewchromium_webkit_strings_ta.pak
353 LOCAL_MODULE_STEM
:= ta
354 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_ta.pak
355 include $(LOCAL_PATH
)/webview_pak.mk
357 include $(CLEAR_VARS
)
358 LOCAL_MODULE
:= webviewchromium_webkit_strings_te.pak
359 LOCAL_MODULE_STEM
:= te
360 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_te.pak
361 include $(LOCAL_PATH
)/webview_pak.mk
363 include $(CLEAR_VARS
)
364 LOCAL_MODULE
:= webviewchromium_webkit_strings_th.pak
365 LOCAL_MODULE_STEM
:= th
366 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_th.pak
367 include $(LOCAL_PATH
)/webview_pak.mk
369 include $(CLEAR_VARS
)
370 LOCAL_MODULE
:= webviewchromium_webkit_strings_tr.pak
371 LOCAL_MODULE_STEM
:= tr
372 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_tr.pak
373 include $(LOCAL_PATH
)/webview_pak.mk
375 include $(CLEAR_VARS
)
376 LOCAL_MODULE
:= webviewchromium_webkit_strings_uk.pak
377 LOCAL_MODULE_STEM
:= uk
378 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_uk.pak
379 include $(LOCAL_PATH
)/webview_pak.mk
381 include $(CLEAR_VARS
)
382 LOCAL_MODULE
:= webviewchromium_webkit_strings_vi.pak
383 LOCAL_MODULE_STEM
:= vi
384 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_vi.pak
385 include $(LOCAL_PATH
)/webview_pak.mk
387 include $(CLEAR_VARS
)
388 LOCAL_MODULE
:= webviewchromium_webkit_strings_zh-CN.pak
389 LOCAL_MODULE_STEM
:= zh-CN
390 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_zh-CN.pak
391 include $(LOCAL_PATH
)/webview_pak.mk
393 include $(CLEAR_VARS
)
394 LOCAL_MODULE
:= webviewchromium_webkit_strings_zh-TW.pak
395 LOCAL_MODULE_STEM
:= zh-TW
396 LOCAL_BUILT_MODULE_STEM
:= webkit
/webkit_strings_zh-TW.pak
397 include $(LOCAL_PATH
)/webview_pak.mk