office-gobmx/sal/Executable_cppunittester.mk
Stephan Bergmann 05252f87e0 Use consistent conditions in code and makefile
24b06b9c6b "log access violation on windows
tinderboxen" introduced C++ code into sal/cppunittester/cppunittester.cxx that
is conditional on "#if defined(_DEBUG)" (which is defined iff
$(MSVC_USE_DEBUG_RUNTIME) is TRUE, see the setting of -D_DEBUG in
solenv/gbuild/gbuild.mk), and it introduced this corresponding makefile code
which should thus use the same condition.

Change-Id: I62fca71e31ed9215984572dc6a2e05be41651b15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165080
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-03-21 08:05:03 +01:00

45 lines
997 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_Executable_Executable,cppunittester))
$(eval $(call gb_Executable_set_include,cppunittester,\
$$(INCLUDE) \
-I$(SRCDIR)/sal/inc \
))
$(eval $(call gb_Executable_use_libraries,cppunittester,\
sal \
))
$(eval $(call gb_Executable_use_externals,cppunittester,\
boost_headers \
cppunit \
))
$(eval $(call gb_Executable_add_exception_objects,cppunittester,\
sal/cppunittester/cppunittester \
))
ifneq ($(MSVC_USE_DEBUG_RUNTIME),)
$(eval $(call gb_Executable_use_system_win32_libs,cppunittester,\
dbghelp \
))
endif
ifeq ($(COM),MSC)
$(eval $(call gb_Executable_add_ldflags,cppunittester,\
/STACK:10000000 \
))
endif
# vim: set noet sw=4 ts=4: