Mercurial > fife-parpg
view build/linux2-config-dist.py @ 146:54b3984e1afc
The getIndex function was a hack that shadowed another bug
that caused the pools to misbehave.
AddResourceFromFile works now exactly as getIndex,
it's just faster.
Fixed GUIImage to not hold a reference, it uses the
index directly anyway.
Plus heaps of minor adjustments for
more informative debug output and statistics.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 09 Oct 2008 12:36:21 +0000 |
parents | b49714fff478 |
children | ea04dfe54aae |
line wrap: on
line source
def initEnvironment(env): return env def addExtras(context): context.env.Append(LIBS = 'm') context.env.Replace(LIBPATH = ['/opt/lib', '%s/ext/install/lib' % context.env['SCONS_ROOT_PATH']]) context.env.Append(CPPPATH = ['/opt/include', '/usr/include/vorbis', '/usr/include/python2.5', '%s/ext/install/include' % context.env['SCONS_ROOT_PATH']]) context.env.Append(CPPPATH = []) context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h') context.checkSimpleLib(['openal_soft'], 'AL/al.h') context.checkSimpleLib(['python', 'python2.5'], ['python2.5/Python.h']) context.checkSimpleLib(['SDL'], 'SDL.h') context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h') context.checkSimpleLib(['SDL_image'], 'SDL_image.h') context.checkSimpleLib(['guichan']) context.checkSimpleLib(['guichan_sdl']) context.checkSimpleLib(['boost_filesystem', 'boost_filesystem-gcc', 'boost_filesystem-gcc41']) context.checkSimpleLib(['boost_regex', 'boost_regex-gcc', 'boost_regex-gcc41']) context.checkSimpleLib(['png'], 'png.h'); if context.env['opengl']: # linking explicitly against libstdc++ to work around Segfault_in_cxa_allocate_exception issue: http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception context.env.Append(LIBS = ['stdc++', 'GL', 'GLU']) context.env.Append(LIBPATH = ['/usr/X11R6/lib']) context.checkSimpleLib(['guichan_opengl'])