make/hotspot/CopyToExplodedJdk.gmk
author pmuthuswamy
Wed, 05 Sep 2018 11:52:15 +0530
changeset 51640 58ea9afe0eb8
parent 47216 71c04702a3d5
child 53683 48ff68e2fe5c
permissions -rw-r--r--
8209052: Low contrast in docs/api/constant-values.html Reviewed-by: jjg
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
# Copy all built libraries into exploded jdk
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    27
LIB_TARGETS := $(filter $(LIB_OUTPUTDIR)/%, $(TARGETS))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    28
ifeq ($(OPENJDK_TARGET_OS), windows)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    29
  $(eval $(call SetupCopyFiles, COPY_LIBS_BIN, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    30
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    31
      DEST := $(JDK_OUTPUTDIR)/bin, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    32
      FILES := $(filter-out %.lib, $(LIB_TARGETS)), \
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
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    35
  $(eval $(call SetupCopyFiles, COPY_LIBS_LIB, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    36
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    37
      DEST := $(JDK_OUTPUTDIR)/lib, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    38
      FILES := $(filter %.lib, $(LIB_TARGETS))))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    39
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    40
  TARGETS += $(COPY_LIBS_BIN) $(COPY_LIBS_LIB)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    41
else
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    42
  $(eval $(call SetupCopyFiles, COPY_LIBS, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    43
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    44
      DEST := $(JDK_OUTPUTDIR)/lib, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    45
      FILES := $(filter %$(SHARED_LIBRARY_SUFFIX), $(LIB_TARGETS)), \
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
  $(eval $(call SetupCopyFiles, LINK_LIBS, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    48
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    49
      DEST := $(JDK_OUTPUTDIR)/lib, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    50
      FILES := $(filter-out %$(SHARED_LIBRARY_SUFFIX), $(LIB_TARGETS)), \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    51
      MACRO := link-file-relative, \
42985
84da697836d6 8172037: Change log message of SetupCopyFiles
erikj
parents: 41277
diff changeset
    52
      LOG_ACTION := Creating symlink, \
41277
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    53
  ))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    54
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    55
  TARGETS += $(COPY_LIBS) $(LINK_LIBS)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    56
endif