annotate build/linux2-config-dist.py @ 251:92c7ce181881

Documentation cross reference fixes.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 27 Mar 2009 11:52:55 +0000
parents 542213eebe73
children 81d623c97e57
rev   line source
175
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
1 import sys
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
2
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
3 def initEnvironment(env):
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
4 return env
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
5
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
6 def addExtras(context):
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
7 context.env.Append(LIBS = 'm')
176
542213eebe73 * To small fixes for the last commit
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 175
diff changeset
8 context.env.Replace(LIBPATH = ['/opt/lib', '%s/ext/install/lib' % context.env['SCONS_ROOT_PATH']])
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
9 context.env.Append(CPPPATH = ['/opt/include',
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
10 '/usr/include/vorbis',
175
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
11 '/usr/include/python%s'% sys.version[:3],
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
12 '/usr/include/SDL',
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
13 '%s/ext/install/include' % context.env['SCONS_ROOT_PATH']])
175
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
14 context.env.Append(CPPPATH = [])
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
15
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
16 context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h')
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
17 context.checkSimpleLib(['openal_soft'], 'AL/al.h')
175
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
18 context.checkSimpleLib(['python%s' % sys.version[:3], 'python2%s'%sys.version[2]], ['Python.h']) # Use current python version
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
19 context.checkSimpleLib(['SDL'], 'SDL.h')
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
20 context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h')
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
21 context.checkSimpleLib(['SDL_image'], 'SDL_image.h')
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
22 context.checkSimpleLib(['guichan'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
23 context.checkSimpleLib(['guichan_sdl'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
24 context.checkSimpleLib(['boost_filesystem', 'boost_filesystem-gcc', 'boost_filesystem-gcc41'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
25 context.checkSimpleLib(['boost_regex', 'boost_regex-gcc', 'boost_regex-gcc41'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
26 context.checkSimpleLib(['png'], 'png.h');
175
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
27
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
28 if context.env['opengl']:
130
b49714fff478 * Workaround for Segfault_in_cxa_allocate_exception: http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
29 # linking explicitly against libstdc++ to work around Segfault_in_cxa_allocate_exception issue: http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception
b49714fff478 * Workaround for Segfault_in_cxa_allocate_exception: http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
30 context.env.Append(LIBS = ['stdc++', 'GL', 'GLU'])
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
31 context.env.Append(LIBPATH = ['/usr/X11R6/lib'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
32 context.checkSimpleLib(['guichan_opengl'])