Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / android_webview / build / resources_config.mk
blob107928b8a54fdc160a47a48a96e5dbc29d3540e8
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.
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.
9 android_webview_manifest_file := $(call my-dir)/AndroidManifest.xml
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.
18 android_webview_resources_dirs := \
19 $(call my-dir)/res_hack \
20 $(call my-dir)/../java/res \
21 $(call intermediates-dir-for,GYP,shared)/android_webview_jarjar_content_resources/jarjar_res \
22 $(call intermediates-dir-for,GYP,shared)/android_webview_jarjar_ui_resources/jarjar_res \
23 $(call intermediates-dir-for,GYP,ui_strings_grd)/ui_strings_grd/res_grit \
24 $(call intermediates-dir-for,GYP,content_strings_grd)/content_strings_grd/res_grit \
25 $(call intermediates-dir-for,GYP,android_webview_strings_grd)/android_webview_strings_grd/res_grit
27 android_webview_asset_dirs := \
28 $(call intermediates-dir-for,APPS,webviewchromium-paks)
30 android_webview_aapt_flags := --auto-add-overlay
31 android_webview_aapt_flags += --extra-packages org.chromium.ui
32 android_webview_aapt_flags += --extra-packages org.chromium.content
33 android_webview_aapt_flags += -0 pak
35 android_webview_system_pak_targets := \
36 webviewchromium_pak \
37 webviewchromium_webkit_strings_am.pak \
38 webviewchromium_webkit_strings_ar.pak \
39 webviewchromium_webkit_strings_bg.pak \
40 webviewchromium_webkit_strings_bn.pak \
41 webviewchromium_webkit_strings_ca.pak \
42 webviewchromium_webkit_strings_cs.pak \
43 webviewchromium_webkit_strings_da.pak \
44 webviewchromium_webkit_strings_de.pak \
45 webviewchromium_webkit_strings_el.pak \
46 webviewchromium_webkit_strings_en-GB.pak \
47 webviewchromium_webkit_strings_en-US.pak \
48 webviewchromium_webkit_strings_es-419.pak \
49 webviewchromium_webkit_strings_es.pak \
50 webviewchromium_webkit_strings_et.pak \
51 webviewchromium_webkit_strings_fa.pak \
52 webviewchromium_webkit_strings_fil.pak \
53 webviewchromium_webkit_strings_fi.pak \
54 webviewchromium_webkit_strings_fr.pak \
55 webviewchromium_webkit_strings_gu.pak \
56 webviewchromium_webkit_strings_he.pak \
57 webviewchromium_webkit_strings_hi.pak \
58 webviewchromium_webkit_strings_hr.pak \
59 webviewchromium_webkit_strings_hu.pak \
60 webviewchromium_webkit_strings_id.pak \
61 webviewchromium_webkit_strings_it.pak \
62 webviewchromium_webkit_strings_ja.pak \
63 webviewchromium_webkit_strings_kn.pak \
64 webviewchromium_webkit_strings_ko.pak \
65 webviewchromium_webkit_strings_lt.pak \
66 webviewchromium_webkit_strings_lv.pak \
67 webviewchromium_webkit_strings_ml.pak \
68 webviewchromium_webkit_strings_mr.pak \
69 webviewchromium_webkit_strings_ms.pak \
70 webviewchromium_webkit_strings_nb.pak \
71 webviewchromium_webkit_strings_nl.pak \
72 webviewchromium_webkit_strings_pl.pak \
73 webviewchromium_webkit_strings_pt-BR.pak \
74 webviewchromium_webkit_strings_pt-PT.pak \
75 webviewchromium_webkit_strings_ro.pak \
76 webviewchromium_webkit_strings_ru.pak \
77 webviewchromium_webkit_strings_sk.pak \
78 webviewchromium_webkit_strings_sl.pak \
79 webviewchromium_webkit_strings_sr.pak \
80 webviewchromium_webkit_strings_sv.pak \
81 webviewchromium_webkit_strings_sw.pak \
82 webviewchromium_webkit_strings_ta.pak \
83 webviewchromium_webkit_strings_te.pak \
84 webviewchromium_webkit_strings_th.pak \
85 webviewchromium_webkit_strings_tr.pak \
86 webviewchromium_webkit_strings_uk.pak \
87 webviewchromium_webkit_strings_vi.pak \
88 webviewchromium_webkit_strings_zh-CN.pak \
89 webviewchromium_webkit_strings_zh-TW.pak
91 android_webview_final_pak_names := \
92 $(patsubst webviewchromium_pak,webviewchromium.pak, \
93 $(patsubst webviewchromium_webkit_strings_%,%, \
94 $(android_webview_system_pak_targets)))
96 # This list will be used to force the .pak files to be copied into the
97 # intermediates folder before invoking appt from the Android 'glue layer'
98 # makefile.
99 android_webview_intermediates_pak_additional_deps := \
100 $(foreach name,$(android_webview_final_pak_names), \
101 $(call intermediates-dir-for,APPS,webviewchromium-paks)/$(name))
103 # This is the stamp file for the android_webview_resources target.
104 android_webview_resources_stamp := \
105 $(call intermediates-dir-for,GYP,android_webview_resources)/android_webview_resources.stamp