From 583ddba744248e347a30da4e75f0814c10115da9 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 29 Oct 2012 09:50:05 +0000 Subject: [PATCH] Renderer option for scons --- SConscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SConscript b/SConscript index eb8ce32e9..64862a899 100644 --- a/SConscript +++ b/SConscript @@ -26,6 +26,7 @@ def SetupSpawn( env ): AddOption('--opengl',dest="opengl",action='store_true',default=False,help="Build with OpenGL interface support.") AddOption('--opengl-renderer',dest="opengl-renderer",action='store_true',default=False,help="Build with OpenGL renderer support. (requires --opengl)") +AddOption('--renderer',dest="renderer",action='store_true',default=False,help="Save renderer") AddOption('--win',dest="win",action='store_true',default=False,help="Windows platform target.") AddOption('--lin',dest="lin",action='store_true',default=False,help="Linux platform target") AddOption('--macosx',dest="macosx",action='store_true',default=False,help="Mac OS X platform target") @@ -133,6 +134,9 @@ if GetOption("ptw32-static"): if(GetOption('static')): env.Append(LINKFLAGS=['-static-libgcc']) +if(GetOption('renderer')): + env.Append(CPPDEFINES=['RENDERER']) + if(GetOption('win')): openGLLibs = ['opengl32', 'glew32'] env.Prepend(LIBS=['mingw32', 'ws2_32', 'SDLmain', 'regex'])