ZipSecurity.gmk revision 2450:8d26916eaa21
1238438Sdteske# 2238438Sdteske# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. 3249746Sdteske# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4238438Sdteske# 5238438Sdteske# This code is free software; you can redistribute it and/or modify it 6238438Sdteske# under the terms of the GNU General Public License version 2 only, as 7238438Sdteske# published by the Free Software Foundation. Oracle designates this 8238438Sdteske# particular file as subject to the "Classpath" exception as provided 9238438Sdteske# by Oracle in the LICENSE file that accompanied this code. 10238438Sdteske# 11238438Sdteske# This code is distributed in the hope that it will be useful, but WITHOUT 12238438Sdteske# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13238438Sdteske# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14238438Sdteske# version 2 for more details (a copy is included in the LICENSE file that 15238438Sdteske# accompanied this code). 16238438Sdteske# 17238438Sdteske# You should have received a copy of the GNU General Public License version 18238438Sdteske# 2 along with this work; if not, write to the Free Software Foundation, 19238438Sdteske# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20238438Sdteske# 21238438Sdteske# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22238438Sdteske# or visit www.oracle.com if you need additional information or have any 23238438Sdteske# questions. 24238438Sdteske# 25238438Sdteske 26238438Sdteskedefault: all 27238438Sdteske 28238438Sdteskeinclude $(SPEC) 29238438Sdteskeinclude MakeBase.gmk 30238438Sdteskeinclude JavaCompilation.gmk 31240684Sdteske 32240684Sdteske########################################################################################## 33244675Sdteske# 34240684Sdteske# sec-bin.zip is used by builds where the corresponding sources are not available 35240684Sdteske# 36240684Sdteske$(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP, \ 37238438Sdteske SRC := $(JDK_OUTPUTDIR), \ 38240684Sdteske INCLUDES := \ 39238438Sdteske modules/java.base/javax/crypto \ 40238438Sdteske modules/java.base/javax/crypto/spec \ 41243112Sdteske modules/java.base/sun/security/internal/interfaces \ 42238438Sdteske modules/java.base/sun/security/internal/spec \ 43238438Sdteske modules/java.base/com/sun/crypto/provider \ 44238438Sdteske modules/jdk.crypto.ec/sun/security/ec \ 45238438Sdteske modules/jdk.crypto.mscapi/sun/security/mscapi \ 46238438Sdteske modules/jdk.crypto.cryptoki/sun/security/pkcs11 \ 47238438Sdteske modules/jdk.crypto.cryptoki/sun/security/pkcs11/wrapper \ 48238438Sdteske modules/jdk.crypto.ucrypto/com/oracle/security/ucrypto \ 49238438Sdteske modules/java.base/javax/net \ 50238438Sdteske modules/java.base/javax/security/cert \ 51238438Sdteske modules/java.base/com/sun/net/ssl \ 52250633Sdteske modules/java.base/com/sun/security/cert \ 53238438Sdteske modules/java.base/sun/net/www/protocol/https \ 54252178Sdteske modules/java.base/sun/security/pkcs12 \ 55238438Sdteske modules/java.base/sun/security/ssl \ 56238438Sdteske modules/java.security.jgss/sun/security/krb5 \ 57238438Sdteske modules/java.security.jgss/sun/security/krb5/internal \ 58238438Sdteske modules/java.security.jgss/sun/security/krb5/internal/ccache \ 59238438Sdteske modules/java.security.jgss/sun/security/krb5/internal/crypto \ 60238438Sdteske modules/java.security.jgss/sun/security/krb5/internal/ktab \ 61238438Sdteske modules/java.security.jgss/sun/security/krb5/internal/rcache \ 62238438Sdteske modules/java.security.jgss/sun/security/krb5/internal/util, \ 63238438Sdteske INCLUDE_FILES := modules/java.security.jgss/sun/security/jgss/spi/GSSContextSpi.class, \ 64238438Sdteske EXCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \ 65252000Sdteske ZIP := $(IMAGES_OUTPUTDIR)/sec-bin.zip)) 66252000Sdteske 67252000SdteskeTARGETS += $(IMAGES_OUTPUTDIR)/sec-bin.zip 68238438Sdteske 69238438Sdteske########################################################################################## 70238438Sdteske# 71238438Sdteske# Windows specific binary security packages. 72238438Sdteske# 73ifeq ($(OPENJDK_TARGET_OS), windows) 74 # sec-windows-bin.zip is used by builds where the corresponding sources are not available 75 $(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP, \ 76 SRC := $(JDK_OUTPUTDIR), \ 77 INCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \ 78 ZIP := $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip)) 79 80 TARGETS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip 81 82 # JGSS files contain the native Kerberos library 83 ifeq ($(OPENJDK_TARGET_CPU), x86_64) 84 JGSS_ZIP_NAME = jgss-windows-x64-bin.zip 85 else 86 JGSS_ZIP_NAME = jgss-windows-i586-bin.zip 87 endif 88 89 $(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \ 90 SRC := $(SUPPORT_OUTPUTDIR), \ 91 INCLUDE_FILES := modules_libs/java.security.jgss/w2k_lsa_auth.dll \ 92 modules_libs/java.security.jgss/w2k_lsa_auth.diz \ 93 modules_libs/java.security.jgss/w2k_lsa_auth.map \ 94 modules_libs/java.security.jgss/w2k_lsa_auth.pdb, \ 95 ZIP := $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME))) 96 97 TARGETS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME) 98endif 99 100########################################################################################## 101 102all: $(TARGETS) 103 104.PHONY: default all 105