From 7d6144d34b04cb45cf0ffc15718c4b0a6271c66e Mon Sep 17 00:00:00 2001 From: Alan Leung Date: Thu, 16 Nov 2017 15:51:07 -0800 Subject: [PATCH] Rename r8 to r8-compat-proguard Test: USE_R8=false USE_D8=true m -j32 && USE_R8=true USE_D8=true m -j32 Change-Id: I2610340cf75f8db5920e33fac542f0dcf294ce29 --- core/config.mk | 2 +- core/definitions.mk | 2 +- core/java.mk | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/config.mk b/core/config.mk index f54ea5f8ed..c993c1b6f3 100644 --- a/core/config.mk +++ b/core/config.mk @@ -546,7 +546,7 @@ else # TARGET_BUILD_APPS || TARGET_BUILD_PDK ZIPALIGN := $(prebuilt_sdk_tools_bin)/zipalign endif # TARGET_BUILD_APPS || TARGET_BUILD_PDK -R8_COMPAT_PROGUARD_JAR := prebuilts/r8/compatproguard-master.jar +R8_COMPAT_PROGUARD := $(HOST_OUT_EXECUTABLES)/r8-compat-proguard ifeq (,$(TARGET_BUILD_APPS)) # Use RenderScript prebuilts for unbundled builds but not PDK builds diff --git a/core/definitions.mk b/core/definitions.mk index c7799b07ad..8b4051defa 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2795,7 +2795,7 @@ endif ########################################################### define transform-jar-to-dex-r8 @echo R8: $@ -$(hide) $(JAVA) -jar $(R8_COMPAT_PROGUARD_JAR) -injars '$<$(PRIVATE_PROGUARD_INJAR_FILTERS)' \ +$(hide) $(R8_COMPAT_PROGUARD) -injars '$<$(PRIVATE_PROGUARD_INJAR_FILTERS)' \ --min-api $(PRIVATE_MIN_SDK_VERSION) \ --force-proguard-compatibility --output $(subst classes.dex,,$@) \ $(PRIVATE_PROGUARD_FLAGS) \ diff --git a/core/java.mk b/core/java.mk index 71bed38021..09e5371e91 100644 --- a/core/java.mk +++ b/core/java.mk @@ -752,7 +752,7 @@ my_r8 := true $(built_dex_intermediate): PRIVATE_PROGUARD_INJAR_FILTERS := $(proguard_injar_filters) $(built_dex_intermediate): PRIVATE_EXTRA_INPUT_JAR := $(extra_input_jar) $(built_dex_intermediate): PRIVATE_PROGUARD_FLAGS := $(legacy_proguard_flags) $(common_proguard_flags) $(LOCAL_PROGUARD_FLAGS) -$(built_dex_intermediate) : $(full_classes_proguard_jar) $(extra_input_jar) $(my_support_library_sdk_raise) $(common_proguard_flag_files) $(proguard_flag_files) $(legacy_proguard_lib_deps) $(R8_COMPAT_PROGUARD_JAR) +$(built_dex_intermediate) : $(full_classes_proguard_jar) $(extra_input_jar) $(my_support_library_sdk_raise) $(common_proguard_flag_files) $(proguard_flag_files) $(legacy_proguard_lib_deps) $(R8_COMPAT_PROGUARD) $(transform-jar-to-dex-r8) endif # USE_R8 endif # LOCAL_PROGUARD_ENABLED