Mercurial > fife-parpg
view build/darwin-config-dist.py @ 374:1115f7cae9a3
Editor:
* The editor will now force filenames to be lowercase, as VFS does not like uppercase path names.
* If a map filename does not have a .xml extension on save, it will be automatically added.
* Log modules set to "all" by default. Only new users will be affected by this without having to modify or remove their configuration file.
* Log level set to LOGLEVEL_WARN
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 21 Nov 2009 13:11:56 +0000 |
parents | e25cfb3fe58e |
children |
line wrap: on
line source
import os, sys def initEnvironment(env): env.Append(ENV={'PATH' : os.environ['PATH']}) env.Prepend(CXXFLAGS = '-DUSE_COCOA') return env def addExtras(context): context.env.Append(LIBPATH = ['/System/Library','/opt/local/lib']) context.env.Append(SHLINKFLAGS='-F/opt/local/Library/Frameworks') context.env.Append(SHLINKFLAGS='-framework OpenAL') context.env.Append(SHLINKFLAGS='-framework Cocoa') context.env.Append(SHLINKFLAGS='-framework CoreFoundation') context.env.Append(SHLINKFLAGS='-framework OpenGL') #context.env.Append(SHLINKFLAGS='-lGL') #context.env.Append(SHLINKFLAGS='-lGLU') #context.env.Append(SHLINKFLAGS='-lglut') context.env.Append(SHLINKFLAGS='-framework Python') context.env.Append(SHLINKFLAGS='-lpng') context.env.Append(SHLINKFLAGS='-lSDL') context.env.Append(SHLINKFLAGS='-lSDL_image') context.env.Append(SHLINKFLAGS='-lSDL_ttf') context.env['SHLIBSUFFIX']='.so' include_dirs = ['/opt/local/include', '/usr/local/include', '/usr/X11/include', '/opt/local/include/SDL', '/opt/local/include/guichan', '/opt/local/include/boost', '/System/Library/Frameworks/OpenAL.framework/Headers', '/opt/local/include/vorbis/', '/usr/include/python%s'%sys.version[:3]] context.env.Append(CPPPATH = include_dirs) lib_dirs = ['/opt/local/lib','/usr/local/lib','/usr/X11/lib'] context.env.Append(LIBPATH = lib_dirs) context.env.Append(CPPFLAGS='-D_THREAD_SAFE -F/opt/local/Library/Frameworks') context.CheckHeader('SDL/SDL_image.h') context.CheckHeader('SDL/SDL_ttf.h') context.checkSimpleLib(['objc']) context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h') context.checkSimpleLib(['guichan']) context.checkSimpleLib(['guichan_sdl']) context.checkSimpleLib(['z'], 'zlib.h') context.checkSimpleLib(['boost_filesystem-mt']) context.checkSimpleLib(['boost_system-mt']) context.checkSimpleLib(['boost_regex-mt']) if context.env['opengl']: context.checkSimpleLib(['guichan_opengl'], ['guichan/opengl.hpp'], 'cxx') context.env.Append(SHLINKFLAGS='-framework OpenGL')