- removed redundant code
This commit is contained in:
@@ -361,15 +361,6 @@ class BlenderEnvironment(SConsEnvironment):
|
|||||||
lenv['BINARYKIND'] = binarykind
|
lenv['BINARYKIND'] = binarykind
|
||||||
lenv.AddPostAction(prog,Action(AppIt,strfunction=my_appit_print))
|
lenv.AddPostAction(prog,Action(AppIt,strfunction=my_appit_print))
|
||||||
|
|
||||||
## TODO: have register for libs/programs, so that we test only that
|
|
||||||
# which have expressed their need to be tested in their own sconscript
|
|
||||||
def BlenderUnitTest(env, source, **kwargs):
|
|
||||||
test = env.Program(source, **kwargs)
|
|
||||||
env.AddPostAction(test, test[0].abspath)
|
|
||||||
env.Alias('check', test)
|
|
||||||
env.AlwaysBuild(test)
|
|
||||||
return test
|
|
||||||
|
|
||||||
def Glob(lenv, pattern):
|
def Glob(lenv, pattern):
|
||||||
path = string.replace(GetBuildPath(lenv,'SConscript'),'SConscript', '')
|
path = string.replace(GetBuildPath(lenv,'SConscript'),'SConscript', '')
|
||||||
files = []
|
files = []
|
||||||
|
Reference in New Issue
Block a user