forked from openkylin/platform_build
am 84ed6fa2: Disable "-t" for acp.
* commit '84ed6fa27b883de8ba7b41ddecaa2179e7f4b321': Disable "-t" for acp.
This commit is contained in:
commit
4d3ac24daf
|
@ -520,7 +520,7 @@ ifndef LOCAL_UNINSTALLABLE_MODULE
|
|||
ifneq ($(LOCAL_ACP_UNAVAILABLE),true)
|
||||
$(LOCAL_INSTALLED_MODULE): $(LOCAL_BUILT_MODULE) | $(ACP)
|
||||
@echo "Install: $@"
|
||||
$(copy-file-to-target)
|
||||
$(copy-file-to-new-target)
|
||||
else
|
||||
$(LOCAL_INSTALLED_MODULE): $(LOCAL_BUILT_MODULE)
|
||||
@echo "Install: $@"
|
||||
|
@ -534,7 +534,7 @@ $(installed_odex) : $(built_odex) | $(ACP)
|
|||
@echo "Install: $@"
|
||||
$(copy-file-to-target)
|
||||
|
||||
$(LOCAL_INSTALLED_MODULE) : | $(installed_odex)
|
||||
$(LOCAL_INSTALLED_MODULE) : $(installed_odex)
|
||||
endif
|
||||
|
||||
endif # !LOCAL_UNINSTALLABLE_MODULE
|
||||
|
|
|
@ -1634,9 +1634,12 @@ endef
|
|||
# Copy a single file from one place to another,
|
||||
# preserving permissions and overwriting any existing
|
||||
# file.
|
||||
# We disable the "-t" option for acp can not handle
|
||||
# high resolution timestamp correctly on file systems like ext4.
|
||||
# Therefore copy-file-to-target is the same as copy-file-to-new-target.
|
||||
define copy-file-to-target
|
||||
@mkdir -p $(dir $@)
|
||||
$(hide) $(ACP) -fpt $< $@
|
||||
$(hide) $(ACP) -fp $< $@
|
||||
endef
|
||||
|
||||
# The same as copy-file-to-target, but use the local
|
||||
|
@ -1725,7 +1728,7 @@ endif
|
|||
# Command to copy the file with acp, if proguard is disabled.
|
||||
define proguard-disabled-commands
|
||||
@echo Copying: $@
|
||||
$(hide) $(ACP) $< $@
|
||||
$(hide) $(ACP) -fp $< $@
|
||||
endef
|
||||
|
||||
# Command to call Proguard
|
||||
|
|
|
@ -51,7 +51,7 @@ $(_dbj_odex) : $(_dbj_src_jar) | $(ACP) $(DEXPREOPT) $(DEXOPT)
|
|||
@echo "Dexpreopt Boot Jar: $$@"
|
||||
$(hide) rm -f $$@
|
||||
$(hide) mkdir -p $$(dir $$@)
|
||||
$(hide) $(ACP) -fpt $$< $$(PRIVATE_DBJ_JAR)
|
||||
$(hide) $(ACP) -fp $$< $$(PRIVATE_DBJ_JAR)
|
||||
$$(call dexpreopt-one-file,$$(PRIVATE_DBJ_JAR),$$@)
|
||||
|
||||
$(_dbj_jar_no_dex) : $(_dbj_src_jar) | $(ACP) $(AAPT)
|
||||
|
@ -60,6 +60,7 @@ $(_dbj_jar_no_dex) : $(_dbj_src_jar) | $(ACP) $(AAPT)
|
|||
|
||||
$(eval _dbj_jar :=)
|
||||
$(eval _dbj_odex :=)
|
||||
$(eval _dbj_jar_no_dex :=)
|
||||
$(eval _dbj_src_jar :=)
|
||||
endef
|
||||
|
||||
|
|
|
@ -237,7 +237,7 @@ $(full_classes_jarjar_jar): $(full_classes_compiled_jar) | $(JARJAR)
|
|||
else
|
||||
$(full_classes_jarjar_jar): $(full_classes_compiled_jar) | $(ACP)
|
||||
@echo Copying: $@
|
||||
$(hide) $(ACP) $< $@
|
||||
$(hide) $(ACP) -fp $< $@
|
||||
endif
|
||||
|
||||
ifeq ($(LOCAL_IS_STATIC_JAVA_LIBRARY),true)
|
||||
|
@ -275,7 +275,7 @@ endif
|
|||
# Keep a copy of the jar just before proguard processing.
|
||||
$(full_classes_jar): $(full_classes_emma_jar) | $(ACP)
|
||||
@echo Copying: $@
|
||||
$(hide) $(ACP) $< $@
|
||||
$(hide) $(ACP) -fp $< $@
|
||||
|
||||
# Run proguard if necessary, otherwise just copy the file.
|
||||
proguard_dictionary := $(intermediates.COMMON)/proguard_dictionary
|
||||
|
@ -337,7 +337,7 @@ $(built_dex_intermediate): $(full_classes_proguard_jar) $(DX)
|
|||
$(transform-classes.jar-to-dex)
|
||||
$(built_dex): $(built_dex_intermediate) | $(ACP)
|
||||
@echo Copying: $@
|
||||
$(hide) $(ACP) $< $@
|
||||
$(hide) $(ACP) -fp $< $@
|
||||
ifneq ($(GENERATE_DEX_DEBUG),)
|
||||
$(install-dex-debug)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue