office-gobmx/sc/CppunitTest_sc_jumbosheets_test.mk
Stephan Bergmann d0b3e5fc81 Fix linking CppunitTest/test_sc_jumbosheets_test on Windows
...where it started to fail for me with

> jumbosheets-test.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl SvRefBase::ReleaseRef(void)" (__imp_?ReleaseRef@SvRefBase@@QEAAXXZ) referenced in function "public: __cdecl tools::SvRef<class ScDocShell>::~SvRef<class ScDocShell>(void)" (??1?$SvRef@VScDocShell@@@tools@@QEAA@XZ)
> workdir\LinkTarget\CppunitTest\test_sc_jumbosheets_test.dll : fatal error LNK1120: 1 unresolved externals

(even though SvRefBase::ReleaseRef is defined inline in include/tools/ref.hxx;
but virtual ~SvRefBase is not, so presumably MSVC expects to find a copy of the
former emitted next to the latter).

Change-Id: I58ae9853cbf69ea58b156ae9ddf8a0a2e1dee090
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103252
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-09-23 16:53:11 +02:00

59 lines
1.4 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,sc_jumbosheets_test))
$(eval $(call gb_CppunitTest_use_externals,sc_jumbosheets_test, \
boost_headers \
mdds_headers \
))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sc_jumbosheets_test))
$(eval $(call gb_CppunitTest_add_exception_objects,sc_jumbosheets_test, \
sc/qa/unit/jumbosheets-test \
))
$(eval $(call gb_CppunitTest_use_libraries,sc_jumbosheets_test, \
basegfx \
comphelper \
cppu \
cppuhelper \
sal \
salhelper \
sax \
sc \
scqahelper \
sfx \
test \
tl \
unotest \
vcl \
))
$(eval $(call gb_CppunitTest_set_include,sc_jumbosheets_test,\
-I$(SRCDIR)/sc/source/ui/inc \
-I$(SRCDIR)/sc/inc \
-I$(SRCDIR)/sc/source/filter/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sc_jumbosheets_test,\
udkapi \
offapi \
))
$(eval $(call gb_CppunitTest_use_ure,sc_jumbosheets_test))
$(eval $(call gb_CppunitTest_use_vcl,sc_jumbosheets_test))
$(eval $(call gb_CppunitTest_use_rdb,sc_jumbosheets_test,services))
$(eval $(call gb_CppunitTest_use_configuration,sc_jumbosheets_test))
# vim: set noet sw=4 ts=4: