aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-01-28 18:00:50 +0000
committerVincent Richard <[email protected]>2005-01-28 18:00:50 +0000
commitbd384e05d1ba53c2d0c77841455d6d63ddc23b5d (patch)
tree681228ca707c852909b5551b24f292361796d5ca
parentSplitted 'contentHandler' into three classes: 'emptyContentHandler', 'stringC... (diff)
downloadvmime-bd384e05d1ba53c2d0c77841455d6d63ddc23b5d.tar.gz
vmime-bd384e05d1ba53c2d0c77841455d6d63ddc23b5d.zip
Ensure debugging mode is enabled when building tests.
-rw-r--r--SConstruct30
1 files changed, 17 insertions, 13 deletions
diff --git a/SConstruct b/SConstruct
index c1ce20ef..ebe67885 100644
--- a/SConstruct
+++ b/SConstruct
@@ -781,22 +781,26 @@ Default(libVmime)
# Tests
if env['build_tests'] == 'yes':
- libUnitpp = env.StaticLibrary(
- target = 'tests/unit++',
- source = libunitpp_sources
- )
+ if env['debug'] == 'yes':
+ libUnitpp = env.StaticLibrary(
+ target = 'tests/unit++',
+ source = libunitpp_sources
+ )
- Default(libUnitpp)
+ Default(libUnitpp)
- for test in libvmimetest_sources:
- Default(
- env.Program(
- target = test[0],
- source = test[1],
- LIBS=['unit++', packageVersionedGenericName + '-debug'],
- LIBPATH=['.', './tests/']
+ 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)
########################