jdk
96 строк · 3.5 Кб
1#
2# Copyright (c) 2011, 2024, 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
26include LibCommon.gmk
27
28################################################################################
29## Build libj2gss
30################################################################################
31
32$(eval $(call SetupJdkLibrary, BUILD_LIBJ2GSS, \
33NAME := j2gss, \
34OPTIMIZATION := LOW, \
35EXTRA_HEADER_DIRS := java.base:libjava, \
36DISABLED_WARNINGS_gcc := undef, \
37DISABLED_WARNINGS_clang := undef, \
38LIBS_unix := $(LIBDL), \
39))
40
41TARGETS += $(BUILD_LIBJ2GSS)
42
43ifeq ($(call isTargetOs, windows), true)
44##############################################################################
45## Build libsspi_bridge
46##############################################################################
47
48$(eval $(call SetupJdkLibrary, BUILD_LIBSSPI_BRIDGE, \
49NAME := sspi_bridge, \
50OPTIMIZATION := LOW, \
51EXTRA_HEADER_DIRS := \
52libj2gss \
53java.base:libjava, \
54LIBS_windows := secur32.lib, \
55))
56
57TARGETS += $(BUILD_LIBSSPI_BRIDGE)
58endif
59
60ifneq ($(BUILD_CRYPTO), false)
61ifeq ($(call isTargetOs, windows), true)
62############################################################################
63## Build libw2k_lsa_auth
64############################################################################
65
66$(eval $(call SetupJdkLibrary, BUILD_LIBW2K_LSA_AUTH, \
67NAME := w2k_lsa_auth, \
68OPTIMIZATION := LOW, \
69EXTRA_HEADER_DIRS := java.base:libjava, \
70LIBS_windows := advapi32.lib kernel32.lib secur32.lib ws2_32.lib, \
71))
72
73TARGETS += $(BUILD_LIBW2K_LSA_AUTH)
74endif
75
76ifeq ($(call isTargetOs, macosx), true)
77############################################################################
78## Build libosxkrb5
79############################################################################
80
81# libosxkrb5 needs to call deprecated krb5 APIs so that java
82# can use the native credentials cache.
83$(eval $(call SetupJdkLibrary, BUILD_LIBOSXKRB5, \
84NAME := osxkrb5, \
85OPTIMIZATION := LOW, \
86EXTRA_HEADER_DIRS := java.base:libjava, \
87DISABLED_WARNINGS_clang_nativeccache.c := deprecated-declarations, \
88LIBS_macosx := \
89-framework Cocoa \
90-framework Kerberos \
91-framework SystemConfiguration, \
92))
93
94TARGETS += $(BUILD_LIBOSXKRB5)
95endif
96endif
97