< prev index next >

make/launcher/Launcher-java.base.gmk

Print this page




  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 include LauncherCommon.gmk
  27 
  28 $(eval $(call IncludeCustomExtension, launcher/Launcher-java.base.gmk))
  29 
  30 JAVA_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/launcher/java.rc
  31 
  32 JAVA_RC_FLAGS += -I$(TOPDIR)/src/java.base/windows/native/common
  33 JAVA_RC_FLAGS += -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
  34 
  35 ################################################################################
  36 
  37 # On windows, the debuginfo files get the same name as for java.dll. Build
  38 # into another dir and copy selectively so debuginfo for java.dll isn't
  39 # overwritten.
  40 $(eval $(call SetupBuildLauncher, java, \
  41     CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \

  42     EXTRA_RC_FLAGS := $(JAVA_RC_FLAGS), \
  43     VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
  44     OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/java_objs, \
  45     OPTIMIZATION := HIGH, \
  46 ))
  47 
  48 $(SUPPORT_OUTPUTDIR)/modules_cmds/java.base/java$(EXE_SUFFIX): $(BUILD_LAUNCHER_java)
  49         $(call MakeTargetDir)
  50         $(RM) $@
  51         $(CP) $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/java_objs/java$(EXE_SUFFIX) $@
  52 
  53 TARGETS += $(SUPPORT_OUTPUTDIR)/modules_cmds/java.base/java$(EXE_SUFFIX)
  54 
  55 ifeq ($(call isTargetOs, windows), true)
  56   $(eval $(call SetupBuildLauncher, javaw, \
  57       CFLAGS := -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
  58       EXTRA_RC_FLAGS := $(JAVA_RC_FLAGS), \
  59       VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
  60   ))
  61 endif




  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 include LauncherCommon.gmk
  27 
  28 $(eval $(call IncludeCustomExtension, launcher/Launcher-java.base.gmk))
  29 
  30 JAVA_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/launcher/java.rc
  31 
  32 JAVA_RC_FLAGS += -I$(TOPDIR)/src/java.base/windows/native/common
  33 JAVA_RC_FLAGS += -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
  34 
  35 ################################################################################
  36 
  37 # On windows, the debuginfo files get the same name as for java.dll. Build
  38 # into another dir and copy selectively so debuginfo for java.dll isn't
  39 # overwritten.
  40 $(eval $(call SetupBuildLauncher, java, \
  41     CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
  42     LDFLAGS_solaris := -R$(OPENWIN_HOME)/lib$(OPENJDK_TARGET_CPU_ISADIR), \
  43     EXTRA_RC_FLAGS := $(JAVA_RC_FLAGS), \
  44     VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
  45     OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/java_objs, \
  46     OPTIMIZATION := HIGH, \
  47 ))
  48 
  49 $(SUPPORT_OUTPUTDIR)/modules_cmds/java.base/java$(EXE_SUFFIX): $(BUILD_LAUNCHER_java)
  50         $(call MakeTargetDir)
  51         $(RM) $@
  52         $(CP) $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/java_objs/java$(EXE_SUFFIX) $@
  53 
  54 TARGETS += $(SUPPORT_OUTPUTDIR)/modules_cmds/java.base/java$(EXE_SUFFIX)
  55 
  56 ifeq ($(call isTargetOs, windows), true)
  57   $(eval $(call SetupBuildLauncher, javaw, \
  58       CFLAGS := -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
  59       EXTRA_RC_FLAGS := $(JAVA_RC_FLAGS), \
  60       VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
  61   ))
  62 endif


< prev index next >