< prev index next >

make/common/MakeBase.gmk

Print this page
rev 2048 : 8150044: Generate classlists at build-time
Reviewed-by: alanb
Contributed-by: claes.redestad@oracle.com, erik.joelsson@oracle.com


 725 ################################################################################
 726 # Return a string suitable for use after a -classpath or -modulepath option. It
 727 # will be correct and safe to use on all platforms. Arguments are given as space
 728 # separate classpath entries. Safe for multiple nested 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 # Check if a specified hotspot variant is being built, or at least one of a
 736 # list of variants. Will return 'true' or 'false'.
 737 # $1 - the variant to test for
 738 check-jvm-variant = \
 739   $(strip \
 740     $(if $(filter-out $(VALID_JVM_VARIANTS), $1), \
 741       $(error Internal error: Invalid variant tested: $1)) \
 742     $(if $(filter $1, $(JVM_VARIANTS)), true, false))
 743 
 744 ################################################################################











 745 
 746 # Hook to include the corresponding custom file, if present.
 747 $(eval $(call IncludeCustomExtension, , common/MakeBase.gmk))
 748 
 749 endif # _MAKEBASE_GMK


 725 ################################################################################
 726 # Return a string suitable for use after a -classpath or -modulepath option. It
 727 # will be correct and safe to use on all platforms. Arguments are given as space
 728 # separate classpath entries. Safe for multiple nested 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 # Check if a specified hotspot variant is being built, or at least one of a
 736 # list of variants. Will return 'true' or 'false'.
 737 # $1 - the variant to test for
 738 check-jvm-variant = \
 739   $(strip \
 740     $(if $(filter-out $(VALID_JVM_VARIANTS), $1), \
 741       $(error Internal error: Invalid variant tested: $1)) \
 742     $(if $(filter $1, $(JVM_VARIANTS)), true, false))
 743 
 744 ################################################################################
 745 # Converts a space separated list to a comma separated list.
 746 #
 747 # Replacing double-comma with a single comma is to workaround the issue with
 748 # some version of make on windows that doesn't substitute spaces with one comma
 749 # properly.
 750 CommaList = \
 751   $(strip \
 752       $(subst $(COMMA)$(COMMA),$(COMMA),$(subst $(SPACE),$(COMMA),$(strip $1))) \
 753   )
 754 
 755 ################################################################################
 756 
 757 # Hook to include the corresponding custom file, if present.
 758 $(eval $(call IncludeCustomExtension, , common/MakeBase.gmk))
 759 
 760 endif # _MAKEBASE_GMK
< prev index next >