Combine all boot build stuff in a single scons tool
[senf.git] / Utils / Console / SConscript
index 5386352..dfcac7b 100644 (file)
@@ -5,12 +5,10 @@ import SENFSCons
 
 ###########################################################################
 
-sources = SENFSCons.GlobSources(exclude=['testServer.cc'])
-SENFSCons.StandardTargets(env)
-
-SENFSCons.Lib(env,
-             library = 'Console',
-             sources = sources,
-             LIBS = [ 'Socket', 'Scheduler', 'Utils' ])
+sources, tests, includes = SENFSCons.Glob(env, exclude=['testServer.cc'])
 
+env.Append(ALLOBJECTS = env.Object(sources))
+env.BoostUnitTest('test', tests)
 SENFSCons.Doxygen(env)
+env.InstallSubdir('$INCLUDEINSTALLDIR', includes)
+env.Program('testServer', ['testServer.cc'])