office-gobmx/testtools/Module_testtools.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

44 lines
1,011 B
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_Module_Module,testtools))
ifeq ($(CROSS_COMPILING),)
$(eval $(call gb_Module_add_targets,testtools,\
CustomTarget_bridgetest \
InternalUnoApi_bridgetest \
InternalUnoApi_performance \
Library_cppobj \
Library_bridgetest \
Library_bridgetest-common \
Library_constructors \
Rdb_uno_services \
))
ifneq ($(ENABLE_JAVA),)
$(eval $(call gb_Module_add_targets,testtools,\
Jar_testComponent \
CustomTarget_bridgetest_javamaker \
))
endif
ifeq ($(COM),MSC)
$(eval $(call gb_Module_add_targets,testtools,\
CustomTarget_bridgetest_climaker \
))
endif
$(eval $(call gb_Module_add_check_targets,testtools,\
CustomTarget_uno_test \
))
endif
# vim:set noet sw=4 ts=4: