Combine all boot build stuff in a single scons tool
[senf.git] / Utils / Termlib / SConscript
index 5f77839..9ec4988 100644 (file)
@@ -5,11 +5,10 @@ import SENFSCons
 
 ###########################################################################
 
-sources, includes = SENFSCons.Glob(env, exclude=[ 'telnetServer.cc'])
+sources, tests, includes = SENFSCons.Glob(env, exclude=[ 'telnetServer.cc'])
 
-SENFSCons.Lib(env, sources)
+env.Append(ALLOBJECTS = env.Object(sources))
+env.BoostUnitTest('test', tests)
 SENFSCons.Doxygen(env)
-
-env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = includes)
-
-SENFSCons.Binary(env, "telnetServer", ['telnetServer.cc'])
+env.InstallSubdir('$INCLUDEINSTALLDIR', includes)
+env.Program('telnetSserver', ['telnetServer.cc'])