annotate build/win32-config-dist.py @ 210:be246fb3a0df

Remove mutable from m_deletelisteners Remove const from addDeleteListener Remove const from removeDeleteListener
author icelus@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 16 Mar 2009 01:23:03 +0000
parents 80b3c41c3427
children 5ab78cd39534
rev   line source
89
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
1 import os
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
2 def initEnvironment(env):
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
3 env = env.Copy(tools = ['mingw'])
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
4 return env
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
5
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
6 #Note, if you aren't running from the batch file, you should set an environment variable _ to hold the path to the libraries
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
7
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
8 def addExtras(context):
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
9 path = os.environ['_']
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
10 includepath = path + '\\..\\..\\includes\\mingw'
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
11 staticlibpath = path + '\\..\\..\\static_libs\\mingw'
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
12
197
80b3c41c3427 * Updated win32 build scripts to work with the new compile SDK
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 89
diff changeset
13 context.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 + '\\python25', includepath + '\\unittest++'])
89
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
14 context.env.Append(LIBPATH = [staticlibpath, staticlibpath + '\\python25'])
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
15
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
16 context.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', 'python25'])
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
17
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
18 if context.env['opengl']:
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
19 context.env.Prepend(LIBS = ['libguichan_opengl'])
fa33cda75471 * Reverting back to 2543 as requested by sleek
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
20 context.env.Append(LIBS = ['opengl32', 'glu32'])