make/ZipSecurity.gmk
changeset 27560 adc258b13e2c
child 42514 d5c5e07498ef
equal deleted inserted replaced
27559:23d1529db8c7 27560:adc258b13e2c
       
     1 #
       
     2 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
       
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4 #
       
     5 # This code is free software; you can redistribute it and/or modify it
       
     6 # under the terms of the GNU General Public License version 2 only, as
       
     7 # published by the Free Software Foundation.  Oracle designates this
       
     8 # particular file as subject to the "Classpath" exception as provided
       
     9 # by Oracle in the LICENSE file that accompanied this code.
       
    10 #
       
    11 # This code is distributed in the hope that it will be useful, but WITHOUT
       
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    14 # version 2 for more details (a copy is included in the LICENSE file that
       
    15 # accompanied this code).
       
    16 #
       
    17 # You should have received a copy of the GNU General Public License version
       
    18 # 2 along with this work; if not, write to the Free Software Foundation,
       
    19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    20 #
       
    21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    22 # or visit www.oracle.com if you need additional information or have any
       
    23 # questions.
       
    24 #
       
    25 
       
    26 default: all
       
    27 
       
    28 include $(SPEC)
       
    29 include MakeBase.gmk
       
    30 include JavaCompilation.gmk
       
    31 
       
    32 ##########################################################################################
       
    33 #
       
    34 # sec-bin.zip is used by builds where the corresponding sources are not available
       
    35 #
       
    36 $(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP, \
       
    37     SRC := $(JDK_OUTPUTDIR), \
       
    38     INCLUDES := \
       
    39         modules/java.base/javax/crypto \
       
    40         modules/java.base/javax/crypto/spec \
       
    41         modules/java.base/sun/security/internal/interfaces \
       
    42         modules/java.base/sun/security/internal/spec \
       
    43         modules/java.base/com/sun/crypto/provider \
       
    44         modules/jdk.crypto.ec/sun/security/ec \
       
    45         modules/jdk.crypto.mscapi/sun/security/mscapi \
       
    46         modules/jdk.crypto.pkcs11/sun/security/pkcs11 \
       
    47         modules/jdk.crypto.pkcs11/sun/security/pkcs11/wrapper \
       
    48         modules/jdk.crypto.ucrypto/com/oracle/security/ucrypto \
       
    49         modules/java.base/javax/net \
       
    50         modules/java.base/javax/security/cert \
       
    51         modules/java.base/com/sun/net/ssl \
       
    52         modules/java.base/com/sun/security/cert \
       
    53         modules/java.base/sun/net/www/protocol/https \
       
    54         modules/java.base/sun/security/pkcs12 \
       
    55         modules/java.base/sun/security/ssl \
       
    56         modules/java.security.jgss/sun/security/krb5 \
       
    57         modules/java.security.jgss/sun/security/krb5/internal \
       
    58         modules/java.security.jgss/sun/security/krb5/internal/ccache \
       
    59         modules/java.security.jgss/sun/security/krb5/internal/crypto \
       
    60         modules/java.security.jgss/sun/security/krb5/internal/ktab \
       
    61         modules/java.security.jgss/sun/security/krb5/internal/rcache \
       
    62         modules/java.security.jgss/sun/security/krb5/internal/util, \
       
    63     INCLUDE_FILES := modules/java.security.jgss/sun/security/jgss/spi/GSSContextSpi.class, \
       
    64     EXCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \
       
    65     ZIP := $(IMAGES_OUTPUTDIR)/sec-bin.zip))
       
    66 
       
    67 TARGETS += $(IMAGES_OUTPUTDIR)/sec-bin.zip
       
    68 
       
    69 ##########################################################################################
       
    70 #
       
    71 # Windows specific binary security packages.
       
    72 #
       
    73 ifeq ($(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)
       
    98 endif
       
    99 
       
   100 ##########################################################################################
       
   101 
       
   102 all: $(TARGETS)
       
   103 
       
   104 .PHONY: default all