< prev index next >

make/copy/Copy-java.base.gmk

Print this page




   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  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 include TextFileProcessing.gmk
  28 
  29 $(eval $(call IncludeCustomExtension, copy/Copy-java.base.gmk))
  30 
  31 ################################################################################
  32 
  33 ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),)
  34 
  35   TZMAPPINGS_SRC := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf
  36 
  37   $(LIB_DST_DIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
  38         $(call install-file)
  39 
  40   TARGETS += $(LIB_DST_DIR)/tzmappings
  41 
  42 endif
  43 
  44 ################################################################################
  45 # Copy the microsoft runtime libraries on windows
  46 ifeq ($(OPENJDK_TARGET_OS), windows)


 207   $(eval $(call SetupCopyFiles, COPY_SDP_CONF, \
 208       FILES := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/sdp/sdp.conf.template, \
 209       DEST := $(CONF_DST_DIR)/sdp, \
 210   ))
 211 
 212   TARGETS += $(COPY_SDP_CONF)
 213 endif
 214 
 215 ################################################################################
 216 
 217 # JDK license and assembly exception files to be packaged in JMOD
 218 
 219 # The license files may not be present if the source has been obtained using a
 220 # different license.
 221 JDK_LICENSE ?= $(wildcard $(TOPDIR)/LICENSE)
 222 JDK_NOTICE  ?= $(wildcard $(TOPDIR)/ASSEMBLY_EXCEPTION)
 223 JDK_ADDITIONAL_LICENSE_INFO  ?= $(wildcard $(TOPDIR)/ADDITIONAL_LICENSE_INFO)
 224 
 225 $(eval $(call SetupCopyFiles, COPY_JDK_NOTICES, \
 226     FILES := $(JDK_LICENSE) $(JDK_NOTICE) $(JDK_ADDITIONAL_LICENSE_INFO), \
 227     DEST := $(LEGAL_DST_DIR), \
 228     FLATTEN := true, \
 229 ))
 230 
 231 TARGETS += $(COPY_JDK_NOTICES)















 232 
 233 ################################################################################
 234 # Optionally copy libffi.so.? into the the image
 235 
 236 ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
 237   $(eval $(call SetupCopyFiles, COPY_LIBFFI, \
 238       FILES := $(LIBFFI_LIB_FILE), \
 239       DEST := $(call FindLibDirForModule, $(MODULE)), \
 240       FLATTEN := true, \
 241       MACRO := install-file-nolink, \
 242   ))
 243 
 244   TARGETS += $(COPY_LIBFFI)
 245 endif
 246 
 247 ################################################################################
 248 # Generate classfile_constants.h
 249 
 250 $(eval $(call SetupTextFileProcessing, CREATE_CLASSFILE_CONSTANTS_H, \
 251     SOURCE_FILES := $(TOPDIR)/src/java.base/share/native/include/classfile_constants.h.template, \


   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  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 include Modules.gmk
  28 include TextFileProcessing.gmk
  29 
  30 $(eval $(call IncludeCustomExtension, copy/Copy-java.base.gmk))
  31 
  32 ################################################################################
  33 
  34 ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),)
  35 
  36   TZMAPPINGS_SRC := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf
  37 
  38   $(LIB_DST_DIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
  39         $(call install-file)
  40 
  41   TARGETS += $(LIB_DST_DIR)/tzmappings
  42 
  43 endif
  44 
  45 ################################################################################
  46 # Copy the microsoft runtime libraries on windows
  47 ifeq ($(OPENJDK_TARGET_OS), windows)


 208   $(eval $(call SetupCopyFiles, COPY_SDP_CONF, \
 209       FILES := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/sdp/sdp.conf.template, \
 210       DEST := $(CONF_DST_DIR)/sdp, \
 211   ))
 212 
 213   TARGETS += $(COPY_SDP_CONF)
 214 endif
 215 
 216 ################################################################################
 217 
 218 # JDK license and assembly exception files to be packaged in JMOD
 219 
 220 # The license files may not be present if the source has been obtained using a
 221 # different license.
 222 JDK_LICENSE ?= $(wildcard $(TOPDIR)/LICENSE)
 223 JDK_NOTICE  ?= $(wildcard $(TOPDIR)/ASSEMBLY_EXCEPTION)
 224 JDK_ADDITIONAL_LICENSE_INFO  ?= $(wildcard $(TOPDIR)/ADDITIONAL_LICENSE_INFO)
 225 
 226 $(eval $(call SetupCopyFiles, COPY_JDK_NOTICES, \
 227     FILES := $(JDK_LICENSE) $(JDK_NOTICE) $(JDK_ADDITIONAL_LICENSE_INFO), \
 228     DEST := $(COMMON_LEGAL_DST_DIR), \
 229     FLATTEN := true, \
 230 ))
 231 
 232 TARGETS += $(COPY_JDK_NOTICES)
 233 
 234 ################################################################################
 235 #
 236 # Copy and filter the legal files depending on what 3rd party components are
 237 # bundled or linked from the OS.
 238 #
 239 ifeq ($(USE_EXTERNAL_LIBZ), true)
 240   LEGAL_EXCLUDES += zlib.md
 241 endif
 242 
 243 $(eval $(call SetupCopyLegalFiles, COPY_LEGAL, \
 244     EXCLUDES := $(LEGAL_EXCLUDES), \
 245 ))
 246 
 247 TARGETS += $(COPY_LEGAL)
 248 
 249 ################################################################################
 250 # Optionally copy libffi.so.? into the the image
 251 
 252 ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
 253   $(eval $(call SetupCopyFiles, COPY_LIBFFI, \
 254       FILES := $(LIBFFI_LIB_FILE), \
 255       DEST := $(call FindLibDirForModule, $(MODULE)), \
 256       FLATTEN := true, \
 257       MACRO := install-file-nolink, \
 258   ))
 259 
 260   TARGETS += $(COPY_LIBFFI)
 261 endif
 262 
 263 ################################################################################
 264 # Generate classfile_constants.h
 265 
 266 $(eval $(call SetupTextFileProcessing, CREATE_CLASSFILE_CONSTANTS_H, \
 267     SOURCE_FILES := $(TOPDIR)/src/java.base/share/native/include/classfile_constants.h.template, \
< prev index next >