office-gobmx/stoc/Library_javavm.mk
Patrick Luby fc69d6b227 tdf#101376 don't detach thread if it is the main thread on macOS
On macOS, many AWT classes do their work on the main thread
deep in native methods in the java.awt.* classes. The problem
is that Oracle's and OpenJDK's JVMs don't bracket their
"perform on main thread" native calls with "attach/detach
current thread" calls to the JVM.

Change-Id: I0859dc9e20f34bd0b43bb321898507764fd530fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157985
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
2023-10-15 15:33:09 +02:00

40 lines
1,016 B
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Library_Library,javavm))
$(eval $(call gb_Library_use_external,javavm,boost_headers))
$(eval $(call gb_Library_use_udk_api,javavm))
$(eval $(call gb_Library_use_libraries,javavm,\
cppu \
cppuhelper \
i18nlangtag \
jvmaccess \
jvmfwk \
sal \
salhelper \
))
$(eval $(call gb_Library_set_componentfile,javavm,stoc/source/javavm/javavm,ure/services))
$(eval $(call gb_Library_add_exception_objects,javavm,\
stoc/source/javavm/interact \
stoc/source/javavm/javavm \
stoc/source/javavm/jvmargs \
))
ifeq ($(OS),MACOSX)
$(eval $(call gb_Library_use_system_darwin_frameworks,javavm,\
CoreFoundation \
))
endif
# vim:set noet sw=4 ts=4: