1# Copyright 2014 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 file defines resources-related build variables which are shared by the 6# android_webview/Android.mk file and the frameworks/webview/chromium/Android.mk 7# file. 8 9android_webview_manifest_file := $(call my-dir)/AndroidManifest.xml 10 11# Resources. 12# The res_hack folder is necessary to defeat a build system "optimization" which 13# ends up skipping running aapt if there are no resource files in any of the 14# resources dirs. Unfortunately, because all of our resources are generated at 15# build time and because this check is performed when processing the Makefile 16# it tests positive when building from clean resulting in a build failure. 17# We defeat the optimization by including an empty values.xml file in the list. 18android_webview_resources_dirs := \ 19 $(call my-dir)/res_hack \ 20 $(call intermediates-dir-for,GYP,shared)/android_webview_jarjar_content_resources/jarjar_res \ 21 $(call intermediates-dir-for,GYP,shared)/android_webview_jarjar_ui_resources/jarjar_res \ 22 $(call intermediates-dir-for,GYP,ui_strings_grd)/ui_strings_grd/res_grit \ 23 $(call intermediates-dir-for,GYP,content_strings_grd)/content_strings_grd/res_grit 24 25android_webview_asset_dirs := \ 26 $(call intermediates-dir-for,APPS,webviewchromium-paks) 27 28android_webview_aapt_flags := --auto-add-overlay 29android_webview_aapt_flags += --extra-packages org.chromium.ui 30android_webview_aapt_flags += --extra-packages org.chromium.content 31android_webview_aapt_flags += -0 pak 32 33android_webview_system_pak_targets := \ 34 webviewchromium_pak \ 35 webviewchromium_webkit_strings_am.pak \ 36 webviewchromium_webkit_strings_ar.pak \ 37 webviewchromium_webkit_strings_bg.pak \ 38 webviewchromium_webkit_strings_bn.pak \ 39 webviewchromium_webkit_strings_ca.pak \ 40 webviewchromium_webkit_strings_cs.pak \ 41 webviewchromium_webkit_strings_da.pak \ 42 webviewchromium_webkit_strings_de.pak \ 43 webviewchromium_webkit_strings_el.pak \ 44 webviewchromium_webkit_strings_en-GB.pak \ 45 webviewchromium_webkit_strings_en-US.pak \ 46 webviewchromium_webkit_strings_es-419.pak \ 47 webviewchromium_webkit_strings_es.pak \ 48 webviewchromium_webkit_strings_et.pak \ 49 webviewchromium_webkit_strings_fa.pak \ 50 webviewchromium_webkit_strings_fil.pak \ 51 webviewchromium_webkit_strings_fi.pak \ 52 webviewchromium_webkit_strings_fr.pak \ 53 webviewchromium_webkit_strings_gu.pak \ 54 webviewchromium_webkit_strings_he.pak \ 55 webviewchromium_webkit_strings_hi.pak \ 56 webviewchromium_webkit_strings_hr.pak \ 57 webviewchromium_webkit_strings_hu.pak \ 58 webviewchromium_webkit_strings_id.pak \ 59 webviewchromium_webkit_strings_it.pak \ 60 webviewchromium_webkit_strings_ja.pak \ 61 webviewchromium_webkit_strings_kn.pak \ 62 webviewchromium_webkit_strings_ko.pak \ 63 webviewchromium_webkit_strings_lt.pak \ 64 webviewchromium_webkit_strings_lv.pak \ 65 webviewchromium_webkit_strings_ml.pak \ 66 webviewchromium_webkit_strings_mr.pak \ 67 webviewchromium_webkit_strings_ms.pak \ 68 webviewchromium_webkit_strings_nb.pak \ 69 webviewchromium_webkit_strings_nl.pak \ 70 webviewchromium_webkit_strings_pl.pak \ 71 webviewchromium_webkit_strings_pt-BR.pak \ 72 webviewchromium_webkit_strings_pt-PT.pak \ 73 webviewchromium_webkit_strings_ro.pak \ 74 webviewchromium_webkit_strings_ru.pak \ 75 webviewchromium_webkit_strings_sk.pak \ 76 webviewchromium_webkit_strings_sl.pak \ 77 webviewchromium_webkit_strings_sr.pak \ 78 webviewchromium_webkit_strings_sv.pak \ 79 webviewchromium_webkit_strings_sw.pak \ 80 webviewchromium_webkit_strings_ta.pak \ 81 webviewchromium_webkit_strings_te.pak \ 82 webviewchromium_webkit_strings_th.pak \ 83 webviewchromium_webkit_strings_tr.pak \ 84 webviewchromium_webkit_strings_uk.pak \ 85 webviewchromium_webkit_strings_vi.pak \ 86 webviewchromium_webkit_strings_zh-CN.pak \ 87 webviewchromium_webkit_strings_zh-TW.pak 88 89android_webview_final_pak_names := \ 90 $(patsubst webviewchromium_pak,webviewchromium.pak, \ 91 $(patsubst webviewchromium_webkit_strings_%,%, \ 92 $(android_webview_system_pak_targets))) 93 94# This list will be used to force the .pak files to be copied into the 95# intermediates folder before invoking appt from the Android 'glue layer' 96# makefile. 97android_webview_intermediates_pak_additional_deps := \ 98 $(foreach name,$(android_webview_final_pak_names), \ 99 $(call intermediates-dir-for,APPS,webviewchromium-paks)/$(name)) 100 101# This is the stamp file for the android_webview_resources target. 102android_webview_resources_stamp := \ 103 $(call intermediates-dir-for,GYP,android_webview_resources)/android_webview_resources.stamp 104