annotate build/linux2-config-dist.py @ 357:2cdce58c1109

Fixes the scroll areas in the pychan demo. fixes[t:363]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 25 Sep 2009 19:48:07 +0000
parents 17eba3872550
children
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'])
252
81d623c97e57 Added christoph's patch to add support for newer boost versions
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 176
diff changeset
24 context.checkSimpleLib(['boost_filesystem', 'boost_filesystem-gcc', 'boost_filesystem-gcc41', 'boost_filesystem-mt'])
81d623c97e57 Added christoph's patch to add support for newer boost versions
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 176
diff changeset
25 context.checkSimpleLib(['boost_regex', 'boost_regex-gcc', 'boost_regex-gcc41', 'boost_regex-mt'])
0
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');
262
17eba3872550 Fix for buildscripts, so linux mint will detect Xcursor. Thanks to chewie for patch
cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 255
diff changeset
27 context.checkSimpleLib(['xcursor', 'Xcursor']);
175
ea04dfe54aae * Buildscripts have been modified to work with different python versions.
nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 130
diff changeset
28
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
29 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
30 # 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
31 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
32 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
33 context.checkSimpleLib(['guichan_opengl'])