make/launcher/LauncherCommon.gmk
changeset 53683 48ff68e2fe5c
parent 53087 f48737b2f428
child 54091 efb8569c95d5
equal deleted inserted replaced
53682:e30211561a17 53683:48ff68e2fe5c
   103   endif
   103   endif
   104   $1_JAVA_ARGS_STR := '{ $$(strip $$(foreach a, \
   104   $1_JAVA_ARGS_STR := '{ $$(strip $$(foreach a, \
   105       $$(addprefix -J, $$($1_JAVA_ARGS)) $$($1_LAUNCHER_CLASS), "$$a"$(COMMA) )) }'
   105       $$(addprefix -J, $$($1_JAVA_ARGS)) $$($1_LAUNCHER_CLASS), "$$a"$(COMMA) )) }'
   106   $1_CFLAGS += -DJAVA_ARGS=$$($1_JAVA_ARGS_STR)
   106   $1_CFLAGS += -DJAVA_ARGS=$$($1_JAVA_ARGS_STR)
   107 
   107 
   108   ifeq ($(OPENJDK_TARGET_OS), macosx)
   108   ifeq ($(call isTargetOs, macosx), true)
   109     ifeq ($$($1_MACOSX_SIGNED), true)
   109     ifeq ($$($1_MACOSX_SIGNED), true)
   110       $1_PLIST_FILE := Info-privileged.plist
   110       $1_PLIST_FILE := Info-privileged.plist
   111         $1_CODESIGN := true
   111         $1_CODESIGN := true
   112     else
   112     else
   113       $1_PLIST_FILE := Info-cmdline.plist
   113       $1_PLIST_FILE := Info-cmdline.plist
   177   ))
   177   ))
   178 
   178 
   179   $1 += $$(BUILD_LAUNCHER_$1)
   179   $1 += $$(BUILD_LAUNCHER_$1)
   180   TARGETS += $$($1)
   180   TARGETS += $$($1)
   181 
   181 
   182   ifeq ($(OPENJDK_TARGET_OS), aix)
   182   ifeq ($(call isTargetOs, aix), true)
   183     $$(BUILD_LAUNCHER_$1): $(call FindStaticLib, java.base, jli_static)
   183     $$(BUILD_LAUNCHER_$1): $(call FindStaticLib, java.base, jli_static)
   184   endif
   184   endif
   185 
   185 
   186   ifeq ($(OPENJDK_TARGET_OS), windows)
   186   ifeq ($(call isTargetOs, windows), true)
   187     $$(BUILD_LAUNCHER_$1): $(call FindStaticLib, java.base, java, /libjava) \
   187     $$(BUILD_LAUNCHER_$1): $(call FindStaticLib, java.base, java, /libjava) \
   188         $$($1_WINDOWS_JLI_LIB)
   188         $$($1_WINDOWS_JLI_LIB)
   189   endif
   189   endif
   190 endef
   190 endef
   191 
   191 
   192 ################################################################################
   192 ################################################################################
   193 # Create man pages for jmod to pick up. There should be a one-to-one
   193 # Create man pages for jmod to pick up. There should be a one-to-one
   194 # relationship between executables and man pages (even if this is not always
   194 # relationship between executables and man pages (even if this is not always
   195 # the case), so piggyback man page generation on the launcher compilation.
   195 # the case), so piggyback man page generation on the launcher compilation.
   196 
   196 
   197 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix)
   197 ifeq ($(call isTargetOsType, unix), true)
   198   # Only build manpages on unix systems.
   198   # Only build manpages on unix systems.
   199   # We assume all our man pages should reside in section 1.
   199   # We assume all our man pages should reside in section 1.
   200 
   200 
   201   MAN_FILES_MD := $(wildcard $(addsuffix /*.md, $(call FindModuleManDirs, $(MODULE))))
   201   MAN_FILES_MD := $(wildcard $(addsuffix /*.md, $(call FindModuleManDirs, $(MODULE))))
   202   MAN_FILES_TROFF := $(wildcard $(addsuffix /*.1, $(call FindModuleManDirs, $(MODULE))))
   202   MAN_FILES_TROFF := $(wildcard $(addsuffix /*.1, $(call FindModuleManDirs, $(MODULE))))