706 ExecuteWithLog = \ 707 $(call LogCmdlines, Exececuting: [$(strip $2)]) \ 708 $(call WriteFile, $2, $(strip $1).cmdline) \ 709 ( $(strip $2) > >($(TEE) $(strip $1).log) 2> >($(TEE) $(strip $1).log >&2) || \ 710 ( exitcode=$(DOLLAR)? && \ 711 $(CP) $(strip $1).log $(MAKESUPPORT_OUTPUTDIR)/failure-logs/$(subst /,_,$(patsubst $(BUILD_OUTPUT)/%,%,$(strip $1))).log && \ 712 exit $(DOLLAR)exitcode ) ) 713 714 ################################################################################ 715 # Find lib dir for module 716 # Param 1 - module name 717 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix) 718 FindLibDirForModule = \ 719 $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)$(OPENJDK_TARGET_CPU_LIBDIR) 720 else 721 FindLibDirForModule = \ 722 $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1) 723 endif 724 725 ################################################################################ 726 # Return a string suitable for use after a -classpath option. It will correct and safe to use 727 # on all platforms. Arguments are given as space separate classpath entries. 728 # param 1 : A space separated list of classpath entries 729 # The surrounding strip is needed to keep additional whitespace out 730 PathList = \ 731 "$(subst $(SPACE),$(PATH_SEP),$(strip $1))" 732 733 ################################################################################ 734 735 # Hook to include the corresponding custom file, if present. 736 $(eval $(call IncludeCustomExtension, , common/MakeBase.gmk)) 737 738 endif # _MAKEBASE_GMK | 706 ExecuteWithLog = \ 707 $(call LogCmdlines, Exececuting: [$(strip $2)]) \ 708 $(call WriteFile, $2, $(strip $1).cmdline) \ 709 ( $(strip $2) > >($(TEE) $(strip $1).log) 2> >($(TEE) $(strip $1).log >&2) || \ 710 ( exitcode=$(DOLLAR)? && \ 711 $(CP) $(strip $1).log $(MAKESUPPORT_OUTPUTDIR)/failure-logs/$(subst /,_,$(patsubst $(BUILD_OUTPUT)/%,%,$(strip $1))).log && \ 712 exit $(DOLLAR)exitcode ) ) 713 714 ################################################################################ 715 # Find lib dir for module 716 # Param 1 - module name 717 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix) 718 FindLibDirForModule = \ 719 $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1)$(OPENJDK_TARGET_CPU_LIBDIR) 720 else 721 FindLibDirForModule = \ 722 $(SUPPORT_OUTPUTDIR)/modules_libs/$(strip $1) 723 endif 724 725 ################################################################################ 726 # Return a string suitable for use after a -classpath option. It will be correct 727 # and safe to use on all platforms. Arguments are given as space separate 728 # classpath entries. Safe for multiple calls. 729 # param 1 : A space separated list of classpath entries 730 # The surrounding strip is needed to keep additional whitespace out 731 PathList = \ 732 "$(subst $(SPACE),$(PATH_SEP),$(strip $(subst $(DQUOTE),,$1)))" 733 734 ################################################################################ 735 736 # Hook to include the corresponding custom file, if present. 737 $(eval $(call IncludeCustomExtension, , common/MakeBase.gmk)) 738 739 endif # _MAKEBASE_GMK |