Restructure SENFSCons.Object helper
[senf.git] / Packets / DefaultBundle / SConscript
index f096a68..bfafdac 100644 (file)
@@ -5,10 +5,12 @@ import SENFSCons, glob
 
 ###########################################################################
 
-sources = SENFSCons.GlobSources()
+(sources, tests), includes = SENFSCons.Glob(env)
 
-SENFSCons.StandardTargets(env)
+SENFSCons.Object(env, target='DefaultBundle', sources=sources, 
+                 testSources=tests + [ 'DefaultBundle.o' ])
+SENFSCons.Lib(env, sources)
 
-SENFSCons.Object(env, target = 'DefaultBundle', sources=sources,
-                 LIBS = ['Packets', 'Socket', 'Utils'])
-                 
+env.InstallSubdir(target = '$INCLUDEINSTALLDIR', source = includes)
+
+SConscript(glob.glob("*/SConscript"))