Merge "aapt2: use clean-path on paths to resource files"

This commit is contained in:
Treehugger Robot 2018-08-01 02:44:27 +00:00 committed by Gerrit Code Review
commit ca52cd4b64
1 changed files with 3 additions and 1 deletions

View File

@ -2114,7 +2114,9 @@ endef
# $(2): the base dir of the output file path # $(2): the base dir of the output file path
# Returns: the compiled output file path # Returns: the compiled output file path
define aapt2-compiled-resource-out-file define aapt2-compiled-resource-out-file
$(eval _p_w := $(strip $(subst /,$(space),$(dir $(1)))))$(2)/$(subst $(space),/,$(_p_w))_$(if $(filter values%,$(lastword $(_p_w))),$(patsubst %.xml,%.arsc,$(notdir $(1))),$(notdir $(1))).flat $(strip \
$(eval _p_w := $(strip $(subst /,$(space),$(dir $(call clean-path,$(1))))))
$(2)/$(subst $(space),/,$(_p_w))_$(if $(filter values%,$(lastword $(_p_w))),$(patsubst %.xml,%.arsc,$(notdir $(1))),$(notdir $(1))).flat)
endef endef
define aapt2-link define aapt2-link