From: g0dil Date: Thu, 20 Aug 2009 08:27:10 +0000 (+0000) Subject: Remove SENFSCons.StandardTargets and SENFSCons.GlobalTargets X-Git-Url: http://g0dil.de/git?p=senf.git;a=commitdiff_plain;h=8b51cbcf5c5d3056e88e4b9d9939bcd2fab59f45 Remove SENFSCons.StandardTargets and SENFSCons.GlobalTargets git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1307 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/PPI/SConscript b/PPI/SConscript index de2d369..b7ee214 100644 --- a/PPI/SConscript +++ b/PPI/SConscript @@ -10,7 +10,7 @@ SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh") and not f.endswith('.test.hh') ]) sources, includes = SENFSCons.Glob(env, subdirs=[ 'detail' ]) -SENFSCons.StandardTargets(env) + SENFSCons.Lib(env, sources) SENFSCons.Doxygen(env, extra_sources=[ env.Dia2Png('scenario.dia'), diff --git a/Packets/80211Bundle/SConscript b/Packets/80211Bundle/SConscript index 2f25bc2..ac31522 100644 --- a/Packets/80211Bundle/SConscript +++ b/Packets/80211Bundle/SConscript @@ -7,7 +7,6 @@ import SENFSCons, glob sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) SENFSCons.Object(env, target='80211Bundle', sources=sources) SENFSCons.Lib(env, sources=sources[0]) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Packets/80221Bundle/SConscript b/Packets/80221Bundle/SConscript index e8ad448..c065a7b 100644 --- a/Packets/80221Bundle/SConscript +++ b/Packets/80221Bundle/SConscript @@ -7,7 +7,6 @@ import SENFSCons, glob sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) SENFSCons.Object(env, target = '80221Bundle', sources=sources) SENFSCons.Lib(env, sources[0]) diff --git a/Packets/DefaultBundle/SConscript b/Packets/DefaultBundle/SConscript index 1f70312..47b7a11 100644 --- a/Packets/DefaultBundle/SConscript +++ b/Packets/DefaultBundle/SConscript @@ -6,7 +6,7 @@ import SENFSCons, glob ########################################################################### sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) + SENFSCons.Object(env, target='DefaultBundle', sources=sources) SENFSCons.Lib(env, sources[0]) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Packets/MPEGDVBBundle/SConscript b/Packets/MPEGDVBBundle/SConscript index b998615..654bbe5 100644 --- a/Packets/MPEGDVBBundle/SConscript +++ b/Packets/MPEGDVBBundle/SConscript @@ -7,7 +7,6 @@ import SENFSCons, glob sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) SENFSCons.Object(env, target='MPEGDVBBundle', sources=sources) SENFSCons.Lib(env, sources[0]) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Packets/SConscript b/Packets/SConscript index 64482f2..55bf07c 100644 --- a/Packets/SConscript +++ b/Packets/SConscript @@ -7,7 +7,6 @@ import SENFSCons, glob sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) SENFSCons.Lib(env, sources) SENFSCons.Doxygen(env, extra_sources = [ env.Dia2Png("structure.dia"), diff --git a/SConstruct b/SConstruct index cca03b8..df9190b 100644 --- a/SConstruct +++ b/SConstruct @@ -36,12 +36,6 @@ fixlinks Fix broken links in doxygen documentation valgrind Run all tests under valgrind/memcheck """) -# Compile options - -# Options used to debug inlining: -# -# BEWARE: You need lots of ram to compile with these settings (approx 1G) - class BuildTypeOptions: def __init__(self, var): self._var = var @@ -52,7 +46,7 @@ class BuildTypeOptions: env.Append( ENV = { 'PATH' : os.environ.get('PATH') }, - CLEAN_PATTERNS = [ '*~', '#*#', '*.pyc', 'semantic.cache', '.sconsign*' ], + CLEAN_PATTERNS = [ '*~', '#*#', '*.pyc', 'semantic.cache', '.sconsign*', '.sconsign' ], CPPPATH = [ '#/include' ], LOCALLIBDIR = '#', @@ -145,10 +139,9 @@ if os.path.exists('SConscript.local'): SConscript(list(set(glob.glob("*/SConscript")) - set(initSConscripts))) # Define the main targets -SENFSCons.StandardTargets(env) -SENFSCons.GlobalTargets(env) +env.Alias('all', [ 'default', 'all_tests', 'all_docs' ]) -env.Depends( SENFSCons.Doxygen(env), env.Value(env['ENV']['REVISION']) ) +env.Depends(SENFSCons.Doxygen(env), env.Value(env['ENV']['REVISION'])) libsenf = env.Library(env.subst("$LIBSENF$LIBADDSUFFIX"), env['ALLOBJECTS']) env.Default(libsenf) diff --git a/Scheduler/SConscript b/Scheduler/SConscript index fe44ea8..7310390 100644 --- a/Scheduler/SConscript +++ b/Scheduler/SConscript @@ -7,7 +7,6 @@ import SENFSCons sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) SENFSCons.Lib(env, sources) SENFSCons.Doxygen(env) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Socket/Protocols/SConscript b/Socket/Protocols/SConscript index 6e76b25..dee839e 100644 --- a/Socket/Protocols/SConscript +++ b/Socket/Protocols/SConscript @@ -7,8 +7,6 @@ import SENFSCons, glob SConscript(glob.glob("*/SConscript")) -SENFSCons.StandardTargets(env) - sources, includes = SENFSCons.Glob(env) SENFSCons.Lib(env, sources) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Socket/SConscript b/Socket/SConscript index 9b0870f..0e7b440 100644 --- a/Socket/SConscript +++ b/Socket/SConscript @@ -12,7 +12,6 @@ SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh") sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) SENFSCons.Lib(env, sources = sources) SENFSCons.Doxygen(env, extra_sources = [ env.Dia2Png('SocketLibrary-classes.dia'), diff --git a/Utils/Console/SConscript b/Utils/Console/SConscript index c54f55c..026e3c2 100644 --- a/Utils/Console/SConscript +++ b/Utils/Console/SConscript @@ -7,7 +7,6 @@ import SENFSCons sources, includes = SENFSCons.Glob(env, exclude=['testServer.cc']) -SENFSCons.StandardTargets(env) SENFSCons.Lib(env, sources) SENFSCons.Doxygen(env) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Utils/Daemon/SConscript b/Utils/Daemon/SConscript index a3ece3d..1b7e8fe 100644 --- a/Utils/Daemon/SConscript +++ b/Utils/Daemon/SConscript @@ -7,7 +7,6 @@ import SENFSCons, glob sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) SENFSCons.Lib(env, sources) SENFSCons.Doxygen(env) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Utils/Logger/SConscript b/Utils/Logger/SConscript index a25eede..a3803c6 100644 --- a/Utils/Logger/SConscript +++ b/Utils/Logger/SConscript @@ -11,7 +11,6 @@ SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh") sources, includes = SENFSCons.Glob(env) -SENFSCons.StandardTargets(env) SENFSCons.Lib(env, sources) SENFSCons.Doxygen(env) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Utils/SConscript b/Utils/SConscript index e07dec0..a39548a 100644 --- a/Utils/SConscript +++ b/Utils/SConscript @@ -7,7 +7,6 @@ import SENFSCons, glob, os.path sources, includes = SENFSCons.Glob(env, subdirs=[ 'impl' ]) -SENFSCons.StandardTargets(env) SENFSCons.Lib(env, sources) SENFSCons.Doxygen(env) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/Utils/Termlib/SConscript b/Utils/Termlib/SConscript index 7fe6526..ffacf97 100644 --- a/Utils/Termlib/SConscript +++ b/Utils/Termlib/SConscript @@ -7,7 +7,6 @@ import SENFSCons sources, includes = SENFSCons.Glob(env, exclude=[ 'telnetServer.cc']) -SENFSCons.StandardTargets(env) SENFSCons.Lib(env, sources) SENFSCons.Doxygen(env) SENFSCons.InstallIncludeFiles(env, includes) diff --git a/senfscons/SConscript b/senfscons/SConscript index d63adf4..d4cc4aa 100644 --- a/senfscons/SConscript +++ b/senfscons/SConscript @@ -3,5 +3,4 @@ import SENFSCons ########################################################################### -SENFSCons.StandardTargets(env) SENFSCons.Doxygen(env) diff --git a/senfscons/SENFSCons.py b/senfscons/SENFSCons.py index 176b8ea..767c031 100644 --- a/senfscons/SENFSCons.py +++ b/senfscons/SENFSCons.py @@ -78,28 +78,6 @@ def Glob(env, exclude=[], subdirs=[]): return ( GlobSources(env, exclude, subdirs), GlobIncludes(env, exclude, subdirs) ) -## \brief Add generic standard targets for every module -# -# This target helper should be called in the top-level \c SConstruct file -# as well as in every module \c SConscipt file. It adds general -# targets. Right now, these are -# \li clean up \c .sconsign, \c .sconf_temp and \c config.log on -# scons -c all -# -# \ingroup target -def StandardTargets(env): - env.Clean(env.Alias('all'), [ '.sconsign', '.sconf_temp', 'config.log' ]) - -## \brief Add generic global targets -# -# This target helper should be called in the top-level \c SConstruct -# file. It adds general global targets. Right now theese are -# \li Make scons all build all targets. -# -# \ingroup target -def GlobalTargets(env): - env.Alias('all', [ 'default', 'all_tests', 'all_docs' ]) - ## \brief Return path of a built library within $LOCALLIBDIR # \internal def LibPath(lib): return '${LOCALLIBDIR}/${LIBPREFIX}%s${LIBADDSUFFIX}${LIBSUFFIX}' % lib