< prev index next >

make/common/Utils.gmk

Print this page

        

*** 68,79 **** $(words $(SEQUENCE_COUNT)) \ $(call _sequence-do,$1)) ################################################################################ # Replace question marks with space in string. This macro needs to be called on ! # files from FindFiles in case any of them contains space in their file name, ! # since FindFiles replaces space with ?. # Param 1 - String to replace in DecodeSpace = \ $(subst ?,$(SPACE),$(strip $1)) EncodeSpace = \ --- 68,79 ---- $(words $(SEQUENCE_COUNT)) \ $(call _sequence-do,$1)) ################################################################################ # Replace question marks with space in string. This macro needs to be called on ! # files from CacheFind in case any of them contains space in their file name, ! # since CacheFind replaces space with ?. # Param 1 - String to replace in DecodeSpace = \ $(subst ?,$(SPACE),$(strip $1)) EncodeSpace = \
*** 120,131 **** # Computes the relative path from a directory to a file # $1 - File to compute the relative path to # $2 - Directory to compute the relative path from RelativePath = \ $(eval $1_prefix := $(call FindCommonPathPrefix, $1, $2)) \ ! $(eval $1_dotdots := $(call DirToDotDot, $(patsubst $($(strip $1)_prefix)%, %, $2))) \ ! $(eval $1_dotdots := $(if $($(strip $1)_dotdots),$($(strip $1)_dotdots),.)) \ $(eval $1_suffix := $(patsubst $($(strip $1)_prefix)/%, %, $1)) \ $($(strip $1)_dotdots)/$($(strip $1)_suffix) ################################################################################ # Filter out duplicate sub strings while preserving order. Keeps the first occurance. --- 120,130 ---- # Computes the relative path from a directory to a file # $1 - File to compute the relative path to # $2 - Directory to compute the relative path from RelativePath = \ $(eval $1_prefix := $(call FindCommonPathPrefix, $1, $2)) \ ! $(eval $1_dotdots := $(call DirToDotDot, $(patsubst $($(strip $1)_prefix)/%, %, $2))) \ $(eval $1_suffix := $(patsubst $($(strip $1)_prefix)/%, %, $1)) \ $($(strip $1)_dotdots)/$($(strip $1)_suffix) ################################################################################ # Filter out duplicate sub strings while preserving order. Keeps the first occurance.
< prev index next >