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