X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=satscons%2FSatSCons.py;h=783500c1f5e4675c3cd77766eb9b749cce6b8b61;hb=b2d64a4084a053f0887c7845bb81074e0cd3a855;hp=2d415983e4582fb0241dec7676c3ec1303052e8a;hpb=a667cc8cfcfd254b7a9cc8a43f7c6aa1dcc7ed69;p=senf.git diff --git a/satscons/SatSCons.py b/satscons/SatSCons.py index 2d41598..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): @@ -139,14 +139,15 @@ def Objects(env, sources, testSources = None, LIBS = []): return objects -def Doxygen(env, sources, testSources = None): +def Doxygen(env, sources, testSources = None, target='doc', image = []): if type(sources) == type(()): testSources = sources[1] sources = sources[0] doc = env.Doxygen( - target = 'doc', - source = sources ) + target = target, + source = sources, + image = image) env.Alias('all_docs', doc) return doc