mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
Renderer option for scons
This commit is contained in:
@@ -26,6 +26,7 @@ def SetupSpawn( env ):
|
|||||||
|
|
||||||
AddOption('--opengl',dest="opengl",action='store_true',default=False,help="Build with OpenGL interface support.")
|
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('--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('--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('--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")
|
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')):
|
if(GetOption('static')):
|
||||||
env.Append(LINKFLAGS=['-static-libgcc'])
|
env.Append(LINKFLAGS=['-static-libgcc'])
|
||||||
|
|
||||||
|
if(GetOption('renderer')):
|
||||||
|
env.Append(CPPDEFINES=['RENDERER'])
|
||||||
|
|
||||||
if(GetOption('win')):
|
if(GetOption('win')):
|
||||||
openGLLibs = ['opengl32', 'glew32']
|
openGLLibs = ['opengl32', 'glew32']
|
||||||
env.Prepend(LIBS=['mingw32', 'ws2_32', 'SDLmain', 'regex'])
|
env.Prepend(LIBS=['mingw32', 'ws2_32', 'SDLmain', 'regex'])
|
||||||
|
Reference in New Issue
Block a user