hotspot/make/copy/Copy-java.base.gmk
author duke
Wed, 05 Jul 2017 22:53:30 +0200
changeset 43880 b5015f742ba6
parent 42430 886368911f2b
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41277
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     1
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     2
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     4
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    10
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    15
# accompanied this code).
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    16
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    20
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    23
# questions.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    24
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    25
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    26
# These include files are currently being copied from the jdk repository for
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    27
# historical reasons. Disable copying from here until this has been cleaned up.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    28
# The files in hotspot differ slightly from the corresponding files in jdk.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    29
# See JDK-8167078.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    30
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    31
INCLUDE_DST_DIR := $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    32
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    33
################################################################################
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    34
# Copy platform-independent .h files
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    35
$(eval $(call SetupCopyFiles, COPY_INCLUDE_FILES, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    36
    SRC := $(HOTSPOT_TOPDIR)/src/share/vm, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    37
    DEST := $(INCLUDE_DST_DIR), \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    38
    FLATTEN := true, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    39
    FILES := prims/jni.h code/jvmticmlr.h \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    40
))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    41
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    42
#TARGETS += $(COPY_INCLUDE_FILES)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    43
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    44
################################################################################
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    45
# Copy jni_md.h
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    46
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    47
# This might have been defined in a custom extension
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    48
JNI_MD_H_SRC ?= $(HOTSPOT_TOPDIR)/src/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/vm/jni_$(HOTSPOT_TARGET_CPU_ARCH).h
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    49
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    50
ifeq ($(OPENJDK_TARGET_OS), macosx)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    51
  # NOTE: This should most likely be darwin, but the old hotspot build uses bsd
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    52
  JNI_MD_SUBDIR := bsd
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    53
else ifeq ($(OPENJDK_TARGET_OS), windows)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    54
  JNI_MD_SUBDIR := win32
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    55
else
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    56
  JNI_MD_SUBDIR := $(OPENJDK_TARGET_OS)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    57
endif
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    58
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    59
# SetupCopyFiles is not used here since it's non-trivial to copy a single
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    60
# file with a different target name.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    61
$(INCLUDE_DST_DIR)/$(JNI_MD_SUBDIR)/jni_md.h: $(JNI_MD_H_SRC)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    62
	$(call LogInfo, Copying hotspot/dist/include/$(JNI_MD_SUBDIR)/jni_md.h)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    63
	$(install-file)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    64
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    65
#TARGETS += $(INCLUDE_DST_DIR)/$(JNI_MD_SUBDIR)/jni_md.h
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    66
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    67
################################################################################
42430
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    68
# Optionally copy libffi.so.? into the the image
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    69
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    70
ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    71
  $(eval $(call SetupCopyFiles, COPY_LIBFFI, \
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    72
      FILES := $(LIBFFI_LIB_FILE), \
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    73
      DEST := $(call FindLibDirForModule, $(MODULE)), \
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    74
      FLATTEN := true, \
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    75
      MACRO := install-file-nolink, \
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    76
  ))
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    77
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    78
  TARGETS += $(COPY_LIBFFI)
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    79
endif
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    80
886368911f2b 8141590: Cannot build Zero with devkit
erikj
parents: 41277
diff changeset
    81
################################################################################