Output file naming for sconscript

This commit is contained in:
Simon Robertshaw 2012-07-23 11:49:58 +01:00
parent 8d917a204d
commit 64ebd1117b

View File

@ -178,10 +178,24 @@ sources+=Glob("generated/*.cpp")
SetupSpawn(env)
programName = "powder"
if(GetOption('win32')):
t=env.Program(target='powder.exe', source=sources)
else:
t=env.Program(target='powder', source=sources)
programName = "Powder"
if(GetOption('lin64')):
programName += "64"
if(not (GetOption('sse2') or GetOption('sse3'))):
programName += "-legacy"
if(GetOption('macosx')):
programName += "-x"
if(GetOption('win32')):
programName += ".exe"
t=env.Program(target=programName, source=sources)
Default(t)
#if(GetOption('release')):