k776
By: a guest | Oct 18th, 2008 | Syntax:
None | Size: 1.05 KB | Hits: 93 | Expires: Never
diff -r df8f70a1c1cd SConstruct
--- a/SConstruct Thu Oct 16 04:45:25 2008 -0400
+++ b/SConstruct Sat Oct 18 22:39:14 2008 +1300
-224,12 +224,12 @@
env.Append(LINKFLAGS='-pg')
env.Append(CXXFLAGS=' -O2')
env.Append(LINKFLAGS='-O2')
- if env['mingw'] or isWindowsPlatform:
- #These four options must be present before the object files when compiling in mingw
- env.Append(LINKFLAGS="-lmingw32 -lSDLmain -lSDL -mwindows")
- env.Append(LIBS=['wsock32', 'winmm'])
- env.ParseConfig("sh sdl-config --cflags")
- env.ParseConfig("sh sdl-config --libs")
+ if env['mingw'] or isWindowsPlatform:
+ env.Append(LIBPATH=['/usr/local/lib'])
+ env.Append(LIBS=['wsock32', 'winmm', 'mingw32', 'SDLmain', 'SDL'])
+ env.Append(LINKFLAGS=['-mwindows'])
+ env.Append(CPPPATH=['/usr/local/include/SDL'])
+ env.Append(CPPDEFINES=['-D_GNU_SOURCE=1', '-Dmain=SDL_main'])
else:
env.ParseConfig("sdl-config --cflags")
env.ParseConfig("sdl-config --libs")