Files
odfstudio/extensions/CppunitTest_extensions_test_update.mk
Mike Kaganski 36b7b67668 Fix CppunitTest_extensions_test_update build
[LNK] CppunitTest/test_extensions_test_update.dll
updatehdl.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vcl::Window * __cdecl VCLUnoHelper::GetWindow(class com::sun::star::uno::Reference<class com::sun::star::awt::XWindowPeer> const &)" (__imp_?GetWindow@VCLUnoHelper@@SAPEAVWindow@vcl@@AEBV?$Reference@VXWindowPeer@awt@star@sun@com@@@uno@star@sun@com@@@Z) referenced in function "private: class vcl::Window * __cdecl UpdateHandler::getWindow(class rtl::OUString const &)" (?getWindow@UpdateHandler@@AEAAPEAVWindow@vcl@@AEBVOUString@rtl@@@Z)
C:\lo\build\workdir\LinkTarget\CppunitTest\test_extensions_test_update.dll : fatal error LNK1120: 1 unresolved external

After commit 04b5cdcca0 (tdf#104833
update check: Start using vcl::Window more directly, 2025-09-17),
Library_updchk depends on tk. The unit test uses object files of
the library.

Change-Id: I971357f47eabc4b5df51760e7215280d6e03994b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191117
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-09-18 17:33:06 +02:00

68 lines
1.7 KiB
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_CppunitTest_CppunitTest,extensions_test_update))
$(eval $(call gb_CppunitTest_add_exception_objects,extensions_test_update, \
extensions/qa/update/test_update \
))
$(eval $(call gb_CppunitTest_use_external,extensions_test_update,boost_headers))
$(eval $(call gb_CppunitTest_use_libraries,extensions_test_update, \
comphelper \
cppu \
cppuhelper \
sal \
salhelper \
test \
tk \
utl \
unotest \
vcl \
))
$(eval $(call gb_CppunitTest_use_library_objects,extensions_test_update, \
updchk \
))
ifeq ($(OS),WNT)
$(eval $(call gb_CppunitTest_use_system_win32_libs,extensions_test_update,\
shell32 \
ole32 \
wininet \
))
endif
$(eval $(call gb_CppunitTest_use_external,extensions_test_update,curl))
$(eval $(call gb_CppunitTest_set_include,extensions_test_update,\
$$(INCLUDE) \
-I$(SRCDIR)/extensions/inc \
))
$(eval $(call gb_CppunitTest_use_sdk_api,extensions_test_update))
$(eval $(call gb_CppunitTest_use_ure,extensions_test_update))
$(eval $(call gb_CppunitTest_use_vcl,extensions_test_update))
$(eval $(call gb_CppunitTest_use_components,extensions_test_update,\
configmgr/source/configmgr \
extensions/source/update/feed/updatefeed \
ucb/source/core/ucb1 \
ucb/source/ucp/file/ucpfile1 \
unoxml/source/service/unoxml \
))
$(eval $(call gb_CppunitTest_use_configuration,extensions_test_update))
# vim:set shiftwidth=4 softtabstop=4 noexpandtab: