summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-05-29 17:50:23 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-05-29 17:50:23 +0200
commit7eef76b9e5b54f36e68c7e267aa62124f6022b70 (patch)
treeea2f70cd243b67ca36da69d6c071da28a5490766 /SConstruct
parente39d44e9dc47bb3f8a77955768e3599ec0ed30be (diff)
Misc fixes for win32 and cross-compiling.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index f140665..487be82 100644
--- a/SConstruct
+++ b/SConstruct
@@ -16,6 +16,7 @@ if GetOption('mingw32'):
env.Append(LIBS = ['CEGUIOpenGLRenderer', 'CEGUIBase', 'CEGUITGAImageCodec', 'CEGUITinyXMLParser', 'CEGUIFalagardWRBase', 'CEGUISILLYImageCodec',
'SDL_image', 'ftgl', 'freetype-s', 'z', 'pcre', 'opengl32', 'glu32', 'winmm', 'mingw32', 'SDLmain', 'SDL', 'jpeg', 'noise',
'lua', 'tolua++_Static', 'boost_filesystem-mt-s', 'boost_system-mt-s'])
+ env.Append(LINKFLAGS = ['-static-libgcc', '-static-libstdc++'])
env['CXX'] = 'i486-mingw32-g++'
else:
env.Append(LIBS = ['GL', 'GLU', 'noise', 'boost_filesystem', 'tolua++', 'lua'])
@@ -36,6 +37,6 @@ Export('env')
env.SConscript('scripting/SConscript')
-env.Program('foo', Glob('*.cpp') + ['noiseutils/noiseutils.cpp'] + Glob('widgets/*.cpp') + Glob('scripting/*.cpp'))
+env.Program('foo.exe' if GetOption('mingw32') else 'foo', Glob('*.cpp') + ['noiseutils/noiseutils.cpp'] + Glob('widgets/*.cpp') + Glob('scripting/*.cpp'))
# vim: syn=python