make/gendata/GendataCryptoPolicy.gmk
author chagedorn
Thu, 12 Sep 2019 12:23:25 +0200
changeset 58104 46e11f978852
parent 47217 72e3ae9a25eb
permissions -rw-r--r--
8220416: Comparison of klass pointers is not optimized any more Summary: Enables dead klass pointer optimization (since JDK-6964458) again. Reviewed-by: roland, thartmann

#
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.  Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#

#
# In pre-JDK9 releases, Oracle JDK has had a separately downloadable set
# of policy files which has been a nightmare for deployment.
#
# We now create 2 complete initial sets of policy files and package into 
# 2 different directories.  The crypto.policy Security property will select
# the active policy.
#
# It will be up to the user/deployer to make an informed choice
# as to whether they are legally entitled to use the unlimited policy
# file in their environment.  The $(UNLIMITED_CRYPTO) make variable
# determines the default directory/policy.
#

default: all

include $(SPEC)
include MakeBase.gmk


################################################################################
POLICY_DIR := $(SUPPORT_OUTPUTDIR)/modules_conf/java.base/security/policy
LIMITED_POLICY_DIR := $(POLICY_DIR)/limited
UNLIMITED_POLICY_DIR := $(POLICY_DIR)/unlimited

POLICY_SRC_DIR := $(TOPDIR)/src/java.base/share/conf/security/policy
LIMITED_POLICY_SRC_DIR := $(POLICY_SRC_DIR)/limited
UNLIMITED_POLICY_SRC_DIR := $(POLICY_SRC_DIR)/unlimited

$(POLICY_DIR)/README.txt: $(POLICY_SRC_DIR)/README.txt
	$(install-file)

$(LIMITED_POLICY_DIR)/%: $(LIMITED_POLICY_SRC_DIR)/%
	$(install-file)

$(UNLIMITED_POLICY_DIR)/%: $(UNLIMITED_POLICY_SRC_DIR)/%
	$(install-file)

TARGETS += \
    $(POLICY_DIR)/README.txt \
    $(LIMITED_POLICY_DIR)/default_US_export.policy \
    $(LIMITED_POLICY_DIR)/default_local.policy \
    $(LIMITED_POLICY_DIR)/exempt_local.policy \
    $(UNLIMITED_POLICY_DIR)/default_US_export.policy \
    $(UNLIMITED_POLICY_DIR)/default_local.policy \

################################################################################