Merge "Only zip2zip bundle resources if they exist" am: 6a806e76d4
am: 6053f39b6c
am: bcbea5355f
Change-Id: If25fe3286b1637d2f31d9c5bfb4a4dc04efa4768
This commit is contained in:
commit
e520633e6c
|
@ -711,15 +711,18 @@ ifeq ($(LOCAL_USE_AAPT2),true)
|
||||||
endif
|
endif
|
||||||
ifeq ($(full_classes_jar),)
|
ifeq ($(full_classes_jar),)
|
||||||
# We don't build jar, need to add the Java resources here.
|
# We don't build jar, need to add the Java resources here.
|
||||||
$(if $(PRIVATE_EXTRA_JAR_ARGS),$(call create-java-resources-jar,$@.parts/res.zip))
|
$(if $(PRIVATE_EXTRA_JAR_ARGS),\
|
||||||
|
$(call create-java-resources-jar,$@.parts/res.zip) && \
|
||||||
|
$(ZIP2ZIP) -i $@.parts/res.zip -o $@.parts/res.zip.tmp "**/*:root/" && \
|
||||||
|
mv -f $@.parts/res.zip.tmp $@.parts/res.zip)
|
||||||
else # full_classes_jar
|
else # full_classes_jar
|
||||||
$(call create-dex-jar,$@.parts/dex.zip,$(PRIVATE_DEX_FILE))
|
$(call create-dex-jar,$@.parts/dex.zip,$(PRIVATE_DEX_FILE))
|
||||||
$(ZIP2ZIP) -i $@.parts/dex.zip -o $@.parts/dex.zip.tmp "classes*.dex:dex/"
|
$(ZIP2ZIP) -i $@.parts/dex.zip -o $@.parts/dex.zip.tmp "classes*.dex:dex/"
|
||||||
mv -f $@.parts/dex.zip.tmp $@.parts/dex.zip
|
mv -f $@.parts/dex.zip.tmp $@.parts/dex.zip
|
||||||
$(call extract-resources-jar,$@.parts/res.zip,$(PRIVATE_SOURCE_ARCHIVE))
|
$(call extract-resources-jar,$@.parts/res.zip,$(PRIVATE_SOURCE_ARCHIVE))
|
||||||
endif # full_classes_jar
|
|
||||||
$(ZIP2ZIP) -i $@.parts/res.zip -o $@.parts/res.zip.tmp "**/*:root/"
|
$(ZIP2ZIP) -i $@.parts/res.zip -o $@.parts/res.zip.tmp "**/*:root/"
|
||||||
mv -f $@.parts/res.zip.tmp $@.parts/res.zip
|
mv -f $@.parts/res.zip.tmp $@.parts/res.zip
|
||||||
|
endif # full_classes_jar
|
||||||
$(MERGE_ZIPS) $@ $@.parts/*.zip
|
$(MERGE_ZIPS) $@ $@.parts/*.zip
|
||||||
rm -rf $@.parts
|
rm -rf $@.parts
|
||||||
ALL_MODULES.$(LOCAL_MODULE).BUNDLE := $(my_bundle_module)
|
ALL_MODULES.$(LOCAL_MODULE).BUNDLE := $(my_bundle_module)
|
||||||
|
|
Loading…
Reference in New Issue