jdk

Форк
0
/
ZipSecurity.gmk 
102 строки · 4.3 Кб
1
#
2
# Copyright (c) 2014, 2023, 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.mscapi/sun/security/mscapi \
45
        modules/jdk.crypto.cryptoki/sun/security/pkcs11 \
46
        modules/jdk.crypto.cryptoki/sun/security/pkcs11/wrapper \
47
        modules/java.base/javax/net \
48
        modules/java.base/javax/security/cert \
49
        modules/java.base/com/sun/net/ssl \
50
        modules/java.base/com/sun/security/cert \
51
        modules/java.base/sun/net/www/protocol/https \
52
        modules/java.base/sun/security/pkcs12 \
53
        modules/java.base/sun/security/ssl \
54
        modules/java.security.jgss/sun/security/krb5 \
55
        modules/java.security.jgss/sun/security/krb5/internal \
56
        modules/java.security.jgss/sun/security/krb5/internal/ccache \
57
        modules/java.security.jgss/sun/security/krb5/internal/crypto \
58
        modules/java.security.jgss/sun/security/krb5/internal/ktab \
59
        modules/java.security.jgss/sun/security/krb5/internal/rcache \
60
        modules/java.security.jgss/sun/security/krb5/internal/util, \
61
    INCLUDE_FILES := modules/java.security.jgss/sun/security/jgss/spi/GSSContextSpi.class, \
62
    EXCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \
63
    ZIP := $(IMAGES_OUTPUTDIR)/sec-bin.zip))
64

65
TARGETS += $(IMAGES_OUTPUTDIR)/sec-bin.zip
66

67
##########################################################################################
68
#
69
# Windows specific binary security packages.
70
#
71
ifeq ($(call isTargetOs, windows), true)
72
  # sec-windows-bin.zip is used by builds where the corresponding sources are not available
73
  $(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP, \
74
      SRC := $(JDK_OUTPUTDIR), \
75
      INCLUDES := modules/java.security.jgss/sun/security/krb5/internal/tools, \
76
      ZIP := $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip))
77

78
  TARGETS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip
79

80
  # JGSS files contain the native Kerberos library
81
  ifeq ($(call isTargetCpu, x86_64), true)
82
    JGSS_ZIP_NAME = jgss-windows-x64-bin.zip
83
  else
84
    JGSS_ZIP_NAME = jgss-windows-i586-bin.zip
85
  endif
86

87
  $(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP, \
88
      SRC := $(SUPPORT_OUTPUTDIR), \
89
      INCLUDE_FILES := modules_libs/java.security.jgss/w2k_lsa_auth.dll \
90
          modules_libs/java.security.jgss/w2k_lsa_auth.dll.diz \
91
          modules_libs/java.security.jgss/w2k_lsa_auth.dll.map \
92
          modules_libs/java.security.jgss/w2k_lsa_auth.dll.pdb, \
93
      ZIP := $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)))
94

95
  TARGETS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)
96
endif
97

98
##########################################################################################
99

100
all: $(TARGETS)
101

102
.PHONY: default all
103

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.