Merge "Fix depfile output from dexpreopt strip script"

This commit is contained in:
Treehugger Robot 2019-01-08 02:19:35 +00:00 committed by Gerrit Code Review
commit dc1f4499d0
2 changed files with 6 additions and 4 deletions

View file

@ -678,8 +678,8 @@ ifneq ($(BUILD_PLATFORM_ZIP),)
@# Keep a copy of apk with classes.dex unstripped @# Keep a copy of apk with classes.dex unstripped
$(hide) cp -f $@ $(dir $@)package.dex.apk $(hide) cp -f $@ $(dir $@)package.dex.apk
endif # BUILD_PLATFORM_ZIP endif # BUILD_PLATFORM_ZIP
$(PRIVATE_STRIP_SCRIPT) $@ $@.tmp mv -f $@ $@.tmp
mv -f $@.tmp $@ $(PRIVATE_STRIP_SCRIPT) $@.tmp $@
endif # LOCAL_DEX_PREOPT endif # LOCAL_DEX_PREOPT
$(sign-package) $(sign-package)
ifdef LOCAL_COMPRESSED_MODULE ifdef LOCAL_COMPRESSED_MODULE

View file

@ -357,12 +357,14 @@ endif
ifneq ($(BUILD_PLATFORM_ZIP),) ifneq ($(BUILD_PLATFORM_ZIP),)
$(built_module) : .KATI_IMPLICIT_OUTPUTS := $(dir $(LOCAL_BUILT_MODULE))package.dex.apk $(built_module) : .KATI_IMPLICIT_OUTPUTS := $(dir $(LOCAL_BUILT_MODULE))package.dex.apk
endif endif
ifneq ($(LOCAL_CERTIFICATE),PRESIGNED)
ifdef LOCAL_DEX_PREOPT ifdef LOCAL_DEX_PREOPT
$(built_module) : PRIVATE_STRIP_SCRIPT := $(intermediates)/strip.sh $(built_module) : PRIVATE_STRIP_SCRIPT := $(intermediates)/strip.sh
$(built_module) : $(intermediates)/strip.sh $(built_module) : $(intermediates)/strip.sh
$(built_module) : | $(DEXPREOPT_GEN_DEPS) $(built_module) : | $(DEXPREOPT_GEN_DEPS)
$(built_module) : .KATI_DEPFILE := $(built_module).d $(built_module) : .KATI_DEPFILE := $(built_module).d
endif endif
endif
$(built_module) : $(my_prebuilt_src_file) | $(ZIPALIGN) $(ZIP2ZIP) $(SIGNAPK_JAR) $(built_module) : $(my_prebuilt_src_file) | $(ZIPALIGN) $(ZIP2ZIP) $(SIGNAPK_JAR)
$(transform-prebuilt-to-target) $(transform-prebuilt-to-target)
$(uncompress-prebuilt-embedded-jni-libs) $(uncompress-prebuilt-embedded-jni-libs)
@ -387,8 +389,8 @@ endif
$(run-appcompat) $(run-appcompat)
endif # module_run_appcompat endif # module_run_appcompat
ifdef LOCAL_DEX_PREOPT ifdef LOCAL_DEX_PREOPT
$(PRIVATE_STRIP_SCRIPT) $@ $@.tmp mv -f $@ $@.tmp
mv -f $@.tmp $@ $(PRIVATE_STRIP_SCRIPT) $@.tmp $@
endif # LOCAL_DEX_PREOPT endif # LOCAL_DEX_PREOPT
$(sign-package) $(sign-package)
# No need for align-package because sign-package takes care of alignment # No need for align-package because sign-package takes care of alignment