jdk/make/gendata/GendataPolicyJars.gmk
author jwilhelm
Wed, 23 Mar 2016 20:12:31 +0100
changeset 37018 fd3fb9870ccb
parent 35241 075bbb8f2423
child 39504 96c700e62710
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     1
#
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     2
# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     4
#
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    10
#
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    15
# accompanied this code).
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    16
#
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    20
#
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    23
# questions.
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    24
#
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    25
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    26
default: all
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    27
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    28
include $(SPEC)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    29
include MakeBase.gmk
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
    30
include JarArchive.gmk
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    31
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    32
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    33
################################################################################
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    34
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    35
US_EXPORT_POLICY_JAR_DST := \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    36
    $(SUPPORT_OUTPUTDIR)/modules_libs/java.base/security/US_export_policy.jar
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    37
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    38
US_EXPORT_POLICY_JAR_LIMITED := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    39
    $(SUPPORT_OUTPUTDIR)/jce/policy/limited/US_export_policy.jar
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    40
US_EXPORT_POLICY_JAR_UNLIMITED := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    41
    $(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/US_export_policy.jar
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    42
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    43
ifndef OPENJDK
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    44
  #
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    45
  # In past releases, Oracle JDK has had a separately downloadable set of
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    46
  # policy files which has been a nightmare for deployment.
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    47
  #
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    48
  # Now if we're closed and limited (default for Oracle JDK), create
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    49
  # an "unlimited_policy" directory that contains the unlimited policy
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    50
  # files.  It will be up to the user/deployer to make an informed choice
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    51
  # as to whether they are legally entitled to use the unlimited policy
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    52
  # file in their environment.  Users/deployers simply need to overwrite
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    53
  # the files.  Consult README.txt (below) for more info.
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    54
  #
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    55
  UNLIMITED_POLICY_DIR := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    56
      $(SUPPORT_OUTPUTDIR)/modules_libs/java.base/security/unlimited_policy
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    57
endif
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    58
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    59
#
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
    60
# TODO fix so that SetupJarArchive does not write files into SRCS
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    61
# then we don't need this extra copying
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    62
#
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    63
# NOTE: We currently do not place restrictions on our limited export
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    64
# policy. This was not a typo. This means we are shipping the same file
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    65
# for both limited and unlimited US_export_policy.jar.  Only the local
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    66
# policy file currently has restrictions.
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    67
#
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    68
US_EXPORT_POLICY_JAR_SRC_DIR := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    69
    $(JDK_TOPDIR)/make/data/cryptopolicy/unlimited
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    70
US_EXPORT_POLICY_JAR_TMP := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    71
    $(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/US_export_policy_jar.tmp
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    72
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    73
$(US_EXPORT_POLICY_JAR_TMP)/%: $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    74
	$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    75
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    76
US_EXPORT_POLICY_JAR_DEPS := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    77
    $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    78
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
    79
$(eval $(call SetupJarArchive, BUILD_US_EXPORT_POLICY_JAR, \
29394
d812e63542e3 8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents: 28520
diff changeset
    80
    DEPENDENCIES := $(US_EXPORT_POLICY_JAR_DEPS), \
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    81
    SRCS := $(US_EXPORT_POLICY_JAR_TMP), \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    82
    SUFFIXES := .policy, \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    83
    JAR := $(US_EXPORT_POLICY_JAR_UNLIMITED), \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    84
    EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
    85
    SKIP_METAINF := true, \
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
    86
))
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    87
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    88
$(US_EXPORT_POLICY_JAR_LIMITED): \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    89
    $(US_EXPORT_POLICY_JAR_UNLIMITED)
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 33503
diff changeset
    90
	$(call LogInfo, Copying unlimited $(patsubst $(OUTPUT_ROOT)/%,%,$@))
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    91
	$(install-file)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    92
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    93
TARGETS += $(US_EXPORT_POLICY_JAR_LIMITED) $(US_EXPORT_POLICY_JAR_UNLIMITED)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    94
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    95
ifeq ($(UNLIMITED_CRYPTO), true)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    96
  $(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNLIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    97
	$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    98
else
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    99
  $(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_LIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   100
	$(install-file)
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 33503
diff changeset
   101
endif
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   102
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   103
ifndef OPENJDK
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   104
  ifneq ($(UNLIMITED_CRYPTO), true)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   105
    $(UNLIMITED_POLICY_DIR)/US_export_policy.jar: \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   106
        $(US_EXPORT_POLICY_JAR_UNLIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   107
		$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   108
    TARGETS += $(UNLIMITED_POLICY_DIR)/US_export_policy.jar
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   109
  endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   110
endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   111
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   112
POLICY_JARS += $(US_EXPORT_POLICY_JAR_DST)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   113
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   114
################################################################################
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   115
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   116
LOCAL_POLICY_JAR_DST := \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   117
    $(SUPPORT_OUTPUTDIR)/modules_libs/java.base/security/local_policy.jar
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   118
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   119
LOCAL_POLICY_JAR_LIMITED := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   120
    $(SUPPORT_OUTPUTDIR)/jce/policy/limited/local_policy.jar
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   121
LOCAL_POLICY_JAR_UNLIMITED := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   122
    $(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/local_policy.jar
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   123
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   124
#
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
   125
# TODO fix so that SetupJarArchive does not write files into SRCS
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   126
# then we don't need this extra copying
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   127
#
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   128
LOCAL_POLICY_JAR_LIMITED_TMP := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   129
    $(SUPPORT_OUTPUTDIR)/jce/policy/limited/local_policy_jar.tmp
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   130
LOCAL_POLICY_JAR_UNLIMITED_TMP := \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   131
    $(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/local_policy_jar.tmp
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   132
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   133
$(LOCAL_POLICY_JAR_LIMITED_TMP)/%: \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   134
    $(JDK_TOPDIR)/make/data/cryptopolicy/limited/%
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   135
	$(install-file)
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   136
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   137
$(LOCAL_POLICY_JAR_UNLIMITED_TMP)/%: \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   138
    $(JDK_TOPDIR)/make/data/cryptopolicy/unlimited/%
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   139
	$(install-file)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   140
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
   141
$(eval $(call SetupJarArchive, BUILD_LOCAL_POLICY_JAR_LIMITED, \
29394
d812e63542e3 8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents: 28520
diff changeset
   142
    DEPENDENCIES := $(LOCAL_POLICY_JAR_LIMITED_TMP)/exempt_local.policy \
d812e63542e3 8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents: 28520
diff changeset
   143
        $(LOCAL_POLICY_JAR_LIMITED_TMP)/default_local.policy, \
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   144
    SRCS := $(LOCAL_POLICY_JAR_LIMITED_TMP), \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   145
    SUFFIXES := .policy, \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   146
    JAR := $(LOCAL_POLICY_JAR_LIMITED), \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   147
    EXTRA_MANIFEST_ATTR := Crypto-Strength: limited, \
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
   148
    SKIP_METAINF := true, \
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
   149
))
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   150
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
   151
$(eval $(call SetupJarArchive, BUILD_LOCAL_POLICY_JAR_UNLIMITED, \
29394
d812e63542e3 8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents: 28520
diff changeset
   152
    DEPENDENCIES := $(LOCAL_POLICY_JAR_UNLIMITED_TMP)/default_local.policy, \
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   153
    SRCS := $(LOCAL_POLICY_JAR_UNLIMITED_TMP), \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   154
    SUFFIXES := .policy, \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   155
    JAR := $(LOCAL_POLICY_JAR_UNLIMITED), \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   156
    EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
33503
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
   157
    SKIP_METAINF := true, \
3a11763ae20a 8141333: Rename SetupArchive to SetupJarArchive
ihse
parents: 29394
diff changeset
   158
))
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   159
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   160
TARGETS += $(LOCAL_POLICY_JAR_LIMITED) $(LOCAL_POLICY_JAR_UNLIMITED)
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   161
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   162
ifndef OPENJDK
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   163
  ifneq ($(UNLIMITED_CRYPTO), true)
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   164
    $(UNLIMITED_POLICY_DIR)/README.txt: \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   165
        $(JDK_TOPDIR)/make/closed/data/cryptopolicy/README.txt
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   166
		$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   167
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   168
    TARGETS += $(UNLIMITED_POLICY_DIR)/README.txt
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   169
  endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   170
endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   171
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   172
ifeq ($(UNLIMITED_CRYPTO), true)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   173
  $(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNLIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   174
	$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   175
else 
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   176
  $(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_LIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   177
	$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   178
endif 
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   179
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   180
ifndef OPENJDK
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   181
  ifneq ($(UNLIMITED_CRYPTO), true)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   182
    $(UNLIMITED_POLICY_DIR)/local_policy.jar: \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   183
        $(LOCAL_POLICY_JAR_UNLIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   184
		$(install-file) 
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   185
    TARGETS += $(UNLIMITED_POLICY_DIR)/local_policy.jar
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   186
  endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   187
endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   188
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   189
POLICY_JARS += $(LOCAL_POLICY_JAR_DST)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   190
TARGETS += $(POLICY_JARS)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   191
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   192
################################################################################
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   193