office-gobmx/sc/CppunitTest_sc_theme_import_export_test.mk
Mike Kaganski 64ecbdd1e5 Fix build
Failing like

  ThemeImportExportTest.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Color const & __cdecl SvxBrushItem::GetColor(void)const " (__imp_?GetColor@SvxBrushItem@@QEBAAEBVColor@@XZ) referenced in function "public: void __cdecl testCellBackgroundThemeColor::TestBody(void)" (?TestBody@testCellBackgroundThemeColor@@QEAAXXZ)
  ThemeImportExportTest.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class model::ComplexColor const & __cdecl SvxBrushItem::getComplexColor(void)const " (__imp_?getComplexColor@SvxBrushItem@@QEBAAEBVComplexColor@model@@XZ) referenced in function "public: void __cdecl testCellBackgroundThemeColor::TestBody(void)" (?TestBody@testCellBackgroundThemeColor@@QEAAXXZ)
  C:\lo\src\build\workdir\LinkTarget\CppunitTest\test_sc_theme_import_export_test.dll : fatal error LNK1120: 2 unresolved externals

Change-Id: I7a64405e3e8bf774163d8f101681c2c0de892767
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153736
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-06-29 12:38:09 +02:00

70 lines
2.1 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_theme_import_export_test))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sc_theme_import_export_test))
$(eval $(call gb_CppunitTest_add_exception_objects,sc_theme_import_export_test, \
sc/qa/unit/ThemeImportExportTest \
))
$(eval $(call gb_CppunitTest_use_externals,sc_theme_import_export_test, \
boost_headers \
mdds_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_use_libraries,sc_theme_import_export_test, \
basegfx \
docmodel \
comphelper \
cppu \
cppuhelper \
editeng \
sal \
salhelper \
sax \
sc \
scqahelper \
sfx \
svl \
subsequenttest \
test \
tl \
unotest \
utl \
vcl \
))
$(eval $(call gb_CppunitTest_set_include,sc_theme_import_export_test,\
-I$(SRCDIR)/sc/source/ui/inc \
-I$(SRCDIR)/sc/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sc_theme_import_export_test,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_sdk_api,sc_theme_import_export_test))
$(eval $(call gb_CppunitTest_use_ure,sc_theme_import_export_test))
$(eval $(call gb_CppunitTest_use_vcl,sc_theme_import_export_test))
$(eval $(call gb_CppunitTest_use_rdb,sc_theme_import_export_test,services))
$(eval $(call gb_CppunitTest_use_components,sc_theme_import_export_test))
$(eval $(call gb_CppunitTest_use_configuration,sc_theme_import_export_test))
$(eval $(call gb_CppunitTest_add_arguments,sc_theme_import_export_test, \
-env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
))
# vim: set noet sw=4 ts=4: