Merge "Use flags from Soong for d8 and r8" am: 5852c93585
am: fb770b4f84
am: ecc4607403
Change-Id: I863876bb8139fd8c5aceb97f4fde51f2df3697ff
This commit is contained in:
commit
62fc068b69
|
@ -2225,7 +2225,7 @@ define transform-classes.jar-to-dex
|
|||
@mkdir -p $(dir $@)
|
||||
$(hide) rm -f $(dir $@)classes*.dex $(dir $@)d8_input.jar
|
||||
$(hide) $(ZIP2ZIP) -j -i $< -o $(dir $@)d8_input.jar "**/*.class"
|
||||
$(hide) $(DX_COMMAND) \
|
||||
$(hide) $(DX_COMMAND) $(DEX_FLAGS) \
|
||||
--output $(dir $@) \
|
||||
$(addprefix --lib ,$(PRIVATE_D8_LIBS)) \
|
||||
--min-api $(PRIVATE_MIN_SDK_VERSION) \
|
||||
|
@ -2697,7 +2697,8 @@ endif
|
|||
define transform-jar-to-dex-r8
|
||||
@echo R8: $@
|
||||
$(hide) rm -f $(PRIVATE_PROGUARD_DICTIONARY)
|
||||
$(hide) $(R8_COMPAT_PROGUARD) -injars '$<' \
|
||||
$(hide) $(R8_COMPAT_PROGUARD) $(DEX_FLAGS) \
|
||||
-injars '$<' \
|
||||
--min-api $(PRIVATE_MIN_SDK_VERSION) \
|
||||
--no-data-resources \
|
||||
--force-proguard-compatibility --output $(subst classes.dex,,$@) \
|
||||
|
|
Loading…
Reference in New Issue