jdk

Форк
0
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

26
include LibCommon.gmk
27

28
################################################################################
29
## Build libj2gss
30
################################################################################
31

32
$(eval $(call SetupJdkLibrary, BUILD_LIBJ2GSS, \
33
    NAME := j2gss, \
34
    OPTIMIZATION := LOW, \
35
    EXTRA_HEADER_DIRS := java.base:libjava, \
36
    DISABLED_WARNINGS_gcc := undef, \
37
    DISABLED_WARNINGS_clang := undef, \
38
    LIBS_unix := $(LIBDL), \
39
))
40

41
TARGETS += $(BUILD_LIBJ2GSS)
42

43
ifeq ($(call isTargetOs, windows), true)
44
  ##############################################################################
45
  ## Build libsspi_bridge
46
  ##############################################################################
47

48
  $(eval $(call SetupJdkLibrary, BUILD_LIBSSPI_BRIDGE, \
49
      NAME := sspi_bridge, \
50
      OPTIMIZATION := LOW, \
51
      EXTRA_HEADER_DIRS := \
52
          libj2gss \
53
          java.base:libjava, \
54
      LIBS_windows := secur32.lib, \
55
  ))
56

57
  TARGETS += $(BUILD_LIBSSPI_BRIDGE)
58
endif
59

60
ifneq ($(BUILD_CRYPTO), false)
61
  ifeq ($(call isTargetOs, windows), true)
62
    ############################################################################
63
    ## Build libw2k_lsa_auth
64
    ############################################################################
65

66
    $(eval $(call SetupJdkLibrary, BUILD_LIBW2K_LSA_AUTH, \
67
        NAME := w2k_lsa_auth, \
68
        OPTIMIZATION := LOW, \
69
        EXTRA_HEADER_DIRS := java.base:libjava, \
70
        LIBS_windows := advapi32.lib kernel32.lib secur32.lib ws2_32.lib, \
71
    ))
72

73
    TARGETS += $(BUILD_LIBW2K_LSA_AUTH)
74
  endif
75

76
  ifeq ($(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, \
84
        NAME := osxkrb5, \
85
        OPTIMIZATION := LOW, \
86
        EXTRA_HEADER_DIRS := java.base:libjava, \
87
        DISABLED_WARNINGS_clang_nativeccache.c := deprecated-declarations, \
88
        LIBS_macosx := \
89
            -framework Cocoa \
90
            -framework Kerberos \
91
            -framework SystemConfiguration, \
92
    ))
93

94
    TARGETS += $(BUILD_LIBOSXKRB5)
95
  endif
96
endif
97

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

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

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

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