diff --git a/satscons/SatSCons.py b/satscons/SatSCons.py index 224591d1d6a95bfed2706ee1172a2fce4ad5e8fb..783500c1f5e4675c3cd77766eb9b749cce6b8b61 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):