office-gobmx/sw/CppunitTest_sw_uibase_uiview.mk
Noel Grandin 1a253362f6 speed up startup time
by avoid conversion of static locale data from sal_Unicode to OUString
data - we can declare the data as OUStringConstExpr arrays and then
no conversion is necessary.

Here we trigger a problem - EditDLL has static data that tends
to get torn down __after__ the i18npool shared library has been
removed from memory, which means it tries to access OUStringLiteral
objects that no longer exists.

So use vcl::DeleteOnExit to explicitly clear that on application
shutdown.

Change-Id: Ie4bfcef7eb4656316ea825474ac42f85844d1dcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153060
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-06-15 18:15:18 +02:00

77 lines
2 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,sw_uibase_uiview))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_uibase_uiview))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_uibase_uiview, \
sw/qa/uibase/uiview/uiview \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_uibase_uiview, \
comphelper \
cppu \
cppuhelper \
editeng \
sal \
sfx \
subsequenttest \
svxcore \
sw \
swqahelper \
test \
unotest \
utl \
vcl \
svt \
tl \
svl \
))
$(eval $(call gb_CppunitTest_use_externals,sw_uibase_uiview,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sw_uibase_uiview,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/source/uibase/inc \
-I$(SRCDIR)/sw/qa/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_uibase_uiview,\
udkapi \
offapi \
oovbaapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_uibase_uiview))
$(eval $(call gb_CppunitTest_use_vcl,sw_uibase_uiview))
$(eval $(call gb_CppunitTest_use_rdb,sw_uibase_uiview,services))
$(eval $(call gb_CppunitTest_use_custom_headers,sw_uibase_uiview,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_instdir_configuration,sw_uibase_uiview))
$(eval $(call gb_CppunitTest_use_common_configuration,sw_uibase_uiview))
$(eval $(call gb_CppunitTest_use_uiconfigs,sw_uibase_uiview, \
modules/swriter \
))
$(eval $(call gb_CppunitTest_use_more_fonts,sw_uibase_uiview))
# vim: set noet sw=4 ts=4: