make/gendata/GendataCryptoPolicy.gmk
author herrick
Thu, 28 Mar 2019 13:49:38 -0400
branchJDK-8200758-branch
changeset 57292 7a683c461b80
parent 47217 72e3ae9a25eb
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
#
39504
96c700e62710 8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents: 35241
diff changeset
     2
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
27565
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
40565
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    26
#
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    27
# In pre-JDK9 releases, Oracle JDK has had a separately downloadable set
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    28
# of policy files which has been a nightmare for deployment.
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    29
#
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    30
# We now create 2 complete initial sets of policy files and package into 
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    31
# 2 different directories.  The crypto.policy Security property will select
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    32
# the active policy.
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    33
#
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    34
# It will be up to the user/deployer to make an informed choice
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    35
# as to whether they are legally entitled to use the unlimited policy
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    36
# file in their environment.  The $(UNLIMITED_CRYPTO) make variable
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    37
# determines the default directory/policy.
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    38
#
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    39
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    40
default: all
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    41
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    42
include $(SPEC)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    43
include MakeBase.gmk
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    44
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    45
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    46
################################################################################
40565
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    47
POLICY_DIR := $(SUPPORT_OUTPUTDIR)/modules_conf/java.base/security/policy
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    48
LIMITED_POLICY_DIR := $(POLICY_DIR)/limited
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    49
UNLIMITED_POLICY_DIR := $(POLICY_DIR)/unlimited
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    50
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    51
POLICY_SRC_DIR := $(TOPDIR)/src/java.base/share/conf/security/policy
40565
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    52
LIMITED_POLICY_SRC_DIR := $(POLICY_SRC_DIR)/limited
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    53
UNLIMITED_POLICY_SRC_DIR := $(POLICY_SRC_DIR)/unlimited
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    54
40565
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    55
$(POLICY_DIR)/README.txt: $(POLICY_SRC_DIR)/README.txt
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    56
	$(install-file)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    57
40565
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    58
$(LIMITED_POLICY_DIR)/%: $(LIMITED_POLICY_SRC_DIR)/%
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    59
	$(install-file)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    60
40565
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    61
$(UNLIMITED_POLICY_DIR)/%: $(UNLIMITED_POLICY_SRC_DIR)/%
28520
178ac8a1fbde 8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents: 27565
diff changeset
    62
	$(install-file)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    63
40565
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    64
TARGETS += \
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    65
    $(POLICY_DIR)/README.txt \
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    66
    $(LIMITED_POLICY_DIR)/default_US_export.policy \
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    67
    $(LIMITED_POLICY_DIR)/default_local.policy \
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    68
    $(LIMITED_POLICY_DIR)/exempt_local.policy \
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    69
    $(UNLIMITED_POLICY_DIR)/default_US_export.policy \
3ac0ba151e70 8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents: 39504
diff changeset
    70
    $(UNLIMITED_POLICY_DIR)/default_local.policy \
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    71
729f9700483a 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    72
################################################################################