diff options
| author | Bryan Hoyle <starfoxprime@gmail.com> | 2012-10-20 17:12:54 (GMT) |
|---|---|---|
| committer | Bryan Hoyle <starfoxprime@gmail.com> | 2012-10-20 17:12:54 (GMT) |
| commit | 271851e32c2bf61ceda37c9ebffbbc2566152c98 (patch) | |
| tree | 7485709fdc556deb8a115df4c8ede1748f84480b /SConscript | |
| parent | 50234517de78853085e58067209e89ffc4061085 (diff) | |
| download | powder-271851e32c2bf61ceda37c9ebffbbc2566152c98.zip powder-271851e32c2bf61ceda37c9ebffbbc2566152c98.tar.gz | |
windows bug fixes, code cleanup
Diffstat (limited to 'SConscript')
| -rw-r--r-- | SConscript | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -1,20 +1,5 @@ import os, sys, subprocess, time -def uniq(seq, idfun=None): - # order preserving - if idfun is None: - def idfun(x): return x - seen = {} - result = [] - for item in seq: - marker = idfun(item) - # in old Python versions: - # if seen.has_key(marker) - # but in new ones: - if marker in seen: continue - seen[marker] = 1 - result.append(item) - return result ##Fix for long command line - http://scons.org/wiki/LongCmdLinesOnWin32 class ourSpawn: @@ -151,6 +136,7 @@ if(GetOption('static')): if(GetOption('win')): openGLLibs = ['opengl32', 'glew32'] env.Prepend(LIBS=['mingw32', 'ws2_32', 'SDLmain', 'regex']) + env.Append(CCFLAGS=['-std=gnu++98']) env.Append(LIBS=['winmm', 'gdi32']) env.Append(CPPDEFINES=["WIN"]) env.Append(LINKFLAGS=['-mwindows']) |
