X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2FBoostUnitTest.py;fp=senfscons%2FBoostUnitTest.py;h=0000000000000000000000000000000000000000;hb=6b43243d9b1a3b9720efdacc6f02364877ebe2aa;hp=2984fbe4bfa5675a82ae2667586c18cbef529504;hpb=2c5ee014ddfed45406e238029600346c99870229;p=senf.git
diff --git a/senfscons/BoostUnitTest.py b/senfscons/BoostUnitTest.py
deleted file mode 100644
index 2984fbe..0000000
--- a/senfscons/BoostUnitTest.py
+++ /dev/null
@@ -1,66 +0,0 @@
-## \file
-# \brief BoostUnitTests build
-
-## \package senfscons.BoostUnitTests
-# \brief Builder utilizing the Boost.Test unit-test framework
-#
-# The BoostUnitTests builder will build a unit-test executable using
-# the Boost.Test
-# library. After building, the unit-test will be executed.
-#
-# This builder is used by the SENFSCons.Object() helper to build the
-# unit test.
-#
-# \par Construction Envrionment Variables:
-#
-# \c BOOSTTESTLIB | Name of the library to use, defaults to \c boost_unit_test_framework |
-# \c BOOSTTESTARGS | Command line arguments of the test, defaults to --build_info=yes --log_level=test_suite |
-#
-#
-# \todo This is not really a builder. This should be rewritten as one
-# \ingroup builder
-
-import SCons.Script.SConscript
-import SCons.Defaults
-import os.path
-import os
-
-# ARGH ... Why do they put a '+' in the module name ????????
-SCons.Tool.cplusplus=getattr(__import__('SCons.Tool.c++', globals(), locals(), []).Tool, 'c++')
-
-def BoostUnitTest(env, target=None, source=None, **kw):
- target = env.arg2nodes(target)[0]
- source = env.arg2nodes(source)
-
- binnode = target.dir.File('.' + target.name + '.bin')
- stampnode = target.dir.File('.' + target.name + '.stamp')
-
- bin = env.Program(binnode, source,
- LIBS = env['LIBS'] + [ '$TEST_EXTRA_LIBS' ],
- _LIBFLAGS = ' -Wl,-Bstatic -l$BOOSTTESTLIB -Wl,-Bdynamic ' + env['_LIBFLAGS'],
- **kw)
-
- stamp = env.Command(stampnode, bin,
- [ '$SOURCE $BOOSTTESTARGS',
- 'touch $TARGET' ],
- **kw)
-
- alias = env.Command(env.File(target), stamp, [ 'true' ])
-
- compileTests = [ src for src in source
- if src.suffix in SCons.Tool.cplusplus.CXXSuffixes \
- and src.exists() \
- and 'COMPILE_CHECK' in file(str(src)).read() ]
- if compileTests:
- env.Depends(alias, env.CompileCheck(source = compileTests))
-
- return alias
-
-def generate(env):
- env['BOOSTTESTLIB'] = 'boost_unit_test_framework'
- env['BOOSTTESTARGS'] = [ '--build_info=yes', '--log_level=test_suite' ]
- env['BUILDERS']['BoostUnitTest'] = BoostUnitTest
-
-def exists(env):
- return 1