jdk/make/gendata/GendataPolicyJars.gmk
author dfuchs
Fri, 26 Jun 2015 17:26:48 +0200
changeset 31288 204ed502eb8a
parent 29394 d812e63542e3
child 33503 3a11763ae20a
permissions -rw-r--r--
8129956: jaxp: CodeSource.getLocation() might return null Reviewed-by: lancea
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
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    30
include JavaCompilation.gmk
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
#
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    60
# TODO fix so that SetupArchive does not write files into SRCS
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
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    79
$(eval $(call SetupArchive,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, \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    85
    SKIP_METAINF := true))
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    86
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    87
$(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
    88
    $(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
    89
	$(ECHO) $(LOG_INFO) \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    90
	    Copying unlimited $(patsubst $(OUTPUT_ROOT)/%,%,$@)
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)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   101
endif 
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
#
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   125
# TODO fix so that SetupArchive does not write files into SRCS
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
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   141
$(eval $(call SetupArchive,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, \
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   148
    SKIP_METAINF := true))
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   149
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   150
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR_UNLIMITED, \
29394
d812e63542e3 8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents: 28520
diff changeset
   151
    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
   152
    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
   153
    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
   154
    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
   155
    EXTRA_MANIFEST_ATTR := Crypto-Strength: 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
    SKIP_METAINF := true))
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   157
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   158
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
   159
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   160
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
   161
  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
   162
    $(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
   163
        $(JDK_TOPDIR)/make/closed/data/cryptopolicy/README.txt
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   164
		$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   165
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
   166
    TARGETS += $(UNLIMITED_POLICY_DIR)/README.txt
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   167
  endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   168
endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   169
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   170
ifeq ($(UNLIMITED_CRYPTO), true)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   171
  $(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNLIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   172
	$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   173
else 
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   174
  $(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_LIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   175
	$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   176
endif 
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   177
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   178
ifndef OPENJDK
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   179
  ifneq ($(UNLIMITED_CRYPTO), true)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   180
    $(UNLIMITED_POLICY_DIR)/local_policy.jar: \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   181
        $(LOCAL_POLICY_JAR_UNLIMITED)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   182
		$(install-file) 
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   183
    TARGETS += $(UNLIMITED_POLICY_DIR)/local_policy.jar
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   184
  endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   185
endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   186
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   187
POLICY_JARS += $(LOCAL_POLICY_JAR_DST)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   188
TARGETS += $(POLICY_JARS)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   189
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   190
################################################################################
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
   191