Mercurial > fife-parpg
comparison build/darwin-config.py @ 378:64738befdf3b
bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
author | vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 11 Jan 2010 23:34:52 +0000 |
parents | |
children | 2a1259ce2b95 |
comparison
equal
deleted
inserted
replaced
377:fe6fb0e0ed23 | 378:64738befdf3b |
---|---|
1 import os,sys | |
2 from distutils.sysconfig import get_python_inc | |
3 | |
4 def initEnvironment(env): | |
5 | |
6 | |
7 include_dirs = ['/opt/local/include', | |
8 '/usr/local/include', | |
9 '/usr/X11/include', | |
10 '/opt/local/include/SDL', | |
11 '/opt/local/include/guichan', | |
12 '/opt/local/include/boost', | |
13 '/System/Library/Frameworks/OpenAL.framework/Headers', | |
14 '/opt/local/include/vorbis/', | |
15 get_python_inc()] | |
16 | |
17 lib_dirs = ['/System/Library', '/opt/local/lib', '/usr/X11/lib'] | |
18 | |
19 env.Append(CPPPATH = include_dirs) | |
20 env.Append(LIBPATH = lib_dirs) | |
21 | |
22 if os.environ.has_key('SWIG'): | |
23 env['SWIG'] = os.environ['SWIG'] | |
24 | |
25 return env | |
26 | |
27 def addExtras(env, opengl): | |
28 env.Append(SHLINKFLAGS='-F/opt/local/Library/Frameworks') | |
29 env.Append(SHLINKFLAGS='-framework OpenAL') | |
30 env.Append(SHLINKFLAGS='-framework Cocoa') | |
31 env.Append(SHLINKFLAGS='-framework CoreFoundation') | |
32 env.Append(SHLINKFLAGS='-framework Python') | |
33 | |
34 env.Prepend(CXXFLAGS = '-DUSE_COCOA') | |
35 | |
36 if opengl: | |
37 env.Append(SHLINKFLAGS='-framework OpenGL') | |
38 | |
39 return env | |
40 | |
41 def getRequiredHeaders(opengl): | |
42 return ['SDL/SDL_image.h', | |
43 'SDL/SDL_ttf.h'] | |
44 | |
45 def getRequiredLibs(opengl): | |
46 libs = [('objc', ''), | |
47 ('png', ''), | |
48 ('SDL', ''), | |
49 ('SDL_image', ''), | |
50 ('SDL_ttf', ''), | |
51 ('vorbisfile', 'vorbisfile.h'), | |
52 ('guichan', ''), | |
53 ('guichan_sdl', ''), | |
54 ('z', 'zlib.h'), | |
55 ('boost_filesystem-mt', ''), | |
56 ('boost_system-mt', ''), | |
57 ('boost_regex-mt', '')] | |
58 | |
59 if opengl: | |
60 libs.append(('guichan_opengl', '')) | |
61 | |
62 return libs | |
63 | |
64 def getOptionalLibs(opengl): | |
65 return None | |
66 |