ZipSecurity.gmk revision 2382:a961461576fd
1296936Smmel#
2296936Smmel# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3296936Smmel# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4296936Smmel#
5296936Smmel# This code is free software; you can redistribute it and/or modify it
6296936Smmel# under the terms of the GNU General Public License version 2 only, as
7296936Smmel# published by the Free Software Foundation.  Oracle designates this
8296936Smmel# particular file as subject to the "Classpath" exception as provided
9296936Smmel# by Oracle in the LICENSE file that accompanied this code.
10296936Smmel#
11296936Smmel# This code is distributed in the hope that it will be useful, but WITHOUT
12296936Smmel# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13296936Smmel# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14296936Smmel# version 2 for more details (a copy is included in the LICENSE file that
15296936Smmel# accompanied this code).
16296936Smmel#
17296936Smmel# You should have received a copy of the GNU General Public License version
18296936Smmel# 2 along with this work; if not, write to the Free Software Foundation,
19296936Smmel# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20296936Smmel#
21296936Smmel# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22296936Smmel# or visit www.oracle.com if you need additional information or have any
23296936Smmel# questions.
24296936Smmel#
25296936Smmel
26296936Smmeldefault: all
27296936Smmel
28296936Smmelinclude $(SPEC)
29296936Smmelinclude MakeBase.gmk
30296936Smmelinclude JavaCompilation.gmk
31296936Smmel
32296936Smmel##########################################################################################
33296936Smmel#
34296936Smmel# sec-bin.zip is used by builds where the corresponding sources are not available
35296936Smmel#
36296936Smmel$(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP, \
37296936Smmel    SRC := $(JDK_OUTPUTDIR), \
38332010Smmel    INCLUDES := \
39296936Smmel        modules/java.base/javax/crypto \
40296936Smmel        modules/java.base/javax/crypto/spec \
41296936Smmel        modules/java.base/sun/security/internal/interfaces \
42296936Smmel        modules/java.base/sun/security/internal/spec \
43296936Smmel        modules/java.base/com/sun/crypto/provider \
44296936Smmel        modules/jdk.crypto.ec/sun/security/ec \
45296936Smmel        modules/jdk.crypto.mscapi/sun/security/mscapi \
46296936Smmel        modules/jdk.crypto.token/sun/security/pkcs11 \
47296936Smmel        modules/jdk.crypto.token/sun/security/pkcs11/wrapper \
48296936Smmel        modules/jdk.crypto.ucrypto/com/oracle/security/ucrypto \
49296936Smmel        modules/java.base/javax/net \
50296936Smmel        modules/java.base/javax/security/cert \
51296936Smmel        modules/java.base/com/sun/net/ssl \
52296936Smmel        modules/java.base/com/sun/security/cert \
53296936Smmel        modules/java.base/sun/net/www/protocol/https \
54296936Smmel        modules/java.base/sun/security/pkcs12 \
55296936Smmel        modules/java.base/sun/security/ssl \
56296936Smmel        modules/java.security.jgss/sun/security/krb5 \
57296936Smmel        modules/java.security.jgss/sun/security/krb5/internal \
58296936Smmel        modules/java.security.jgss/sun/security/krb5/internal/ccache \
59296936Smmel        modules/java.security.jgss/sun/security/krb5/internal/crypto \
60296936Smmel        modules/java.security.jgss/sun/security/krb5/internal/ktab \
61332010Smmel        modules/java.security.jgss/sun/security/krb5/internal/rcache \
62296936Smmel        modules/java.security.jgss/sun/security/krb5/internal/util, \
63296936Smmel    INCLUDE_FILES := modules/java.security.jgss/sun/security/jgss/spi/GSSContextSpi.class, \
64296936Smmel    EXCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \
65296936Smmel    ZIP := $(IMAGES_OUTPUTDIR)/sec-bin.zip))
66296936Smmel
67296936SmmelTARGETS += $(IMAGES_OUTPUTDIR)/sec-bin.zip
68296936Smmel
69296936Smmel##########################################################################################
70296936Smmel#
71296936Smmel# Windows specific binary security packages.
72296936Smmel#
73296936Smmelifeq ($(OPENJDK_TARGET_OS), windows)
74296936Smmel  # sec-windows-bin.zip is used by builds where the corresponding sources are not available
75296936Smmel  $(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP, \
76296936Smmel      SRC := $(JDK_OUTPUTDIR), \
77296936Smmel      INCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \
78296936Smmel      ZIP := $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip))
79296936Smmel
80296936Smmel  TARGETS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip
81296936Smmel
82296936Smmel  # JGSS files contain the native Kerberos library
83296936Smmel  ifeq ($(OPENJDK_TARGET_CPU), x86_64)
84296936Smmel    JGSS_ZIP_NAME = jgss-windows-x64-bin.zip
85296936Smmel  else
86296936Smmel    JGSS_ZIP_NAME = jgss-windows-i586-bin.zip
87296936Smmel  endif
88296936Smmel
89296936Smmel  $(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \
90296936Smmel      SRC := $(SUPPORT_OUTPUTDIR), \
91296936Smmel      INCLUDE_FILES := modules_libs/java.security.jgss/w2k_lsa_auth.dll \
92296936Smmel          modules_libs/java.security.jgss/w2k_lsa_auth.diz \
93296936Smmel          modules_libs/java.security.jgss/w2k_lsa_auth.map \
94296936Smmel          modules_libs/java.security.jgss/w2k_lsa_auth.pdb, \
95296936Smmel      ZIP := $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)))
96296936Smmel
97296936Smmel  TARGETS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)
98296936Smmelendif
99296936Smmel
100296936Smmel##########################################################################################
101296936Smmel
102296936Smmelall: $(TARGETS)
103296936Smmel
104296936Smmel.PHONY: default all
105296936Smmel