packaging in bundle of the Os X binary. result in the bin of build dir
[blender-staging.git] / config / darwin-config.py
1 LCGDIR = '#../lib/darwin-6.1-powerpc'
2 BF_PYTHON = '/System/Library/Frameworks/Python.framework/Versions/'
3 BF_PYTHON_VERSION = '2.3'
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 = '${BF_PYTHON}' + '${BF_PYTHON_VERSION}' + '/lib/python'+ '${BF_PYTHON_VERSION}' +'/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 = 'false'
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 WITH_BF_PLAYER='false'
67
68 WITH_BF_ODE = 'false'
69 BF_ODE = LCGDIR + '/ode'
70 BF_ODE_INC = BF_ODE + '/include'
71 BF_ODE_LIB = BF_ODE + '/lib/libode.a'
72
73 WITH_BF_BULLET = 'true'
74 BF_BULLET = '#extern/bullet'
75 BF_BULLET_INC = BF_BULLET + '/LinearMath ' + BF_BULLET + '/BulletDynamics ' + BF_BULLET + '/Bullet'
76 BF_BULLET_LIB = 'extern_bullet'
77
78 BF_SOLID = '#extern/solid'
79 BF_SOLID_INC = BF_SOLID
80 BF_SOLID_LIB = 'extern_solid'
81
82 #WITH_BF_NSPR = 'true'
83 #BF_NSPR = $(LCGDIR)/nspr
84 #BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
85 #BF_NSPR_LIB = 
86
87 # Uncomment the following line to use Mozilla inplace of netscape
88 #CPPFLAGS += -DMOZ_NOT_NET
89 # Location of MOZILLA/Netscape header files...
90 #BF_MOZILLA = $(LCGDIR)/mozilla
91 #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
92 #BF_MOZILLA_LIB =
93 # Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
94 # if this is not set.
95 #
96 # Be paranoid regarding library creation (do not update archives)
97 #BF_PARANOID = 'true'
98
99 # enable freetype2 support for text objects
100 WITH_BF_FREETYPE = 'true'
101 BF_FREETYPE = LCGDIR + '/freetype'
102 BF_FREETYPE_INC = BF_FREETYPE + '/include ' + BF_FREETYPE + '/include/freetype2'
103 BF_FREETYPE_LIB = 'freetype'
104 BF_FREETYPE_LIBPATH = BF_FREETYPE + '/lib'
105
106 WITH_BF_QUICKTIME = 'false' # -DWITH_QUICKTIME
107
108 # Mesa Libs should go here if your using them as well....
109 WITH_BF_OPENGL = 'true'
110 BF_OPENGL_LIB = 'GL GLU'
111 BF_OPENGL_LIBPATH = '/System/Library/Frameworks/OpenGL.framework/Libraries'
112 BF_OPENGL_LINKFLAGS = '-framework OpenGL'
113
114 ##
115 ##CC = gcc
116 ##CCC = g++
117 ##ifeq ($CPU),alpha)
118 ##   CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
119
120 CFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
121
122 CPPFLAGS = ['-DXP_UNIX']
123 CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
124 PLATFORM_LINKFLAGS = '-framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Carbon -framework AGL -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuickTime'
125 REL_CFLAGS = ['-O2']
126 REL_CCFLAGS = ['-O2']
127 ##BF_DEPEND = 'true'
128 ##
129 ##AR = ar
130 ##ARFLAGS = ruv
131 ##ARFLAGSQUIET = ru
132 ##
133 C_WARN = ' -Wall  -Wno-long-double'
134
135 CC_WARN = ' -Wall  -Wno-long-double'
136
137 ##FIX_STUBS_WARNINGS = -Wno-unused
138
139 LLIBS = 'stdc++ SystemStubs'
140 ##LOPTS = --dynamic
141 ##DYNLDFLAGS = -shared $(LDFLAGS)
142
143 BF_PROFILE_FLAGS = ' -pg -g '
144 BF_PROFILE = 'false'
145
146 BF_DEBUG = 'false'
147 BF_DEBUG_FLAGS = '-g'
148
149 BF_BUILDDIR='../build/darwin'
150 BF_INSTALLDIR='../install/darwin'