From 87a6267e1087c289a722e024cf88c0ad28465614 Mon Sep 17 00:00:00 2001 From: g0dil <g0dil@wiback.org> Date: Fri, 10 Nov 2006 23:07:11 +0000 Subject: [PATCH] add 'exclude' Argument to GlobSources --- satscons/SatSCons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/satscons/SatSCons.py b/satscons/SatSCons.py index 224591d1d..783500c1f 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): -- GitLab