From: g0dil Date: Fri, 10 Nov 2006 23:07:11 +0000 (+0000) Subject: add 'exclude' Argument to GlobSources X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=e4ddb7516abe9430223f75ff745dd02fc38961fb;p=senf.git add 'exclude' Argument to GlobSources git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@151 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/satscons/SatSCons.py b/satscons/SatSCons.py index 224591d..783500c 100644 --- a/satscons/SatSCons.py +++ b/satscons/SatSCons.py @@ -94,9 +94,9 @@ def MakeEnvironment(): #return conf.Finish() return env -def GlobSources(): +def GlobSources(exclude=[]): testSources = glob.glob("*.test.cc") - sources = [ x for x in glob.glob("*.cc") if x not in testSources ] + sources = [ x for x in glob.glob("*.cc") if x not in testSources and x not in exclude ] return (sources, testSources) def StandardTargets(env):