Skip to content
Snippets Groups Projects
Commit aa060ff4 authored by g0dil's avatar g0dil
Browse files

Simplify ALlIncludesHH usage

Fix python imports in SConscripts
parent 6109a56f
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,7 @@ import SENFSCons, glob
SConscript(glob.glob("*/SConscript"))
SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
if f not in ('all_includes.hh','PPI.hh') \
and not f.endswith('.test.hh') ])
SENFSCons.AllIncludesHH(env, exclude = ['PPI.hh'])
sources, tests, includes = SENFSCons.Glob(env, subdirs=[ 'detail' ])
......
# -*- python -*-
import sys, glob, os.path, datetime, pwd, time, fnmatch, string
import sys, glob, os.path, fnmatch
sys.path.append(Dir('#/senfscons').abspath)
sys.path.append(Dir('#/doclib').abspath)
import SENFSCons, senfutil
......@@ -172,7 +172,7 @@ env.PhonyTarget('valgrind', [ 'all_tests' ], [ """
#### clean
env.Clean('all', '.prepare-stamp')
env.Clean('all', libsenf)
env.Clean('all', 'linklint')
env.Clean('all', env.Dir('linklint')) # env.Dir to disambiguate from linklint PhonyTarget
if env.GetOption('clean'):
env.Clean('all', [ os.path.join(path,f)
......
......@@ -7,8 +7,7 @@ import SENFSCons, glob
SConscript(glob.glob("*/SConscript"))
SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
if f not in ('all_includes.hh','DVB.hh') and not f.endswith('.test.hh') ])
SENFSCons.AllIncludesHH(env, exclude=['DVB.hh'])
sources, tests, includes = SENFSCons.Glob(env)
......
......@@ -7,8 +7,7 @@ import SENFSCons, glob
SConscript(glob.glob("*/SConscript"))
SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
if f not in ('all_includes.hh','INet.hh') and not f.endswith('.test.hh') ])
SENFSCons.AllIncludesHH(env, exclude=['INet.hh'])
sources, tests, includes = SENFSCons.Glob(env)
......
......@@ -7,8 +7,7 @@ import SENFSCons, glob
SConscript(glob.glob("*/SConscript"))
SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
if f not in ('all_includes.hh','Raw.hh') and not f.endswith('.test.hh') ])
SENFSCons.AllIncludesHH(env, exclude=['Raw.hh'])
sources, tests, includes = SENFSCons.Glob(env)
......
......@@ -7,8 +7,7 @@ import SENFSCons, glob
SConscript(glob.glob("*/SConscript"))
SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
if f not in ('all_includes.hh','UN.hh') and not f.endswith('.test.hh') ])
SENFSCons.AllIncludesHH(env, exclude=['UN.hh'])
sources, tests, includes = SENFSCons.Glob(env)
......
......@@ -7,8 +7,7 @@ import SENFSCons, glob
SConscript(glob.glob("*/SConscript"))
SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
if f not in ('all_includes.hh','Socket.hh') and not f.endswith('.test.hh') ])
SENFSCons.AllIncludesHH(env, exclude=['Socket.hh'])
sources, tests, includes = SENFSCons.Glob(env)
......
......@@ -5,9 +5,7 @@ import SENFSCons, glob
###########################################################################
SENFSCons.AllIncludesHH(env, [ f for f in glob.glob("*.hh")
if ( f not in ('all_includes.hh','Logger.hh','SenfLog.hh')
and not f.endswith('.test.hh') ) ])
SENFSCons.AllIncludesHH(env, exclude=['Logger.hh','SenfLog.hh'])
sources, tests, includes = SENFSCons.Glob(env)
......
......@@ -11,4 +11,4 @@ env.Append(ALLOBJECTS = env.Object(sources))
env.BoostUnitTest('test', tests)
SENFSCons.Doxygen(env)
env.InstallSubdir('$INCLUDEINSTALLDIR', includes)
env.Program('telnetSserver', ['telnetServer.cc'])
env.Program('telnetServer', ['telnetServer.cc'])
# -*- python -*-
Import('env')
import SENFSCons, os
import SENFSCons, os, os.path, pwd, time, string
###########################################################################
......
......@@ -79,7 +79,10 @@ def Doxygen(env, doxyfile = "Doxyfile", extra_sources = []):
return doc
def AllIncludesHH(env, headers):
def AllIncludesHH(env, exclude=[]):
exclude = exclude[:] + ['all_includes.hh'] # Make a copy !!
headers = [ f for f in glob.glob("*.hh")
if f not in exclude and not f.endswith('.test.hh') ]
headers.sort()
target = env.File("all_includes.hh")
file(target.abspath,"w").write("".join([ '#include "%s"\n' % f
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment