From: g0dil Date: Mon, 7 Sep 2009 21:46:03 +0000 (+0000) Subject: Add SConstruct files to Examples X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=7f343c7361e8eb31951669a70434ab04d39bb268;p=senf.git Add SConstruct files to Examples git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1397 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Examples/MCSniffer/SConstruct b/Examples/MCSniffer/SConstruct new file mode 100644 index 0000000..b7aeeed --- /dev/null +++ b/Examples/MCSniffer/SConstruct @@ -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 index 0000000..372994b --- /dev/null +++ b/Examples/MultiMCLoop/SConstruct @@ -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 index 0000000..e19b72f --- /dev/null +++ b/Examples/RateStuffer/SConstruct @@ -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 index 0000000..8751373 --- /dev/null +++ b/Examples/Sniffer/SConstruct @@ -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']) ) diff --git a/Examples/TCPClientServer/SConscript b/Examples/TCPClientServer/SConscript index 5214d4d..136a95c 100644 --- a/Examples/TCPClientServer/SConscript +++ b/Examples/TCPClientServer/SConscript @@ -1,3 +1,5 @@ +# -*- python -*- + Import('env') import SENFSCons diff --git a/Examples/TCPClientServer/SConstruct b/Examples/TCPClientServer/SConstruct new file mode 100644 index 0000000..8dfea90 --- /dev/null +++ b/Examples/TCPClientServer/SConstruct @@ -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']) ) diff --git a/Examples/UDPClientServer/SConscript b/Examples/UDPClientServer/SConscript index 039d14a..ca4c4e8 100644 --- a/Examples/UDPClientServer/SConscript +++ b/Examples/UDPClientServer/SConscript @@ -1,3 +1,5 @@ +# -*- python -*- + Import('env') import SENFSCons diff --git a/Examples/UDPClientServer/SConstruct b/Examples/UDPClientServer/SConstruct new file mode 100644 index 0000000..33efa6c --- /dev/null +++ b/Examples/UDPClientServer/SConstruct @@ -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']) )