Ensure debugging mode is enabled when building tests.
This commit is contained in:
parent
4ae97ddb09
commit
bd384e05d1
34
SConstruct
34
SConstruct
@ -781,23 +781,27 @@ Default(libVmime)
|
|||||||
|
|
||||||
# Tests
|
# Tests
|
||||||
if env['build_tests'] == 'yes':
|
if env['build_tests'] == 'yes':
|
||||||
libUnitpp = env.StaticLibrary(
|
if env['debug'] == 'yes':
|
||||||
target = 'tests/unit++',
|
libUnitpp = env.StaticLibrary(
|
||||||
source = libunitpp_sources
|
target = 'tests/unit++',
|
||||||
)
|
source = libunitpp_sources
|
||||||
|
|
||||||
Default(libUnitpp)
|
|
||||||
|
|
||||||
for test in libvmimetest_sources:
|
|
||||||
Default(
|
|
||||||
env.Program(
|
|
||||||
target = test[0],
|
|
||||||
source = test[1],
|
|
||||||
LIBS=['unit++', packageVersionedGenericName + '-debug'],
|
|
||||||
LIBPATH=['.', './tests/']
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Default(libUnitpp)
|
||||||
|
|
||||||
|
for test in libvmimetest_sources:
|
||||||
|
Default(
|
||||||
|
env.Program(
|
||||||
|
target = test[0],
|
||||||
|
source = test[1],
|
||||||
|
LIBS=['unit++', packageVersionedGenericName + '-debug'],
|
||||||
|
LIBPATH=['.', './tests/']
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
print 'Debug mode must be enabled to build tests!'
|
||||||
|
Exit(1)
|
||||||
|
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Installation rules #
|
# Installation rules #
|
||||||
|
Loading…
Reference in New Issue
Block a user