From 68cfd5411eac15d250253daa8f617fb01c69a5a4 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 3 Jun 2011 16:18:18 -0700 Subject: [PATCH] win32 build system cleanup --- src/tests/SConscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tests/SConscript b/src/tests/SConscript index 04e2315e..011c9620 100644 --- a/src/tests/SConscript +++ b/src/tests/SConscript @@ -1,9 +1,12 @@ -Import('env', 'plugins', 'glob', 'os') +Import('env', 'plugins', 'glob', 'os', 'SCons') testEnv = env.Clone() testEnv.Append(CPPDEFINES = [['MTS_TESTCASE', '1']]) for plugin in glob.glob(GetBuildPath('test_*.cpp')): name = os.path.basename(plugin) - plugins += [testEnv.SharedLibrary(name[0:len(name)-4], name)] + lib = testEnv.SharedLibrary(name[0:len(name)-4], name) + if isinstance(lib, SCons.Node.NodeList): + lib = lib[0] + plugins += [ lib ] Export('plugins')