==SCons==
[blender-staging.git] / config / darwin-config.py
1 LCGDIR = '#../lib/darwin-6.1-powerpc'
2 BF_PYTHON = '/Library/Frameworks/Python.framework/Versions/'
3 BF_PYTHON_VERSION = '2.4'
4 BF_PYTHON_INC = BF_PYTHON + BF_PYTHON_VERSION + '/include/python' + BF_PYTHON_VERSION
5 BF_PYTHON_BINARY = BF_PYTHON + BF_PYTHON_VERSION +'/bin/python'+BF_PYTHON_VERSION
6 BF_PYTHON_LIB = ''
7 BF_PYTHON_LIBPATH = '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config'
8 BF_PYTHON_LINKFLAGS = '-u __dummy -u _PyMac_Error -framework System -framework Python'
9
10 WITH_BF_OPENAL = 'true'
11 BF_OPENAL = LCGDIR + '/openal'
12 BF_OPENAL_INC = BF_OPENAL + '/include'
13 BF_OPENAL_LIB = 'openal'
14 BF_OPENAL_LIBPATH = BF_OPENAL + '/lib'
15
16 WITH_BF_SDL = 'true'
17 BF_SDL = LCGDIR + '/sdl' #$(shell sdl-config --prefix)
18 BF_SDL_INC = BF_SDL + '/include' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
19 BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
20 BF_SDL_LIBPATH = BF_SDL + '/lib'
21
22 WITH_BF_FMOD = 'false'
23 BF_FMOD = LCGDIR + '/fmod'
24
25 WITH_BF_OPENEXR = 'true'
26 BF_OPENEXR = '/usr/local'
27 BF_OPENEXR_INC = BF_OPENEXR + '/include/OpenEXR'
28 BF_OPENEXR_LIB = ' Iex Half IlmImf Imath '
29
30
31 WITH_BF_JPEG = 'true'
32 BF_JPEG = LCGDIR + '/jpeg'
33 BF_JPEG_INC = BF_JPEG + '/include'
34 BF_JPEG_LIB = 'jpeg'
35 BF_JPEG_LIBPATH = BF_JPEG + '/lib'
36
37 WITH_BF_PNG = 'true'
38 BF_PNG = LCGDIR + '/png'
39 BF_PNG_INC = BF_PNG + '/include'
40 BF_PNG_LIB = 'png'
41 BF_PNG_LIBPATH = BF_PNG + '/lib'
42
43 WITH_BF_TIFF = 'true'
44 BF_TIFF = LCGDIR + '/tiff'
45 BF_TIFF_INC = BF_TIFF + '/include'
46 BF_TIFF_LIB = 'tiff'
47 BF_TIFF_LIBPATH = BF_TIFF + '/lib'
48
49 WITH_BF_ZLIB = 'true'
50 BF_ZLIB = '/usr'
51 BF_ZLIB_INC = BF_ZLIB + '/include'
52 BF_ZLIB_LIB = 'z'
53
54 WITH_BF_GETTEXT = 'true'
55 BF_GETTEXT = LCGDIR + '/gettext'
56 BF_GETTEXT_INC = BF_GETTEXT + '/include'
57 BF_GETTEXT_LIB = 'intl'
58 BF_GETTEXT_LIBPATH = BF_GETTEXT + '/lib'
59
60 WITH_BF_FTGL = 'true'
61 BF_FTGL = '#extern/bFTGL'
62 BF_FTGL_INC = BF_FTGL + '/include'
63 BF_FTGL_LIB = 'extern_ftgl'
64
65 WITH_BF_GAMEENGINE='true'
66
67 WITH_BF_ODE = 'false'
68 BF_ODE = LCGDIR + '/ode'
69 BF_ODE_INC = BF_ODE + '/include'
70 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
71
72 WITH_BF_BULLET = 'true'
73 BF_BULLET = '#extern/bullet'
74 BF_BULLET_INC = BF_BULLET + '/LinearMath ' + BF_BULLET + '/BulletDynamics ' + BF_BULLET + '/Bullet'
75 BF_BULLET_LIB = 'extern_bullet'
76
77 BF_SOLID = '#extern/solid'
78 BF_SOLID_INC = BF_SOLID
79 BF_SOLID_LIB = 'extern_solid'
80
81 #WITH_BF_NSPR = 'true'
82 #BF_NSPR = $(LCGDIR)/nspr
83 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
84 #BF_NSPR_LIB = 
85
86 # Uncomment the following line to use Mozilla inplace of netscape
87 #CPPFLAGS += -DMOZ_NOT_NET
88 # Location of MOZILLA/Netscape header files...
89 #BF_MOZILLA = $(LCGDIR)/mozilla
90 #BF_MOZILLA_INC = -I$(BF_MOZILLA)/include/mozilla/nspr -I$(BF_MOZILLA)/include/mozilla -I$(BF_MOZILLA)/include/mozilla/xpcom -I$(BF_MOZILLA)/include/mozilla/idl
91 #BF_MOZILLA_LIB =
92 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
93 # if this is not set.
94 #
95 # Be paranoid regarding library creation (do not update archives)
96 #BF_PARANOID = 'true'
97
98 # enable freetype2 support for text objects
99 WITH_BF_FREETYPE = 'true'
100 BF_FREETYPE = LCGDIR + '/freetype'
101 BF_FREETYPE_INC = BF_FREETYPE + '/include ' + BF_FREETYPE + '/include/freetype2'
102 BF_FREETYPE_LIB = 'freetype'
103 BF_FREETYPE_LIBPATH = BF_FREETYPE + '/lib'
104
105 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
106
107 # Mesa Libs should go here if your using them as well....
108 WITH_BF_OPENGL = 'true'
109 BF_OPENGL_LIB = 'GL GLU'
110 BF_OPENGL_LIBPATH = '/System/Library/Frameworks/OpenGL.framework/Libraries'
111 BF_OPENGL_LINKFLAGS = '-framework OpenGL'
112
113 ##
114 ##CC = gcc
115 ##CCC = g++
116 ##ifeq ($CPU),alpha)
117 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
118
119 CFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
120
121 CPPFLAGS = ['-DXP_UNIX']
122 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
123 PLATFORM_LINKFLAGS = '-framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Carbon -framework AGL -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuickTime'
124 REL_CFLAGS = ['-O2']
125 REL_CCFLAGS = ['-O2']
126 ##BF_DEPEND = 'true'
127 ##
128 ##AR = ar
129 ##ARFLAGS = ruv
130 ##ARFLAGSQUIET = ru
131 ##
132 C_WARN = ' -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wredundant-decls -Wno-long-double'
133
134 CC_WARN = ' -Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wredundant-decls -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wsynth -Wno-long-double'
135
136 ##FIX_STUBS_WARNINGS = -Wno-unused
137
138 LLIBS = 'stdc++'
139 ##LOPTS = --dynamic
140 ##DYNLDFLAGS = -shared $(LDFLAGS)
141
142 BF_PROFILE_FLAGS = ' -pg -g '
143 BF_PROFILE = 'false'
144
145 BF_DEBUG = 'false'
146 BF_DEBUG_FLAGS = ''
147
148 BF_BUILDDIR='../build/darwin'
149 BF_INSTALLDIR='../install/darwin'