comparison build/win32-config.py @ 378:64738befdf3b

bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 11 Jan 2010 23:34:52 +0000
parents
children 621b062e752d
comparison
equal deleted inserted replaced
377:fe6fb0e0ed23 378:64738befdf3b
1 import os
2 import SCons.Util
3
4 def initEnvironment(env):
5 #a hack to stop passing the -nologo flag to mingw
6 env['CCFLAGS'] = SCons.Util.CLVar('')
7
8 path = os.environ['_']
9 win32_swig_dir = os.environ['_SWIG']
10
11 env.AppendENVPath('PATH', win32_swig_dir)
12
13 includepath = os.path.join(path, '..', '..', 'includes')
14 staticlibpath = os.path.join(path, '..', '..', 'static_libs','mingw')
15
16 env.Append(CPPPATH = [includepath + '\\libogg', includepath + '\\openal', includepath + '\\sdl_image', includepath + '\\zlib', includepath + '\\libguichan', includepath + '\\boost_1_38_0', includepath + '\\libvorbis', includepath + '\\libpng', includepath + '\\sdl_ttf', includepath + '\\sdl', includepath + '\\python26', includepath + '\\unittest++'])
17 env.Append(LIBPATH = [staticlibpath, staticlibpath + '\\python26'])
18
19 env.Tool('swig')
20 env.Tool('mingw')
21
22 return env
23
24
25 def addExtras(env, opengl):
26 env.Append(LIBS = ['libguichan_sdl', 'libguichan', 'mingw32', 'zlib', 'vorbis', 'ogg', 'vorbisfile', 'libpng', 'SDL_image', 'SDLmain', 'SDL.dll', 'OpenAL32', 'SDL_ttf', 'boost_filesystem', 'boost_regex', 'boost_system', 'python26'])
27
28 if opengl:
29 env.Prepend(LIBS = ['libguichan_opengl'])
30 env.Append(LIBS = ['opengl32', 'glu32'])
31
32 return env
33
34
35 def getRequiredHeaders(opengl):
36 return None
37
38 def getRequiredLibs(opengl):
39 return None
40
41 def getOptionalLibs(opengl):
42 return None