diff options
author | Igor Viarheichyk <viarheichyk@google.com> | 2014-06-26 14:56:21 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2014-06-26 17:27:36 -0700 |
commit | c4dfe6ef30d785219f965e42cd675f99d5d9e0be (patch) | |
tree | c729e445b55f1d1f73bcd724004df135f091a250 /core/product_config.mk | |
parent | 432cd6dd78afe9c23cd0ddf669e4f0f973a17a7c (diff) | |
download | build-c4dfe6ef30d785219f965e42cd675f99d5d9e0be.zip build-c4dfe6ef30d785219f965e42cd675f99d5d9e0be.tar.gz build-c4dfe6ef30d785219f965e42cd675f99d5d9e0be.tar.bz2 |
Add --pseudo-localize aapt parameter for builds.
Some packages can override list of locales with
LOCAL_AAPT_INCLUDE_ALL_RESOURCES parameter, disabling
pseudolocalization. Adding new --pseudo-localize flag to
aapt if pseudo-locales are specified in product locales
list solves this issue.
Change-Id: Iae705d4fe99453650339fd1ca65d1005671b3e4f
Diffstat (limited to 'core/product_config.mk')
-rw-r--r-- | core/product_config.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/product_config.mk b/core/product_config.mk index f32a596..9468362 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -324,6 +324,13 @@ PRODUCT_AAPT_CONFIG := \ PRODUCT_AAPT_PREF_CONFIG := \ $(subst $(space),$(comma),$(strip $(PRODUCT_AAPT_PREF_CONFIG))) +# product-scoped aapt flags +PRODUCT_AAPT_FLAGS := +ifneq ($(filter en_XA ar_XB,$(PRODUCT_LOCALES)),) +# Force generating resources for pseudo-locales. +PRODUCT_AAPT_FLAGS += --pseudo-localize +endif + PRODUCT_BRAND := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_BRAND)) PRODUCT_MODEL := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_MODEL)) |