office-gobmx/testtools/Library_cppobj.mk
Stephan Bergmann 16bbeb5713 Change the shared bridgetest code from static to dynamic library
...so ASan builds do not complain about ODR violations due to multiple instances
of vtable for testtools::bridgetest::CurrentContextChecker after
a53808c0ed "loplugin:dllprivate" removed the
SAL_DLLPRIVATE from class CurrentContextChecker (which apparently /did/ have an
impact with -fvisibility-ms-compat, as used by Linux Clang ASan/UBSan builds).

Change-Id: Ifb1ba1819f7ea989300f4696d44f9599a1436563
2016-09-14 15:52:04 +02:00

40 lines
1.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_Library_Library,testtools_cppobj))
$(eval $(call gb_Library_set_componentfile,testtools_cppobj,testtools/source/bridgetest/cppobj))
$(eval $(call gb_Executable_set_include,testtools_cppobj,\
-I$(SRCDIR)/testtools/source/bridgetest \
$$(INCLUDE) \
))
$(eval $(call gb_Library_use_internal_api,testtools_cppobj,\
bridgetest \
))
$(eval $(call gb_Library_use_api,testtools_cppobj,\
udkapi \
))
$(eval $(call gb_Library_use_external,testtools_cppobj,boost_headers))
$(eval $(call gb_Library_use_libraries,testtools_cppobj,\
cppu \
cppuhelper \
sal \
testtools_bridgetest-common \
))
$(eval $(call gb_Library_add_exception_objects,testtools_cppobj,\
testtools/source/bridgetest/cppobj \
))
# vim:set noet sw=4 ts=4: