Add SConstruct files to Examples
g0dil [Mon, 7 Sep 2009 21:46:03 +0000 (21:46 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1397 270642c3-0616-0410-b53a-bc976706d245

Examples/MCSniffer/SConstruct [new file with mode: 0644]
Examples/MultiMCLoop/SConstruct [new file with mode: 0644]
Examples/RateStuffer/SConstruct [new file with mode: 0644]
Examples/Sniffer/SConstruct [new file with mode: 0644]
Examples/TCPClientServer/SConscript
Examples/TCPClientServer/SConstruct [new file with mode: 0644]
Examples/UDPClientServer/SConscript
Examples/UDPClientServer/SConstruct [new file with mode: 0644]

diff --git a/Examples/MCSniffer/SConstruct b/Examples/MCSniffer/SConstruct
new file mode 100644 (file)
index 0000000..b7aeeed
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- python -*-
+
+import sys
+sys.path.extend(['senf/site_scons', '../../site_scons'])
+import senfutil
+
+env = Environment()
+senfutil.SetupForSENF(env)
+senfutil.DefaultOptions(env)
+
+env.Default( env.Program('mcsniffer', senfutil.Glob(env)[0] + ['$BUNDLEDIR/AllBundles.o']) )
diff --git a/Examples/MultiMCLoop/SConstruct b/Examples/MultiMCLoop/SConstruct
new file mode 100644 (file)
index 0000000..372994b
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- python -*-
+
+import sys
+sys.path.extend(['senf/site_scons', '../../site_scons'])
+import senfutil
+
+env = Environment()
+senfutil.SetupForSENF(env)
+senfutil.DefaultOptions(env)
+
+env.Default( env.Program('multimcloop', ['MultiMCLoop.cc']) )
diff --git a/Examples/RateStuffer/SConstruct b/Examples/RateStuffer/SConstruct
new file mode 100644 (file)
index 0000000..e19b72f
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- python -*-
+
+import sys
+sys.path.extend(['senf/site_scons', '../../site_scons'])
+import senfutil
+
+env = Environment()
+senfutil.SetupForSENF(env)
+senfutil.DefaultOptions(env)
+
+env.Default( env.Program('ratestuffer', senfutil.Glob(env)[0]) )
diff --git a/Examples/Sniffer/SConstruct b/Examples/Sniffer/SConstruct
new file mode 100644 (file)
index 0000000..8751373
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- python -*-
+
+import sys
+sys.path.extend(['senf/site_scons', '../../site_scons'])
+import senfutil
+
+env = Environment()
+senfutil.SetupForSENF(env)
+senfutil.DefaultOptions(env)
+
+env.Default( env.Program('sniffer', senfutil.Glob(env)[0] + ['$BUNDLEDIR/AllBundles.o']) )
index 5214d4d..136a95c 100644 (file)
@@ -1,3 +1,5 @@
+# -*- python -*-
+
 Import('env')
 import SENFSCons
 
diff --git a/Examples/TCPClientServer/SConstruct b/Examples/TCPClientServer/SConstruct
new file mode 100644 (file)
index 0000000..8dfea90
--- /dev/null
@@ -0,0 +1,12 @@
+# -*- python -*-
+
+import sys
+sys.path.extend(['senf/site_scons', '../../site_scons'])
+import senfutil
+
+env = Environment()
+senfutil.SetupForSENF(env)
+senfutil.DefaultOptions(env)
+
+env.Default( env.Program('client', ['client.cc']) )
+env.Default( env.Program('server', ['server.cc']) )
index 039d14a..ca4c4e8 100644 (file)
@@ -1,3 +1,5 @@
+# -*- python -*-
+
 Import('env')
 import SENFSCons
 
diff --git a/Examples/UDPClientServer/SConstruct b/Examples/UDPClientServer/SConstruct
new file mode 100644 (file)
index 0000000..33efa6c
--- /dev/null
@@ -0,0 +1,12 @@
+# -*- python -*-
+
+import sys
+sys.path.extend(['senf/site_scons', '../../site_scons'])
+import senfutil
+
+env = Environment()
+senfutil.SetupForSENF(env)
+senfutil.DefaultOptions(env)
+
+env.Default( env.Program('udpClient', ['udpClient.cc']) )
+env.Default( env.Program('udpServer', ['udpServer.cc']) )