jdk

Форк
0
114 строк · 4.5 Кб
1
#
2
# Copyright (c) 2014, 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

30
ifeq ($(call isTargetOs, windows), true)
31
  ACCESSIBILITY_SRCDIR := $(TOPDIR)/src/jdk.accessibility/windows/native
32

33
  ##############################################################################
34
  # Setup rules to create 32/64 bit version of javaaccessbridge
35
  #
36
  # Parameter 1 Suffix
37
  # Parameter 2 ACCESSBRIDGE_ARCH_ suffix
38
  ##############################################################################
39
  define SetupJavaDLL
40
    $(call SetupJdkLibrary, BUILD_LIBJAVAACCESSBRIDGE$1, \
41
        NAME := javaaccessbridge$1, \
42
        SRC := libjavaaccessbridge, \
43
        EXTRA_SRC := common, \
44
        OPTIMIZATION := LOW, \
45
        DISABLED_WARNINGS_microsoft := 4311 4302 4312, \
46
        CXXFLAGS_FILTER_OUT := -MD, \
47
        CXXFLAGS := -MT -DACCESSBRIDGE_ARCH_$2, \
48
        EXTRA_HEADER_DIRS := \
49
            include/bridge \
50
            java.desktop:include, \
51
        JDK_LIBS := java.desktop:libjawt, \
52
        LIBS_windows := advapi32.lib comdlg32.lib gdi32.lib kernel32.lib \
53
            odbc32.lib odbccp32.lib ole32.lib oleaut32.lib shell32.lib \
54
            user32.lib uuid.lib winspool.lib, \
55
        VERSIONINFO_RESOURCE := \
56
            $(ACCESSIBILITY_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
57
    )
58

59
    TARGETS += $$(BUILD_LIBJAVAACCESSBRIDGE$1)
60
  endef
61

62
  ##############################################################################
63
  # Setup rules to create 32/64 bit version of windowsaccessbridge
64
  #
65
  # Parameter 1 Suffix
66
  # Parameter 2 ACCESSBRIDGE_ARCH_ suffix
67
  ##############################################################################
68
  define SetupWinDLL
69
    $(call SetupJdkLibrary, BUILD_LIBWINDOWSACCESSBRIDGE$1, \
70
        NAME := windowsaccessbridge$1, \
71
        SRC := libwindowsaccessbridge, \
72
        EXTRA_SRC := common, \
73
        OPTIMIZATION := LOW, \
74
        DISABLED_WARNINGS_microsoft_WinAccessBridge.cpp := 4302 4311, \
75
        CXXFLAGS := -DACCESSBRIDGE_ARCH_$2, \
76
        EXTRA_HEADER_DIRS := \
77
            include/bridge, \
78
        LDFLAGS := \
79
            -def:$(ACCESSIBILITY_SRCDIR)/libwindowsaccessbridge/WinAccessBridge.DEF, \
80
        LIBS_windows := advapi32.lib comdlg32.lib gdi32.lib kernel32.lib \
81
            odbc32.lib odbccp32.lib ole32.lib oleaut32.lib shell32.lib \
82
            user32.lib uuid.lib winspool.lib, \
83
        VERSIONINFO_RESOURCE := \
84
            $(ACCESSIBILITY_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
85
    )
86

87
    TARGETS += $$(BUILD_LIBWINDOWSACCESSBRIDGE$1)
88
  endef
89

90
  ifeq ($(call isTargetCpuBits, 32), true)
91
    ############################################################################
92
    # Build libjabsysinfo
93
    ############################################################################
94

95
    $(eval $(call SetupJdkLibrary, BUILD_LIBJABSYSINFO, \
96
        NAME := jabsysinfo, \
97
        OPTIMIZATION := LOW, \
98
        VERSIONINFO_RESOURCE := \
99
            $(ACCESSIBILITY_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
100
    )
101

102
    TARGETS += $(BUILD_LIBJABSYSINFO)
103
  endif
104

105
  ifeq ($(call isTargetCpuBits, 32), true)
106
    $(eval $(call SetupJavaDLL,-32,32))
107
    $(eval $(call SetupJavaDLL,,LEGACY))
108
    $(eval $(call SetupWinDLL,-32,32))
109
    $(eval $(call SetupWinDLL,,LEGACY))
110
  else
111
    $(eval $(call SetupJavaDLL,,64))
112
    $(eval $(call SetupWinDLL,-64,64))
113
  endif
114
endif
115

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

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

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

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