79345bbbae
Reviewed-by: kbarrett, kvn, stuefe, shade, erikj
81 lines
3.3 KiB
Plaintext
81 lines
3.3 KiB
Plaintext
#
|
|
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
#
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
#
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
# accompanied this code).
|
|
#
|
|
# You should have received a copy of the GNU General Public License version
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
#
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
# questions.
|
|
#
|
|
|
|
include LibCommon.gmk
|
|
|
|
################################################################################
|
|
|
|
ifeq ($(call isTargetOs, windows), true)
|
|
ACCESSIBILITY_SRCDIR := $(TOPDIR)/src/jdk.accessibility/windows/native
|
|
|
|
##############################################################################
|
|
## Build libjavaaccessbridge
|
|
##############################################################################
|
|
|
|
$(eval $(call SetupJdkLibrary, BUILD_LIBJAVAACCESSBRIDGE, \
|
|
NAME := javaaccessbridge, \
|
|
EXTRA_SRC := common, \
|
|
OPTIMIZATION := LOW, \
|
|
DISABLED_WARNINGS_microsoft := 4311 4302 4312, \
|
|
CXXFLAGS_FILTER_OUT := -MD, \
|
|
CXXFLAGS := -MT -DACCESSBRIDGE_ARCH_64, \
|
|
EXTRA_HEADER_DIRS := \
|
|
include/bridge \
|
|
java.desktop:include, \
|
|
JDK_LIBS := java.desktop:libjawt, \
|
|
LIBS_windows := advapi32.lib comdlg32.lib gdi32.lib kernel32.lib \
|
|
odbc32.lib odbccp32.lib ole32.lib oleaut32.lib shell32.lib \
|
|
user32.lib uuid.lib winspool.lib, \
|
|
VERSIONINFO_RESOURCE := \
|
|
$(ACCESSIBILITY_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
|
|
))
|
|
|
|
TARGETS += $(BUILD_LIBJAVAACCESSBRIDGE)
|
|
|
|
##############################################################################
|
|
## Build libwindowsaccessbridge
|
|
##############################################################################
|
|
|
|
$(eval $(call SetupJdkLibrary, BUILD_LIBWINDOWSACCESSBRIDGE, \
|
|
NAME := windowsaccessbridge-64, \
|
|
SRC := libwindowsaccessbridge, \
|
|
EXTRA_SRC := common, \
|
|
OPTIMIZATION := LOW, \
|
|
DISABLED_WARNINGS_microsoft_WinAccessBridge.cpp := 4302 4311, \
|
|
CXXFLAGS := -DACCESSBRIDGE_ARCH_64, \
|
|
EXTRA_HEADER_DIRS := \
|
|
include/bridge, \
|
|
LDFLAGS := \
|
|
-def:$(ACCESSIBILITY_SRCDIR)/libwindowsaccessbridge/WinAccessBridge.DEF, \
|
|
LIBS_windows := advapi32.lib comdlg32.lib gdi32.lib kernel32.lib \
|
|
odbc32.lib odbccp32.lib ole32.lib oleaut32.lib shell32.lib \
|
|
user32.lib uuid.lib winspool.lib, \
|
|
VERSIONINFO_RESOURCE := \
|
|
$(ACCESSIBILITY_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
|
|
))
|
|
|
|
TARGETS += $(BUILD_LIBWINDOWSACCESSBRIDGE)
|
|
endif
|