From 64ebd1117b2adfb117c3974ee73ddbe3df0b6c02 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 23 Jul 2012 11:49:58 +0100 Subject: [PATCH] Output file naming for sconscript --- SConscript | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/SConscript b/SConscript index 642513d38..6ab06b6b7 100644 --- a/SConscript +++ b/SConscript @@ -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')):