summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-10-29 09:50:05 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-10-29 09:50:05 (GMT)
commit583ddba744248e347a30da4e75f0814c10115da9 (patch)
treee24016c9099899fd05af449ff29a832eb71b1054 /SConscript
parent48be91e4df50ecb5cc52e21556dce0df8474666e (diff)
downloadpowder-583ddba744248e347a30da4e75f0814c10115da9.zip
powder-583ddba744248e347a30da4e75f0814c10115da9.tar.gz
Renderer option for scons
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConscript b/SConscript
index eb8ce32..64862a8 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'])