Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openjdk/jdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0c281acf
Choose a base ref
...
head repository: openjdk/jdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a9d56f2f
Choose a head ref

Commits on Oct 28, 2024

  1. Copy the full SHA
    a18d19c View commit details

Commits on Oct 29, 2024

  1. Copy the full SHA
    5c98695 View commit details
  2. Copy the full SHA
    d5280f6 View commit details
  3. Copy the full SHA
    bcf821d View commit details
  4. Use #error for unknown CPU

    magicus committed Oct 29, 2024
    Copy the full SHA
    c6b8771 View commit details
  5. Copy the full SHA
    6b07b7d View commit details
  6. Copy the full SHA
    0167582 View commit details
  7. Copy the full SHA
    bfca62e View commit details
  8. Copy the full SHA
    d7ceff4 View commit details
  9. Copy the full SHA
    c69e804 View commit details
  10. Copy the full SHA
    fdec8b1 View commit details
  11. Copy the full SHA
    e567307 View commit details
  12. Copy the full SHA
    afb5097 View commit details
  13. Copy the full SHA
    9df6cb9 View commit details
  14. Copy the full SHA
    7eb46c3 View commit details
  15. Copy the full SHA
    3556bec View commit details

Commits on Oct 30, 2024

  1. Copy the full SHA
    341de0b View commit details
  2. Copy the full SHA
    0fff097 View commit details

Commits on Nov 1, 2024

  1. Copy the full SHA
    fe8ba08 View commit details
  2. Copy the full SHA
    ec7e19b View commit details
  3. Remove superfluous check for 64-bit on Windows in MacroAssembler::cal…

    …l_clobbered_xmm_registers
    magicus committed Nov 1, 2024
    Copy the full SHA
    68d6fe5 View commit details

Commits on Nov 4, 2024

  1. Restore code in adlc.hpp

    magicus committed Nov 4, 2024
    Copy the full SHA
    c6dce38 View commit details
  2. Copy the full SHA
    d89bc56 View commit details
  3. Remove __stdcall notation

    magicus committed Nov 4, 2024
    Copy the full SHA
    fbd91ad View commit details
  4. Copy the full SHA
    dccf1a1 View commit details
  5. Copy the full SHA
    6432343 View commit details
  6. Also remove __cdecl

    magicus committed Nov 4, 2024
    Copy the full SHA
    82fbc51 View commit details
  7. Copy the full SHA
    b5a481d View commit details
  8. Copy the full SHA
    466a1a7 View commit details
  9. Copy the full SHA
    88d89e7 View commit details
  10. [JNI/JVM/AGENT]_[ONLOAD/ONUNLOAD/ONATTACH]_SYMBOLS are now identical …

    …on Windows and Unix, so unify them
    magicus committed Nov 4, 2024
    Copy the full SHA
    6f690d0 View commit details
  11. Copy the full SHA
    48d722b View commit details
  12. Copy the full SHA
    699c641 View commit details
  13. Update copyright years

    magicus committed Nov 4, 2024
    Copy the full SHA
    40291b9 View commit details
  14. Copy the full SHA
    9b10e74 View commit details

Commits on Nov 6, 2024

  1. Remove FIXME

    magicus committed Nov 6, 2024
    Copy the full SHA
    de3c773 View commit details

Commits on Nov 8, 2024

  1. Copy the full SHA
    a9d56f2 View commit details
Showing with 353 additions and 1,839 deletions.
  1. +3 −0 make/autoconf/basic.m4
  2. +9 −9 make/autoconf/platform.m4
  3. +7 −25 make/autoconf/toolchain_microsoft.m4
  4. +1 −3 make/hotspot/gensrc/GensrcAdlc.gmk
  5. +1 −5 make/modules/java.desktop/lib/AwtLibraries.gmk
  6. +33 −52 make/modules/jdk.accessibility/Launcher.gmk
  7. +39 −73 make/modules/jdk.accessibility/Lib.gmk
  8. +8 −25 make/scripts/compare.sh
  9. +0 −50 src/hotspot/cpu/x86/jniFastGetField_x86_32.cpp
  10. +1 −8 src/hotspot/cpu/x86/macroAssembler_x86.cpp
  11. +0 −8 src/hotspot/cpu/x86/vm_version_x86.cpp
  12. +1 −8 src/hotspot/os/posix/include/jvm_md.h
  13. +0 −8 src/hotspot/os/posix/os_posix.cpp
  14. +1 −8 src/hotspot/os/windows/include/jvm_md.h
  15. +20 −333 src/hotspot/os/windows/os_windows.cpp
  16. +1 −16 src/hotspot/os/windows/os_windows.hpp
  17. +1 −4 src/hotspot/os/windows/sharedRuntimeRem.cpp
  18. +1 −35 src/hotspot/os_cpu/windows_x86/assembler_windows_x86.cpp
  19. +1 −76 src/hotspot/os_cpu/windows_x86/atomic_windows_x86.hpp
  20. +1 −33 src/hotspot/os_cpu/windows_x86/copy_windows_x86.hpp
  21. +1 −7 src/hotspot/os_cpu/windows_x86/orderAccess_windows_x86.hpp
  22. +1 −108 src/hotspot/os_cpu/windows_x86/os_windows_x86.cpp
  23. +1 −3 src/hotspot/os_cpu/windows_x86/os_windows_x86.inline.hpp
  24. +1 −5 src/hotspot/os_cpu/windows_x86/unwind_windows_x86.hpp
  25. +3 −3 src/hotspot/share/adlc/adlc.hpp
  26. +0 −2 src/hotspot/share/adlc/main.cpp
  27. +0 −6 src/hotspot/share/classfile/javaClasses.cpp
  28. +0 −6 src/hotspot/share/compiler/compilerDefinitions.cpp
  29. +7 −0 src/hotspot/share/include/jvm.h
  30. +0 −4 src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
  31. +1 −12 src/hotspot/share/prims/jniFastGetField.hpp
  32. +1 −1 src/hotspot/share/prims/jvm.cpp
  33. +2 −1 src/hotspot/share/prims/jvmtiAgent.cpp
  34. +5 −20 src/hotspot/share/prims/nativeLookup.cpp
  35. +3 −3 src/hotspot/share/prims/nativeLookup.hpp
  36. +0 −4 src/hotspot/share/runtime/os.hpp
  37. +2 −2 src/hotspot/share/runtime/sharedRuntimeTrans.cpp
  38. +6 −16 src/hotspot/share/utilities/globalDefinitions_visCPP.hpp
  39. +2 −0 src/java.base/share/native/include/jni.h
  40. +9 −1 src/java.base/share/native/libjava/NativeLibraries.c
  41. +0 −3 src/java.base/share/native/libjava/jni_util.h
  42. +1 −3 src/java.base/unix/native/include/jni_md.h
  43. +1 −10 src/java.base/unix/native/libjava/jni_util_md.c
  44. +1 −2 src/java.base/windows/native/include/jni_md.h
  45. +1 −6 src/java.base/windows/native/libjava/gdefs_md.h
  46. +0 −2 src/java.base/windows/native/libjava/java_props_md.c
  47. +1 −8 src/java.base/windows/native/libjava/jlong_md.h
  48. +1 −29 src/java.base/windows/native/libjava/jni_util_md.c
  49. +1 −1 src/java.base/windows/native/libjli/java_md.c
  50. +1 −12 src/java.base/windows/native/libnio/ch/WindowsSelectorImpl.c
  51. +1 −13 src/java.base/windows/native/libnio/ch/nio_util.h
  52. +2 −12 src/java.desktop/share/native/libawt/java2d/pipe/ShapeSpanIterator.c
  53. +18 −18 src/java.desktop/windows/native/libawt/windows/ThemeReader.cpp
  54. +2 −2 src/java.desktop/windows/native/libawt/windows/alloc.h
  55. +0 −38 src/java.desktop/windows/native/libawt/windows/awt.h
  56. +1 −5 src/java.desktop/windows/native/libawt/windows/awt_Debug.cpp
  57. +39 −40 src/java.desktop/windows/native/libawt/windows/awt_DnDDS.cpp
  58. +38 −38 src/java.desktop/windows/native/libawt/windows/awt_DnDDS.h
  59. +12 −12 src/java.desktop/windows/native/libawt/windows/awt_DnDDT.cpp
  60. +9 −9 src/java.desktop/windows/native/libawt/windows/awt_DnDDT.h
  61. +2 −2 src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp
  62. +2 −2 src/java.desktop/windows/native/libawt/windows/awt_Toolkit.h
  63. +3 −3 src/java.desktop/windows/native/libawt/windows/awt_new.cpp
  64. +3 −3 src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_Charset_Util.h
  65. +3 −3 src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp
  66. +3 −3 src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_MidiIn.cpp
  67. +0 −56 src/jdk.accessibility/windows/native/libjabsysinfo/AccessBridgeSysInfo.cpp
  68. +3 −3 src/jdk.accessibility/windows/native/libjavaaccessbridge/AccessBridgeATInstance.cpp
  69. +9 −21 src/jdk.attach/windows/native/libattach/VirtualMachineImpl.c
  70. +2 −11 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/windbg/WindbgCDebugger.java
  71. +2 −6 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/windbg/WindbgDebuggerLocal.java
  72. +0 −92 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/windbg/x86/WindbgX86Thread.java
  73. +0 −46 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/windbg/x86/WindbgX86ThreadContext.java
  74. +0 −44 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/windbg/x86/WindbgX86ThreadFactory.java
  75. +0 −88 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/windows/x86/WindowsX86CFrame.java
  76. +2 −5 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/Threads.java
  77. +0 −138 ...jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/win32_x86/Win32X86JavaThreadPDAccess.java
  78. +2 −37 src/jdk.hotspot.agent/windows/native/libsaproc/sawindbg.cpp
  79. +0 −7 src/jdk.jdwp.agent/share/native/libjdwp/transport.c
  80. +2 −8 src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp
  81. +2 −2 src/jdk.jpackage/windows/native/applauncher/WinLauncher.cpp
  82. +4 −8 src/jdk.jpackage/windows/native/common/MsiCA.h
  83. +2 −2 src/jdk.jpackage/windows/native/msiwrapper/MsiWrapper.cpp
  84. +2 −2 test/hotspot/jtreg/runtime/jni/nativeStack/libnativeStack.c
  85. +1 −1 test/hotspot/jtreg/vmTestbase/nsk/share/native/native_thread.cpp
3 changes: 3 additions & 0 deletions make/autoconf/basic.m4
Original file line number Diff line number Diff line change
@@ -76,6 +76,9 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
fi
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then
AC_MSG_ERROR([32-bit Windows builds are not supported])
fi
BASIC_SETUP_PATHS_WINDOWS
fi
18 changes: 9 additions & 9 deletions make/autoconf/platform.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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
@@ -666,14 +666,14 @@ AC_DEFUN([PLATFORM_CHECK_DEPRECATION],
[
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$OPENJDK_TARGET_CPU" = xx86; then
if test "x$enable_deprecated_ports" = "xyes"; then
AC_MSG_WARN([The Windows 32-bit x86 port is deprecated and may be removed in a future release.])
else
AC_MSG_ERROR(m4_normalize([The Windows 32-bit x86 port is deprecated and may be removed in a future release.
Use --enable-deprecated-ports=yes to suppress this error.]))
fi
fi
# if test "x$OPENJDK_TARGET_CPU" = xx86; then
# if test "x$enable_deprecated_ports" = "xyes"; then
# AC_MSG_WARN([The x86 port is deprecated and may be removed in a future release.])
# else
# AC_MSG_ERROR(m4_normalize([The 32-bit x86 port is deprecated and may be removed in a future release.
# Use --enable-deprecated-ports=yes to suppress this error.]))
# fi
# fi
])

AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],
32 changes: 7 additions & 25 deletions make/autoconf/toolchain_microsoft.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 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
@@ -82,9 +82,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
fi
AC_MSG_NOTICE([Found Visual Studio installation at $VS_BASE using $METHOD])
if test "x$TARGET_CPU" = xx86; then
VCVARSFILES="vcvars32.bat vcvarsamd64_x86.bat"
elif test "x$TARGET_CPU" = xx86_64; then
if test "x$TARGET_CPU" = xx86_64; then
VCVARSFILES="vcvars64.bat vcvarsx86_amd64.bat"
elif test "x$TARGET_CPU" = xaarch64; then
# for host x86-64, target aarch64
@@ -132,9 +130,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT],
elif test -f "$WIN_SDK_BASE/bin/setenv.cmd"; then
AC_MSG_NOTICE([Found Windows SDK installation at $WIN_SDK_BASE using $METHOD])
VS_ENV_CMD="$WIN_SDK_BASE/bin/setenv.cmd"
if test "x$TARGET_CPU" = xx86; then
VS_ENV_ARGS="/x86"
elif test "x$TARGET_CPU" = xx86_64; then
if test "x$TARGET_CPU" = xx86_64; then
VS_ENV_ARGS="/x64"
elif test "x$TARGET_CPU" = xaarch64; then
VS_ENV_ARGS="/arm64"
@@ -438,9 +434,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_MSVC_DLL],
# Need to check if the found msvcr is correct architecture
AC_MSG_CHECKING([found $DLL_NAME architecture])
MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"`
if test "x$OPENJDK_TARGET_CPU" = xx86; then
CORRECT_MSVCR_ARCH=386
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
CORRECT_MSVCR_ARCH=x86-64
elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
# The cygwin 'file' command only returns "PE32+ executable (DLL) (console), for MS Windows",
@@ -466,9 +460,7 @@ AC_DEFUN([TOOLCHAIN_SETUP_MSVC_DLL],
DLL_HELP="$2"
MSVC_DLL=
if test "x$OPENJDK_TARGET_CPU" = xx86; then
vs_target_cpu=x86
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
vs_target_cpu=x64
elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
vs_target_cpu=arm64
@@ -522,18 +514,8 @@ AC_DEFUN([TOOLCHAIN_SETUP_MSVC_DLL],
# Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now.
# (This was the original behaviour; kept since it might turn something up)
if test "x$VCINSTALLDIR" != x; then
if test "x$OPENJDK_TARGET_CPU" = xx86; then
POSSIBLE_MSVC_DLL=`$FIND "$VCINSTALLDIR" -name $DLL_NAME \
| $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $GREP -v arm64 | $HEAD --lines 1`
if test "x$POSSIBLE_MSVC_DLL" = x; then
# We're grasping at straws now...
POSSIBLE_MSVC_DLL=`$FIND "$VCINSTALLDIR" -name $DLL_NAME \
| $HEAD --lines 1`
fi
else
POSSIBLE_MSVC_DLL=`$FIND "$VCINSTALLDIR" -name $DLL_NAME \
| $GREP x64 | $HEAD --lines 1`
fi
POSSIBLE_MSVC_DLL=`$FIND "$VCINSTALLDIR" -name $DLL_NAME \
| $GREP x64 | $HEAD --lines 1`
TOOLCHAIN_CHECK_POSSIBLE_MSVC_DLL([$DLL_NAME], [$POSSIBLE_MSVC_DLL],
[search of VCINSTALLDIR])
4 changes: 1 addition & 3 deletions make/hotspot/gensrc/GensrcAdlc.gmk
Original file line number Diff line number Diff line change
@@ -109,9 +109,7 @@ ifeq ($(call check-jvm-feature, compiler2), true)
ADLCFLAGS += -DR18_RESERVED
endif
else ifeq ($(call isTargetOs, windows), true)
ifeq ($(call isTargetCpuBits, 64), true)
ADLCFLAGS += -D_WIN64=1
endif
ADLCFLAGS += -D_WIN64=1
ifeq ($(HOTSPOT_TARGET_CPU_ARCH), aarch64)
ADLCFLAGS += -DR18_RESERVED
endif
6 changes: 1 addition & 5 deletions make/modules/java.desktop/lib/AwtLibraries.gmk
Original file line number Diff line number Diff line change
@@ -85,11 +85,7 @@ LIBAWT_EXTRA_HEADER_DIRS := \
LIBAWT_CFLAGS := -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES -DMLIB_NO_LIBSUNMATH

ifeq ($(call isTargetOs, windows), true)
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE
ifeq ($(call isTargetCpuBits, 64), true)
LIBAWT_CFLAGS += -DMLIB_OS64BIT
endif

LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE -DMLIB_OS64BIT
LIBAWT_RCFLAGS ?= -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
LIBAWT_VERSIONINFO_RESOURCE := \
$(TOPDIR)/src/$(MODULE)/windows/native/libawt/windows/awt.rc
85 changes: 33 additions & 52 deletions make/modules/jdk.accessibility/Launcher.gmk
Original file line number Diff line number Diff line change
@@ -48,63 +48,44 @@ ifeq ($(call isTargetOs, windows), true)
TARGETS += $(BUILD_JABSWITCH)

##############################################################################
# Setup rules to create 32/64 bit version of jaccessinspector
#
# Parameter 1 File name suffix
# Parameter 2 ACCESSBRIDGE_ARCH_ -D suffix
# Build jaccessinspector
##############################################################################
define SetupInspector
$$(eval $$(call SetupJdkExecutable, BUILD_JACCESSINSPECTOR$1, \
NAME := jaccessinspector$1, \
SRC := jaccessinspector, \
EXTRA_SRC := \
bridge \
common \
toolscommon, \
EXTRA_HEADER_DIRS := include/bridge, \
CFLAGS := -DACCESSBRIDGE_ARCH_$2 -EHsc, \
CXXFLAGS := -DACCESSBRIDGE_ARCH_$2 -EHsc, \
LDFLAGS_windows := -stack:655360, \
LIBS_windows := advapi32.lib user32.lib, \
VERSIONINFO_RESOURCE := \
$(ACCESSIBILITY_SRCDIR)/jaccessinspector/jaccessinspectorWindow.rc, \
))

TARGETS += $$(BUILD_JACCESSINSPECTOR$1)
endef
$(eval $(call SetupJdkExecutable, BUILD_JACCESSINSPECTOR, \
NAME := jaccessinspector, \
EXTRA_SRC := \
bridge \
common \
toolscommon, \
EXTRA_HEADER_DIRS := include/bridge, \
CFLAGS := -DACCESSBRIDGE_ARCH_64 -EHsc, \
CXXFLAGS := -DACCESSBRIDGE_ARCH_64 -EHsc, \
LDFLAGS_windows := -stack:655360, \
LIBS_windows := advapi32.lib user32.lib, \
VERSIONINFO_RESOURCE := \
$(ACCESSIBILITY_SRCDIR)/jaccessinspector/jaccessinspectorWindow.rc, \
))

TARGETS += $(BUILD_JACCESSINSPECTOR)

##############################################################################
# Setup rules to create 32/64 bit version of jaccesswalker
# Parameter 1 File name suffix
# Parameter 2 ACCESSBRIDGE_ARCH_ -D suffix
# Build jaccesswalker
##############################################################################
define SetupWalker
$$(eval $$(call SetupJdkExecutable, BUILD_JACCESSWALKER$1, \
NAME := jaccesswalker$1, \
SRC := jaccesswalker, \
EXTRA_SRC := \
bridge \
common \
toolscommon, \
EXTRA_HEADER_DIRS := include/bridge, \
CFLAGS := -DACCESSBRIDGE_ARCH_$2 -EHsc, \
CXXFLAGS := -DACCESSBRIDGE_ARCH_$2 -EHsc, \
LDFLAGS_windows := -stack:655360, \
LIBS_windows := advapi32.lib comctl32.lib gdi32.lib user32.lib, \
VERSIONINFO_RESOURCE := \
$(ACCESSIBILITY_SRCDIR)/jaccesswalker/jaccesswalkerWindow.rc, \
))

TARGETS += $$(BUILD_JACCESSWALKER$1)
endef
$(eval $(call SetupJdkExecutable, BUILD_JACCESSWALKER, \
NAME := jaccesswalker, \
EXTRA_SRC := \
bridge \
common \
toolscommon, \
EXTRA_HEADER_DIRS := include/bridge, \
CFLAGS := -DACCESSBRIDGE_ARCH_64 -EHsc, \
CXXFLAGS := -DACCESSBRIDGE_ARCH_64 -EHsc, \
LDFLAGS_windows := -stack:655360, \
LIBS_windows := advapi32.lib comctl32.lib gdi32.lib user32.lib, \
VERSIONINFO_RESOURCE := \
$(ACCESSIBILITY_SRCDIR)/jaccesswalker/jaccesswalkerWindow.rc, \
))

ifeq ($(call isTargetCpuBits, 32), true)
$(eval $(call SetupInspector,-32,32))
$(eval $(call SetupWalker,-32,32))
$(eval $(call SetupInspector,,LEGACY))
$(eval $(call SetupWalker,,LEGACY))
else
$(eval $(call SetupInspector,,64))
$(eval $(call SetupWalker,,64))
endif
TARGETS += $(BUILD_JACCESSWALKER)
endif
112 changes: 39 additions & 73 deletions make/modules/jdk.accessibility/Lib.gmk
Original file line number Diff line number Diff line change
@@ -31,84 +31,50 @@ ifeq ($(call isTargetOs, windows), true)
ACCESSIBILITY_SRCDIR := $(TOPDIR)/src/jdk.accessibility/windows/native

##############################################################################
# Setup rules to create 32/64 bit version of javaaccessbridge
#
# Parameter 1 Suffix
# Parameter 2 ACCESSBRIDGE_ARCH_ suffix
## Build libjavaaccessbridge
##############################################################################
define SetupJavaDLL
$(call SetupJdkLibrary, BUILD_LIBJAVAACCESSBRIDGE$1, \
NAME := javaaccessbridge$1, \
SRC := libjavaaccessbridge, \
EXTRA_SRC := common, \
OPTIMIZATION := LOW, \
DISABLED_WARNINGS_microsoft := 4311 4302 4312, \
CXXFLAGS_FILTER_OUT := -MD, \
CXXFLAGS := -MT -DACCESSBRIDGE_ARCH_$2, \
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$1)
endef
$(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)

##############################################################################
# Setup rules to create 32/64 bit version of windowsaccessbridge
#
# Parameter 1 Suffix
# Parameter 2 ACCESSBRIDGE_ARCH_ suffix
## Build libwindowsaccessbridge
##############################################################################
define SetupWinDLL
$(call SetupJdkLibrary, BUILD_LIBWINDOWSACCESSBRIDGE$1, \
NAME := windowsaccessbridge$1, \
SRC := libwindowsaccessbridge, \
EXTRA_SRC := common, \
OPTIMIZATION := LOW, \
DISABLED_WARNINGS_microsoft_WinAccessBridge.cpp := 4302 4311, \
CXXFLAGS := -DACCESSBRIDGE_ARCH_$2, \
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$1)
endef

ifeq ($(call isTargetCpuBits, 32), true)
############################################################################
# Build libjabsysinfo
############################################################################

$(eval $(call SetupJdkLibrary, BUILD_LIBJABSYSINFO, \
NAME := jabsysinfo, \
OPTIMIZATION := LOW, \
VERSIONINFO_RESOURCE := \
$(ACCESSIBILITY_SRCDIR)/common/AccessBridgeStatusWindow.rc, \
)

TARGETS += $(BUILD_LIBJABSYSINFO)
endif
$(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, \
))

ifeq ($(call isTargetCpuBits, 32), true)
$(eval $(call SetupJavaDLL,-32,32))
$(eval $(call SetupJavaDLL,,LEGACY))
$(eval $(call SetupWinDLL,-32,32))
$(eval $(call SetupWinDLL,,LEGACY))
else
$(eval $(call SetupJavaDLL,,64))
$(eval $(call SetupWinDLL,-64,64))
endif
TARGETS += $(BUILD_LIBWINDOWSACCESSBRIDGE)
endif
Loading