jdk/make/copy/Copy-java.base.gmk
author rriggs
Wed, 02 Dec 2015 09:40:14 -0500
changeset 34385 0762c1d51f8a
parent 29887 7dc39f3b8058
child 35241 075bbb8f2423
permissions -rw-r--r--
8143876: test/java/lang/ProcessHandle/TreeTest.java failed intermittently with assertion error Summary: The parent pid may be re-used, check that the child was started after the parent Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     1
#
29718
d0e9a4ece867 8072740: move closed jvm.cfg files out of open repo
dholmes
parents: 28984
diff changeset
     2
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     4
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    10
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    15
# accompanied this code).
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    16
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    20
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    23
# questions.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    24
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    25
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    26
include CopyCommon.gmk
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    27
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    28
$(eval $(call IncludeCustomExtension, jdk, copy/Copy-java.base.gmk))
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    29
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    30
################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    31
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    32
# Copy exported header files to outputdir.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    33
#
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
    34
TARGETS += \
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    35
    $(INCLUDE_DST_DIR)/jni.h \
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    36
    $(INCLUDE_DST_DIR)/jvmti.h \
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    37
    $(INCLUDE_DST_DIR)/jvmticmlr.h \
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    38
    $(INCLUDE_DST_DIR)/classfile_constants.h \
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    39
    $(INCLUDE_DST_OS_DIR)/jni_md.h \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    40
    #
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    41
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    42
$(INCLUDE_DST_DIR)/%.h: $(JDK_TOPDIR)/src/java.base/share/native/include/%.h
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    43
	$(call install-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    44
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    45
$(INCLUDE_DST_OS_DIR)/%.h: \
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    46
    $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_EXPORT_DIR)/native/include/%.h
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    47
	$(call install-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    48
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    49
################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    50
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    51
ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    52
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    53
  TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    54
26191
a0ff4b39d34b 8055188: General cleanup of minor issues from source restructure
erikj
parents: 25859
diff changeset
    55
  $(LIB_DST_DIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    56
	$(call install-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    57
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
    58
  TARGETS += $(LIB_DST_DIR)/tzmappings
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    59
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    60
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    61
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    62
################################################################################
28984
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    63
# Copy the microsoft runtime libraries on windows
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    64
ifeq ($(OPENJDK_TARGET_OS), windows)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    65
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    66
  # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
28984
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    67
  define copy-and-chmod
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    68
	$(install-file)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    69
	$(CHMOD) a+rx $@
28984
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    70
  endef
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
    71
28984
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    72
  # Use separate macro calls in case the source files are not in the same
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    73
  # directory.
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    74
  $(eval $(call SetupCopyFiles,COPY_MSVCR, \
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    75
      DEST := $(LIB_DST_DIR), \
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    76
      FILES := $(MSVCR_DLL), \
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    77
      MACRO := copy-and-chmod))
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    78
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    79
  $(eval $(call SetupCopyFiles,COPY_MSVCP, \
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    80
      DEST := $(LIB_DST_DIR), \
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    81
      FILES := $(MSVCP_DLL), \
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    82
      MACRO := copy-and-chmod))
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    83
12031ba2dc38 8042707: Source changes needed to build JDK 9 with Visual Studio 2013 (VS2013)
erikj
parents: 27799
diff changeset
    84
  TARGETS += $(COPY_MSVCR) $(COPY_MSVCP)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    85
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    86
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    87
################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    88
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    89
# How to install jvm.cfg.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    90
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    91
ifeq ($(JVM_VARIANT_ZERO), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    92
  JVMCFG_ARCH := zero
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    93
else
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    94
  JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    95
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    96
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    97
ifeq ($(OPENJDK_TARGET_OS), macosx)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    98
  JVMCFG_SRC := $(JDK_TOPDIR)/src/java.base/macosx/conf/$(JVMCFG_ARCH)/jvm.cfg
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    99
else
27736
8c9bd4be4a86 8058631: Rename posix to unix in build system to match file name changes
ihse
parents: 27286
diff changeset
   100
  JVMCFG_SRC := $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/$(JVMCFG_ARCH)/jvm.cfg
29718
d0e9a4ece867 8072740: move closed jvm.cfg files out of open repo
dholmes
parents: 28984
diff changeset
   101
  # Allow override by ALT_JVMCFG_SRC if it exists
d0e9a4ece867 8072740: move closed jvm.cfg files out of open repo
dholmes
parents: 28984
diff changeset
   102
  JVMCFG_SRC := $(if $(wildcard $(ALT_JVMCFG_SRC)),$(ALT_JVMCFG_SRC),$(JVMCFG_SRC)) 
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   103
endif
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   104
JVMCFG_DIR := $(LIB_DST_DIR)$(OPENJDK_TARGET_CPU_LIBDIR)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   105
JVMCFG := $(JVMCFG_DIR)/jvm.cfg
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   106
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   107
# To do: should this also support -zeroshark?
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   108
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   109
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   110
  COPY_JVM_CFG_FILE := true
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   111
else
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   112
  # On 32-bit machines we have three potential VMs: client, server and minimal.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   113
  # Historically we usually have both client and server and so that is what the
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   114
  # committed jvm.cfg expects (including platform specific ergonomics switches
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   115
  # to decide whether to use client or server by default). So when we have anything
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   116
  # other than client and server we need to define a new jvm.cfg file.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   117
  # The main problem is deciding whether to use aliases for the VMs that are not
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   118
  # present and the current position is that we add aliases for client and server, but
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   119
  # not for minimal.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   120
  CLIENT_AND_SERVER := $(and $(findstring true, $(JVM_VARIANT_SERVER)), $(findstring true, $(JVM_VARIANT_CLIENT)))
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   121
  ifeq ($(CLIENT_AND_SERVER), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   122
    COPY_JVM_CFG_FILE := true
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   123
  else
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   124
    # For zero, the default jvm.cfg file is sufficient
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   125
    ifeq ($(JVM_VARIANT_ZERO), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   126
      COPY_JVM_CFG_FILE := true
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   127
    endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   128
  endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   129
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   130
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   131
ifeq ($(COPY_JVM_CFG_FILE), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   132
  $(JVMCFG): $(JVMCFG_SRC)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   133
	$(call install-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   134
else
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   135
  $(JVMCFG):
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   136
	$(MKDIR) -p $(@D)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   137
	$(RM) $(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   138
        # Now check for other permutations
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   139
        ifeq ($(JVM_VARIANT_SERVER), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   140
	  $(PRINTF) "-server KNOWN\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   141
	  $(PRINTF) "-client ALIASED_TO -server\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   142
          ifeq ($(JVM_VARIANT_MINIMAL1), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   143
	    $(PRINTF) "-minimal KNOWN\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   144
          endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   145
        else
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   146
          ifeq ($(JVM_VARIANT_CLIENT), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   147
	    $(PRINTF) "-client KNOWN\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   148
	    $(PRINTF) "-server ALIASED_TO -client\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   149
            ifeq ($(JVM_VARIANT_MINIMAL1), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   150
	      $(PRINTF) "-minimal KNOWN\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   151
            endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   152
          else
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   153
            ifeq ($(JVM_VARIANT_MINIMAL1), true)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   154
	      $(PRINTF) "-minimal KNOWN\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   155
	      $(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   156
	      $(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   157
            endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   158
          endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   159
        endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   160
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   161
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   162
TARGETS += $(JVMCFG)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   163
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   164
################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   165
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   166
POLICY_SRC := $(JDK_TOPDIR)/src/java.base/share/conf/security/java.policy
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   167
POLICY_DST := $(CONF_DST_DIR)/security/java.policy
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   168
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   169
POLICY_SRC_LIST :=
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   170
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   171
ifeq ($(OPENJDK_TARGET_OS), windows)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   172
  POLICY_SRC_LIST += $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf/security/java.policy
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   173
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   174
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   175
POLICY_SRC_LIST += $(POLICY_SRC)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   176
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   177
$(POLICY_DST): $(POLICY_SRC_LIST)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   178
	$(MKDIR) -p $(@D)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   179
	$(RM) $@ $@.tmp
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   180
	$(foreach f,$(POLICY_SRC_LIST),$(CAT) $(f) >> $@.tmp;)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   181
	$(MV) $@.tmp $@
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   182
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   183
TARGETS += $(POLICY_DST)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   184
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   185
################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   186
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   187
ifeq ($(CACERTS_FILE), )
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   188
  CACERTS_FILE := $(JDK_TOPDIR)/src/java.base/share/conf/security/cacerts
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   189
endif
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   190
CACERTS_DST := $(LIB_DST_DIR)/security/cacerts
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   191
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   192
$(CACERTS_DST): $(CACERTS_FILE)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   193
	$(call install-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   194
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   195
TARGETS += $(CACERTS_DST)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   196
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   197
################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   198
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   199
$(CONF_DST_DIR)/net.properties: $(JDK_TOPDIR)/src/java.base/share/conf/net.properties
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   200
	$(ECHO) $(LOG_INFO) Copying $(@F)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   201
	$(call install-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   202
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   203
TARGETS += $(CONF_DST_DIR)/net.properties
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   204
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   205
ifeq ($(OPENJDK_TARGET_OS), solaris)
27799
chegar
parents: 27565 27736
diff changeset
   206
  $(CONF_DST_DIR)/sdp/sdp.conf.template: $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/sdp/sdp.conf.template
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   207
	$(ECHO) $(LOG_INFO) Copying $(@F)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   208
	$(call install-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   209
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 27286
diff changeset
   210
  TARGETS += $(CONF_DST_DIR)/sdp/sdp.conf.template
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   211
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   212
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
   213
################################################################################