diff options
author | Ying Wang <wangying@google.com> | 2015-01-29 18:08:00 -0800 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2015-01-30 02:17:52 +0000 |
commit | 7245b4e2bed6cef8c6bf4cc67ffd98989fde3c91 (patch) | |
tree | 9af5d8cc6c2c64193cf650e755d95f3fdf381e3e | |
parent | 0c9384d512cab94b761dcb82325e4411cbaf52c0 (diff) | |
download | build-7245b4e2bed6cef8c6bf4cc67ffd98989fde3c91.zip build-7245b4e2bed6cef8c6bf4cc67ffd98989fde3c91.tar.gz build-7245b4e2bed6cef8c6bf4cc67ffd98989fde3c91.tar.bz2 |
Support dpi specific aapt flags.
With this support, you can set dpi-specific aapt flags like:
$(LOCAL_PACKAGE_NAME)_aapt_flags_hdpi := --version-code 100 \
--version-name "100
which will override the --version-code and --version-name set in the
base apk's LOCAL_AAPT_FLAGS.
Bug := 18388705
Change-Id: Ie79d7b1b6bbf7463bce51ddae04ba81384ec58dc
-rw-r--r-- | core/dpi_specific_apk.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dpi_specific_apk.mk b/core/dpi_specific_apk.mk index aad4713..0e8cbdf 100644 --- a/core/dpi_specific_apk.mk +++ b/core/dpi_specific_apk.mk @@ -8,7 +8,7 @@ built_dpi_apk := $(dpi_intermediate)/package.apk # Set up all the target-specific variables. $(built_dpi_apk): PRIVATE_MODULE := $(dpi_apk_name) -$(built_dpi_apk): PRIVATE_AAPT_FLAGS := $(LOCAL_AAPT_FLAGS) $(PRODUCT_AAPT_FLAGS) +$(built_dpi_apk): PRIVATE_AAPT_FLAGS := $(LOCAL_AAPT_FLAGS) $(PRODUCT_AAPT_FLAGS) $($(LOCAL_PACKAGE_NAME)_aapt_flags_$(my_dpi)) # Clear PRIVATE_PRODUCT_AAPT_CONFIG to include everything by default. $(built_dpi_apk): PRIVATE_PRODUCT_AAPT_CONFIG := $(built_dpi_apk): PRIVATE_PRODUCT_AAPT_PREF_CONFIG := $(my_dpi) |