diff options
author | Ying Wang <wangying@google.com> | 2014-07-22 15:42:11 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2014-07-22 17:37:11 -0700 |
commit | 1425e2d8c08663987f2d1004c55e6060d1ce6dfe (patch) | |
tree | 229d2fb2fcdd49625fe318354390ed03d746a386 /core/definitions.mk | |
parent | 337bbf89d92f28bff85273ffefb71d3e5d7f57fc (diff) | |
download | build-1425e2d8c08663987f2d1004c55e6060d1ce6dfe.zip build-1425e2d8c08663987f2d1004c55e6060d1ce6dfe.tar.gz build-1425e2d8c08663987f2d1004c55e6060d1ce6dfe.tar.bz2 |
Support LOCAL_PACKAGE_SPLITS.
Support LOCAL_PACKAGE_SPLITS, which accepts a list of resource lables
and generates multiple apks. The build system sets up rules to sign and
zipalign the split apks.
Bug: 16319961
Change-Id: I344b3d1c7eb158c6d0df879093d666a89870aadd
Diffstat (limited to 'core/definitions.mk')
-rw-r--r-- | core/definitions.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/definitions.mk b/core/definitions.mk index 6656591..e433b69 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1805,6 +1805,18 @@ $(hide) $(ZIPALIGN) -f 4 $@.unaligned $@.aligned $(hide) mv $@.aligned $@ endef +# Build a split APK +# The splti APKs are already built in the same command building the base APK. +# We only need to do zipalign and signing etc. +# This macro must be called with $(eval). +# $(1): the path to the built split APK. +# $(2): the path to the base APK. +define build-split-apk +$(1) : $(2) + $$(sign-package) + $$(align-package) +endef + define install-dex-debug $(hide) if [ -f "$(PRIVATE_INTERMEDIATES_DIR)/classes.dex" ]; then \ mkdir -p $(TOP)/dalvik/DEBUG-FILES; \ |