Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 451879d2 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Modify D8 template to not have inputs under the output directory." am:...

Merge "Modify D8 template to not have inputs under the output directory." am: 8e3f7357 am: 9c2afcf9

Change-Id: I4e250f8f8412cb151e428f491e48fb861112f6e7
parents 81dde7da 9c2afcf9
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -2197,17 +2197,19 @@ endef


define transform-classes.jar-to-dex
define transform-classes.jar-to-dex
@echo "target Dex: $(PRIVATE_MODULE)"
@echo "target Dex: $(PRIVATE_MODULE)"
@mkdir -p $(dir $@)
@mkdir -p $(dir $@)tmp
$(hide) rm -f $(dir $@)classes*.dex $(dir $@)d8_input.jar
$(hide) rm -f $(dir $@)classes*.dex $(dir $@)d8_input.jar
$(hide) $(ZIP2ZIP) -j -i $< -o $(dir $@)d8_input.jar "**/*.class"
$(hide) $(ZIP2ZIP) -j -i $< -o $(dir $@)d8_input.jar "**/*.class"
$(hide) $(D8_WRAPPER) $(DX_COMMAND) $(DEX_FLAGS) \
$(hide) $(D8_WRAPPER) $(DX_COMMAND) $(DEX_FLAGS) \
    --output $(dir $@) \
    --output $(dir $@)tmp \
    $(addprefix --lib ,$(PRIVATE_D8_LIBS)) \
    $(addprefix --lib ,$(PRIVATE_D8_LIBS)) \
    --min-api $(PRIVATE_MIN_SDK_VERSION) \
    --min-api $(PRIVATE_MIN_SDK_VERSION) \
    $(subst --main-dex-list=, --main-dex-list , \
    $(subst --main-dex-list=, --main-dex-list , \
        $(filter-out --core-library --multi-dex --minimal-main-dex,$(PRIVATE_DX_FLAGS))) \
        $(filter-out --core-library --multi-dex --minimal-main-dex,$(PRIVATE_DX_FLAGS))) \
    $(dir $@)d8_input.jar
    $(dir $@)d8_input.jar
$(hide) mv $(dir $@)tmp/* $(dir $@)
$(hide) rm -f $(dir $@)d8_input.jar
$(hide) rm -f $(dir $@)d8_input.jar
$(hide) rm -rf $(dir $@)tmp
endef
endef


# We need the extra blank line, so that the command will be on a separate line.
# We need the extra blank line, so that the command will be on a separate line.