comparison build/darwin-config-dist.py @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children ea04dfe54aae
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 import os
2
3 def initEnvironment(env):
4 env.Append(ENV={'PATH' : os.environ['PATH']})
5 env.Prepend(CXXFLAGS = '-DUSE_COCOA')
6 return env
7
8 def addExtras(context):
9 context.env.Append(LIBPATH = ['/System/Library'])
10 context.env.Append(SHLINKFLAGS='-framework OpenAL')
11 context.env.Append(SHLINKFLAGS='-framework Cocoa')
12 context.env.Append(SHLINKFLAGS='-framework CoreFoundation')
13 context.env.Append(SHLINKFLAGS='-framework OpenGL')
14 context.env.Append(SHLINKFLAGS='-framework SDL')
15 context.env.Append(SHLINKFLAGS='-framework SDL_image')
16 context.env.Append(SHLINKFLAGS='-framework SDL_ttf')
17 context.env.Append(SHLINKFLAGS='-framework Python')
18 context.env.Append(SHLINKFLAGS='-lpng')
19 context.env['SHLIBSUFFIX']='.so'
20
21 include_dirs = ['/opt/local/include', '/usr/local/include', '/usr/X11/include', '/Library/Frameworks/SDL.framework/Headers',
22 '/Library/Frameworks/SDL_image.framework/Headers', '/Library/Frameworks/SDL_ttf.framework/Headers',
23 '/opt/local/include/boost', '/System/Library/Frameworks/OpenAL.framework/Headers', '/opt/local/include/vorbis/',
24 '/usr/include/python2.5', '/opt/local/include/guichan', 'ext/install/include', '../ext/install/include', '../ext/install/include/guichan']
25 context.env.Append(CPPPATH = include_dirs)
26
27 lib_dirs = ['/opt/local/lib','/usr/local/lib','/usr/X11/lib','ext/install/lib','../ext/install/lib']
28 context.env.Append(LIBPATH = lib_dirs)
29
30 context.env.Append(CPPFLAGS='-D_THREAD_SAFE')
31
32 context.CheckHeader('SDL_image.h')
33 context.CheckHeader('SDL_ttf.h')
34 context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h')
35 context.checkSimpleLib(['guichan'])
36 context.checkSimpleLib(['guichan_sdl'])
37 context.checkSimpleLib(['z'], 'zlib.h')
38 context.checkSimpleLib(['boost_filesystem'], ['boost/filesystem/convenience.hpp'], 'cxx')
39 context.checkSimpleLib(['boost_regex'], ['boost/regex.hpp'], 'cxx')
40
41 if context.env['opengl']:
42 context.checkSimpleLib(['guichan_opengl'], ['guichan/opengl.hpp'], 'cxx')
43 context.env.Append(SHLINKFLAGS='-framework OpenGL')