make/copy/Copy-java.base.gmk

Print this page




  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 include CopyCommon.gmk
  27 
  28 $(eval $(call IncludeCustomExtension, jdk, copy/Copy-java.base.gmk))
  29 
  30 ################################################################################
  31 #
  32 # Copy exported header files to outputdir.
  33 #
  34 JAVA_BASE_HEADERS := \
  35     $(INCLUDEDIR)/jni.h \
  36     $(INCLUDEDIR)/jvmti.h \
  37     $(INCLUDEDIR)/jvmticmlr.h \
  38     $(INCLUDEDIR)/classfile_constants.h \
  39     $(OPENJDK_TARGET_OS_INCLUDE)/jni_md.h \
  40     #
  41 
  42 $(INCLUDEDIR)/%.h: $(JDK_TOPDIR)/src/java.base/share/native/include/%.h
  43         $(call install-file)
  44 
  45 $(OPENJDK_TARGET_OS_INCLUDE)/%.h: \
  46     $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_EXPORT_DIR)/native/include/%.h
  47         $(call install-file)
  48 
  49 ################################################################################
  50 
  51 CALENDARS_SRC := $(JDK_TOPDIR)/src/java.base/share/conf
  52 
  53 $(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties
  54         $(call install-file)
  55 
  56 BASE_CONF_FILES += $(LIBDIR)/calendars.properties
  57 
  58 $(LIBDIR)/hijrah-config-umalqura.properties: $(CALENDARS_SRC)/hijrah-config-umalqura.properties
  59         $(MKDIR) -p $(@D)
  60         $(RM) $@
  61         $(CP) $< $@
  62 
  63 BASE_CONF_FILES += $(LIBDIR)/hijrah-config-umalqura.properties
  64 
  65 ################################################################################
  66 
  67 ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),)
  68 
  69   TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf
  70 
  71   $(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
  72         $(call install-file)
  73 
  74   BASE_CONF_FILES += $(LIBDIR)/tzmappings
  75 
  76 endif
  77 
  78 ################################################################################
  79 # Copy msvcrXX.dll on windows
  80 
  81 ifeq ($(OPENJDK_TARGET_OS), windows)
  82   MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
  83   # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
  84   $(MSVCR_TARGET): $(MSVCR_DLL)
  85         $(call install-file)
  86         $(CHMOD) a+rx $@
  87 endif
  88 
  89 ################################################################################
  90 #
  91 # How to install jvm.cfg.
  92 #
  93 ifeq ($(JVM_VARIANT_ZERO), true)
  94   JVMCFG_ARCH := zero




  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 include CopyCommon.gmk
  27 
  28 $(eval $(call IncludeCustomExtension, jdk, copy/Copy-java.base.gmk))
  29 
  30 ################################################################################
  31 #
  32 # Copy exported header files to outputdir.
  33 #
  34 JAVA_BASE_HEADERS := \
  35     $(INCLUDE_DST_DIR)/jni.h \
  36     $(INCLUDE_DST_DIR)/jvmti.h \
  37     $(INCLUDE_DST_DIR)/jvmticmlr.h \
  38     $(INCLUDE_DST_DIR)/classfile_constants.h \
  39     $(INCLUDE_DST_OS_DIR)/jni_md.h \
  40     #
  41 
  42 $(INCLUDE_DST_DIR)/%.h: $(JDK_TOPDIR)/src/java.base/share/native/include/%.h
  43         $(call install-file)
  44 
  45 $(INCLUDE_DST_OS_DIR)/%.h: \
  46     $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_EXPORT_DIR)/native/include/%.h
  47         $(call install-file)
  48 
  49 ################################################################################
  50 
  51 CALENDARS_SRC := $(JDK_TOPDIR)/src/java.base/share/conf
  52 
  53 $(LIB_DST_DIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties
  54         $(call install-file)
  55 
  56 BASE_CONF_FILES += $(LIB_DST_DIR)/calendars.properties
  57 
  58 $(LIB_DST_DIR)/hijrah-config-umalqura.properties: $(CALENDARS_SRC)/hijrah-config-umalqura.properties
  59         $(MKDIR) -p $(@D)
  60         $(RM) $@
  61         $(CP) $< $@
  62 
  63 BASE_CONF_FILES += $(LIB_DST_DIR)/hijrah-config-umalqura.properties
  64 
  65 ################################################################################
  66 
  67 ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),)
  68 
  69   TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf
  70 
  71   $(LIB_DST_DIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
  72         $(call install-file)
  73 
  74   BASE_CONF_FILES += $(LIB_DST_DIR)/tzmappings
  75 
  76 endif
  77 
  78 ################################################################################
  79 # Copy msvcrXX.dll on windows
  80 
  81 ifeq ($(OPENJDK_TARGET_OS), windows)
  82   MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
  83   # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
  84   $(MSVCR_TARGET): $(MSVCR_DLL)
  85         $(call install-file)
  86         $(CHMOD) a+rx $@
  87 endif
  88 
  89 ################################################################################
  90 #
  91 # How to install jvm.cfg.
  92 #
  93 ifeq ($(JVM_VARIANT_ZERO), true)
  94   JVMCFG_ARCH := zero