2009-10-27 13:40:41 +00:00
|
|
|
#
|
|
|
|
# Note : if you want to alter this file
|
2011-08-07 22:48:04 +00:00
|
|
|
# copy it as a whole in the upper folder
|
|
|
|
# as user-config.py
|
|
|
|
# dont create a new file with only some
|
|
|
|
# vars changed.
|
2009-10-27 13:40:41 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
import commands
|
|
|
|
|
|
|
|
# IMPORTANT NOTE : OFFICIAL BUILDS SHOULD BE DONE WITH SDKs
|
|
|
|
USE_SDK=True
|
|
|
|
|
2009-10-27 13:40:41 +00:00
|
|
|
#############################################################################
|
|
|
|
################### Cocoa & architecture settings ##################
|
|
|
|
#############################################################################
|
|
|
|
WITH_GHOST_COCOA=True
|
2013-01-08 07:36:22 +00:00
|
|
|
MACOSX_ARCHITECTURE = 'i386' # valid archs: ppc, i386, ppc64, x86_64
|
2009-10-27 13:40:41 +00:00
|
|
|
|
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
cmd = 'uname -p'
|
2011-11-19 16:17:35 +00:00
|
|
|
MAC_PROC=commands.getoutput(cmd)
|
2008-11-07 19:21:52 +00:00
|
|
|
cmd = 'uname -r'
|
2011-11-19 16:17:35 +00:00
|
|
|
cmd_res=commands.getoutput(cmd)
|
2011-08-07 16:54:40 +00:00
|
|
|
|
|
|
|
if cmd_res[:1]=='7':
|
2011-11-19 16:17:35 +00:00
|
|
|
MAC_CUR_VER='10.3'
|
2011-08-07 16:54:40 +00:00
|
|
|
elif cmd_res[:1]=='8':
|
2011-11-19 16:17:35 +00:00
|
|
|
MAC_CUR_VER='10.4'
|
2011-08-07 16:54:40 +00:00
|
|
|
elif cmd_res[:1]=='9':
|
2011-11-19 16:17:35 +00:00
|
|
|
MAC_CUR_VER='10.5'
|
2011-08-05 12:07:05 +00:00
|
|
|
elif cmd_res[:2]=='10':
|
2011-11-19 16:17:35 +00:00
|
|
|
MAC_CUR_VER='10.6'
|
2011-08-05 12:07:05 +00:00
|
|
|
elif cmd_res[:2]=='11':
|
2011-11-19 16:17:35 +00:00
|
|
|
MAC_CUR_VER='10.7'
|
2012-07-26 11:08:56 +00:00
|
|
|
elif cmd_res[:2]=='12':
|
|
|
|
MAC_CUR_VER='10.8'
|
2011-08-07 16:54:40 +00:00
|
|
|
cmd = 'xcodebuild -version'
|
|
|
|
cmd_xcode=commands.getoutput(cmd)
|
2012-02-25 11:21:20 +00:00
|
|
|
XCODE_CUR_VER=cmd_xcode[6:][:3] # truncate output to major.minor version
|
2011-08-07 16:54:40 +00:00
|
|
|
cmd = 'xcodebuild -showsdks'
|
|
|
|
cmd_sdk=commands.getoutput(cmd)
|
|
|
|
MACOSX_SDK_CHECK=cmd_sdk
|
2008-11-07 19:21:52 +00:00
|
|
|
|
2009-11-18 15:54:25 +00:00
|
|
|
if MACOSX_ARCHITECTURE == 'x86_64' or MACOSX_ARCHITECTURE == 'ppc64':
|
2011-11-19 16:17:35 +00:00
|
|
|
USE_QTKIT=True # Carbon quicktime is not available for 64bit
|
2009-11-18 15:54:25 +00:00
|
|
|
|
|
|
|
|
2009-11-14 13:01:14 +00:00
|
|
|
# Default target OSX settings per architecture
|
|
|
|
# Can be customized
|
|
|
|
|
2011-08-05 12:07:05 +00:00
|
|
|
if MACOSX_ARCHITECTURE == 'ppc' and MAC_CUR_VER == '10.4':
|
|
|
|
# all releases are now made for 10.5 !
|
2011-11-19 16:17:35 +00:00
|
|
|
# MAC_MIN_VERS = '10.3'
|
|
|
|
# MACOSX_SDK='/Developer/SDKs/MacOSX10.3.9.sdk'
|
|
|
|
# LCGDIR = '#../lib/darwin-6.1-powerpc'
|
|
|
|
# CC = 'gcc-3.3'
|
|
|
|
# CXX = 'g++-3.3'
|
|
|
|
MAC_MIN_VERS = '10.4'
|
|
|
|
MACOSX_DEPLOYMENT_TARGET = '10.4'
|
|
|
|
MACOSX_SDK='/Developer/SDKs/MacOSX10.4u.sdk'
|
|
|
|
LCGDIR = '#../lib/darwin-8.0.0-powerpc'
|
|
|
|
CC = 'gcc-4.0'
|
|
|
|
CXX = 'g++-4.0'
|
2011-08-05 12:07:05 +00:00
|
|
|
elif MACOSX_ARCHITECTURE == 'i386' and MAC_CUR_VER == '10.4':
|
2011-11-19 16:17:35 +00:00
|
|
|
MAC_MIN_VERS = '10.4'
|
|
|
|
MACOSX_DEPLOYMENT_TARGET = '10.4'
|
|
|
|
MACOSX_SDK='/Developer/SDKs/MacOSX10.4u.sdk'
|
|
|
|
LCGDIR = '#../lib/darwin-8.x.i386'
|
|
|
|
CC = 'gcc-4.0'
|
|
|
|
CXX = 'g++-4.0'
|
2009-10-27 13:40:41 +00:00
|
|
|
else :
|
2011-11-19 16:17:35 +00:00
|
|
|
if 'Mac OS X 10.5' in MACOSX_SDK_CHECK:
|
|
|
|
# OSX 10.5/6 with Xcode 3.x
|
|
|
|
MAC_MIN_VERS = '10.5'
|
|
|
|
MACOSX_DEPLOYMENT_TARGET = '10.5'
|
|
|
|
MACOSX_SDK='/Developer/SDKs/MacOSX10.5.sdk'
|
|
|
|
LCGDIR = '#../lib/darwin-9.x.universal'
|
|
|
|
CC = 'gcc-4.2'
|
|
|
|
CXX = 'g++-4.2'
|
2012-07-26 11:08:56 +00:00
|
|
|
elif 'Mac OS X 10.6' in MACOSX_SDK_CHECK:
|
2011-11-19 16:17:35 +00:00
|
|
|
# OSX 10.6/7 with Xcode 4.x
|
|
|
|
MAC_MIN_VERS = '10.6'
|
|
|
|
MACOSX_DEPLOYMENT_TARGET = '10.6'
|
|
|
|
MACOSX_SDK='/Developer/SDKs/MacOSX10.6.sdk'
|
|
|
|
LCGDIR = '#../lib/darwin-9.x.universal'
|
|
|
|
CC = 'gcc-4.2'
|
|
|
|
CXX = 'g++-4.2'
|
2012-07-26 11:08:56 +00:00
|
|
|
else:
|
|
|
|
# OSX 10.8 with Xcode 4.4 and higher (no 10.6sdk! )
|
|
|
|
MAC_MIN_VERS = '10.6'
|
|
|
|
MACOSX_DEPLOYMENT_TARGET = '10.6'
|
|
|
|
MACOSX_SDK='/Developer/SDKs/MacOSX10.7.sdk'
|
|
|
|
LCGDIR = '#../lib/darwin-9.x.universal'
|
|
|
|
CC = 'gcc'
|
|
|
|
CXX = 'g++'
|
2008-11-07 19:21:52 +00:00
|
|
|
|
2009-11-14 13:01:14 +00:00
|
|
|
LIBDIR = '${LCGDIR}'
|
|
|
|
|
2012-02-17 10:44:21 +00:00
|
|
|
if XCODE_CUR_VER >= '4.3': ## since version 4.3, XCode and developer dir are bundled ##
|
|
|
|
MACOSX_SDK = '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform' + MACOSX_SDK
|
|
|
|
|
2009-10-27 13:40:41 +00:00
|
|
|
#############################################################################
|
|
|
|
################### Dependency settings ##################
|
|
|
|
#############################################################################
|
2008-11-07 19:21:52 +00:00
|
|
|
|
2011-09-28 17:28:37 +00:00
|
|
|
#Defaults openMP to true if compiler handles it ( only gcc 4.6.1 and newer )
|
2011-09-29 17:02:19 +00:00
|
|
|
# if your compiler does not have accurate suffix you may have to enable it by hand !
|
2012-03-15 14:57:51 +00:00
|
|
|
if CC[:-2].endswith('4.6'):
|
2011-09-28 17:28:37 +00:00
|
|
|
WITH_BF_OPENMP = True # multithreading for fluids, cloth, sculpt and smoke
|
2010-01-30 19:07:48 +00:00
|
|
|
else:
|
|
|
|
WITH_BF_OPENMP = False
|
|
|
|
|
2007-05-19 22:57:28 +00:00
|
|
|
# enable ffmpeg support
|
2012-04-07 18:26:54 +00:00
|
|
|
WITH_BF_FFMPEG = True
|
2012-02-24 18:31:09 +00:00
|
|
|
BF_FFMPEG = LIBDIR + '/ffmpeg'
|
2010-02-15 10:10:30 +00:00
|
|
|
BF_FFMPEG_INC = "${BF_FFMPEG}/include"
|
|
|
|
BF_FFMPEG_LIBPATH='${BF_FFMPEG}/lib'
|
2010-02-22 16:34:27 +00:00
|
|
|
BF_FFMPEG_LIB = 'avcodec avdevice avformat avutil mp3lame swscale x264 xvidcore theora theoradec theoraenc vorbis vorbisenc vorbisfile ogg bz2'
|
|
|
|
#bz2 is a standard osx dynlib
|
2009-10-27 13:40:41 +00:00
|
|
|
|
2012-11-19 10:14:55 +00:00
|
|
|
BF_PYTHON_VERSION = '3.3'
|
2011-08-31 14:15:14 +00:00
|
|
|
WITH_OSX_STATICPYTHON = True
|
2011-08-30 23:52:12 +00:00
|
|
|
|
2011-08-31 14:15:14 +00:00
|
|
|
if WITH_OSX_STATICPYTHON:
|
2012-11-19 10:14:55 +00:00
|
|
|
# python 3.3 uses precompiled libraries in bf svn /lib by default
|
2011-11-19 16:17:35 +00:00
|
|
|
|
|
|
|
BF_PYTHON = LIBDIR + '/python'
|
2012-11-19 10:14:55 +00:00
|
|
|
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}m'
|
2011-11-19 16:17:35 +00:00
|
|
|
# BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
|
2012-11-19 10:14:55 +00:00
|
|
|
BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}m'
|
2011-11-19 16:17:35 +00:00
|
|
|
BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib/python${BF_PYTHON_VERSION}'
|
|
|
|
# BF_PYTHON_LINKFLAGS = ['-u', '_PyMac_Error', '-framework', 'System']
|
2011-08-30 23:52:12 +00:00
|
|
|
else:
|
2011-11-19 16:17:35 +00:00
|
|
|
# python 3.2 uses Python-framework additionally installed in /Library/Frameworks
|
|
|
|
|
|
|
|
BF_PYTHON = '/Library/Frameworks/Python.framework/Versions/'
|
|
|
|
BF_PYTHON_INC = '${BF_PYTHON}${BF_PYTHON_VERSION}/include/python${BF_PYTHON_VERSION}m'
|
|
|
|
BF_PYTHON_BINARY = '${BF_PYTHON}${BF_PYTHON_VERSION}/bin/python${BF_PYTHON_VERSION}'
|
|
|
|
#BF_PYTHON_LIB = ''
|
|
|
|
BF_PYTHON_LIBPATH = '${BF_PYTHON}${BF_PYTHON_VERSION}/lib/python${BF_PYTHON_VERSION}/config-3.2m'
|
|
|
|
|
2009-10-27 13:40:41 +00:00
|
|
|
WITH_BF_OPENAL = True
|
2007-05-19 22:57:28 +00:00
|
|
|
#different lib must be used following version of gcc
|
|
|
|
# for gcc 3.3
|
|
|
|
#BF_OPENAL = LIBDIR + '/openal'
|
2008-11-07 19:21:52 +00:00
|
|
|
# for gcc 3.4 and ulterior
|
|
|
|
if MAC_PROC == 'powerpc':
|
2011-11-19 16:17:35 +00:00
|
|
|
BF_OPENAL = '#../lib/darwin-8.0.0-powerpc/openal'
|
2008-11-07 19:21:52 +00:00
|
|
|
else :
|
2011-11-19 16:17:35 +00:00
|
|
|
BF_OPENAL = LIBDIR + '/openal'
|
2007-05-19 22:57:28 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_STATICOPENAL = False
|
2009-10-27 13:40:41 +00:00
|
|
|
BF_OPENAL_INC = '${BF_OPENAL}/include' # only headers from libdir needed for proper use of framework !!!!
|
|
|
|
#BF_OPENAL_LIB = 'openal'
|
|
|
|
#BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
|
2008-11-07 19:21:52 +00:00
|
|
|
# Warning, this static lib configuration is untested! users of this OS please confirm.
|
2009-10-27 13:40:41 +00:00
|
|
|
#BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
|
2008-11-07 19:21:52 +00:00
|
|
|
|
|
|
|
# Warning, this static lib configuration is untested! users of this OS please confirm.
|
|
|
|
BF_CXX = '/usr'
|
|
|
|
WITH_BF_STATICCXX = False
|
|
|
|
BF_CXX_LIB_STATIC = '${BF_CXX}/lib/libstdc++.a'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2011-12-12 22:17:02 +00:00
|
|
|
# we use simply jack framework
|
|
|
|
WITH_BF_JACK = True
|
|
|
|
BF_JACK = '/Library/Frameworks/Jackmp.framework'
|
|
|
|
BF_JACK_INC = '${BF_JACK}/headers'
|
2012-12-12 19:54:14 +00:00
|
|
|
#BF_JACK_LIB = 'jack' # not used due framework
|
2011-12-12 22:17:02 +00:00
|
|
|
BF_JACK_LIBPATH = '${BF_JACK}'
|
2009-08-17 01:16:50 +00:00
|
|
|
|
2009-12-02 18:06:39 +00:00
|
|
|
WITH_BF_SNDFILE = True
|
2009-08-25 20:42:21 +00:00
|
|
|
BF_SNDFILE = LIBDIR + '/sndfile'
|
|
|
|
BF_SNDFILE_INC = '${BF_SNDFILE}/include'
|
2010-04-03 09:54:38 +00:00
|
|
|
BF_SNDFILE_LIB = 'sndfile FLAC ogg vorbis vorbisenc'
|
|
|
|
BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib ${BF_FFMPEG}/lib' #ogg libs are stored in ffmpeg dir
|
2009-08-25 20:42:21 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_SDL = True
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_SDL = LIBDIR + '/sdl' #$(shell sdl-config --prefix)
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_SDL_INC = '${BF_SDL}/include' #$(shell $(BF_SDL)/bin/sdl-config --cflags)
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_SDL_LIB = 'SDL' #BF_SDL #$(shell $(BF_SDL)/bin/sdl-config --libs) -lSDL_mixer
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_SDL_LIBPATH = '${BF_SDL}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_OPENEXR = True
|
|
|
|
WITH_BF_STATICOPENEXR = False
|
2007-08-19 18:48:42 +00:00
|
|
|
BF_OPENEXR = '${LCGDIR}/openexr'
|
|
|
|
BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
|
2007-05-19 22:57:28 +00:00
|
|
|
BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread'
|
2007-08-30 18:59:33 +00:00
|
|
|
BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib'
|
2008-11-07 19:21:52 +00:00
|
|
|
# Warning, this static lib configuration is untested! users of this OS please confirm.
|
|
|
|
BF_OPENEXR_LIB_STATIC = '${BF_OPENEXR}/lib/libHalf.a ${BF_OPENEXR}/lib/libIlmImf.a ${BF_OPENEXR}/lib/libIex.a ${BF_OPENEXR}/lib/libImath.a ${BF_OPENEXR}/lib/libIlmThread.a'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_DDS = True
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-07-03 10:01:41 +00:00
|
|
|
#Color Management System
|
2010-07-03 12:11:05 +00:00
|
|
|
WITH_BF_LCMS = False
|
|
|
|
BF_LCMS = LIBDIR + '/lcms'
|
|
|
|
BF_LCMS_INC = '${BF_LCMS}/include'
|
|
|
|
BF_LCMS_LIB = 'lcms'
|
|
|
|
BF_LCMS_LIBPATH = '${BF_LCMS}/lib'
|
2010-07-03 10:01:41 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_JPEG = True
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_JPEG = LIBDIR + '/jpeg'
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_JPEG_INC = '${BF_JPEG}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_JPEG_LIB = 'jpeg'
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_PNG = True
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_PNG = LIBDIR + '/png'
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_PNG_INC = '${BF_PNG}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_PNG_LIB = 'png'
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_PNG_LIBPATH = '${BF_PNG}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-05-21 03:25:38 +00:00
|
|
|
WITH_BF_TIFF = True
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_TIFF = LIBDIR + '/tiff'
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_TIFF_INC = '${BF_TIFF}/include'
|
2010-05-21 03:25:38 +00:00
|
|
|
BF_TIFF_LIB = 'tiff'
|
|
|
|
BF_TIFF_LIBPATH = '${BF_TIFF}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_ZLIB = True
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_ZLIB = '/usr'
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_ZLIB_INC = '${BF_ZLIB}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_ZLIB_LIB = 'z'
|
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_INTERNATIONAL = True
|
2006-02-05 12:27:49 +00:00
|
|
|
|
2011-08-07 16:29:05 +00:00
|
|
|
WITH_BF_GAMEENGINE = True
|
2011-08-07 16:54:40 +00:00
|
|
|
WITH_BF_PLAYER = True
|
2011-11-13 15:10:54 +00:00
|
|
|
WITH_BF_OCEANSIM = True
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_BULLET = True
|
2006-11-21 06:11:41 +00:00
|
|
|
BF_BULLET = '#extern/bullet2/src'
|
|
|
|
BF_BULLET_INC = '${BF_BULLET}'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_BULLET_LIB = 'extern_bullet'
|
|
|
|
|
2009-12-02 18:06:39 +00:00
|
|
|
WITH_BF_FFTW3 = True
|
2009-08-09 10:55:25 +00:00
|
|
|
BF_FFTW3 = LIBDIR + '/fftw3'
|
|
|
|
BF_FFTW3_INC = '${BF_FFTW3}/include'
|
2009-08-09 12:52:59 +00:00
|
|
|
BF_FFTW3_LIB = 'libfftw3'
|
2009-08-09 10:55:25 +00:00
|
|
|
BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
|
|
|
|
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_FREETYPE = LIBDIR + '/freetype'
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_FREETYPE_LIB = 'freetype'
|
2006-02-05 16:25:38 +00:00
|
|
|
BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2009-11-18 15:54:25 +00:00
|
|
|
WITH_BF_QUICKTIME = True
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_ICONV = True
|
2009-10-27 13:40:41 +00:00
|
|
|
BF_ICONV = '/usr'
|
2006-11-09 15:45:19 +00:00
|
|
|
BF_ICONV_INC = '${BF_ICONV}/include'
|
|
|
|
BF_ICONV_LIB = 'iconv'
|
2008-11-07 19:21:52 +00:00
|
|
|
#BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
|
2006-11-09 15:45:19 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
# Mesa Libs should go here if your using them as well....
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_STATICOPENGL = True
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_OPENGL_LIB = 'GL GLU'
|
|
|
|
BF_OPENGL_LIBPATH = '/System/Library/Frameworks/OpenGL.framework/Libraries'
|
2009-08-12 18:12:33 +00:00
|
|
|
BF_OPENGL_LINKFLAGS = ['-framework', 'OpenGL']
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2009-10-30 20:20:48 +00:00
|
|
|
#OpenCollada flags
|
2011-08-07 16:54:40 +00:00
|
|
|
WITH_BF_COLLADA = True
|
2009-11-09 17:52:13 +00:00
|
|
|
BF_COLLADA = '#source/blender/collada'
|
|
|
|
BF_COLLADA_INC = '${BF_COLLADA}'
|
|
|
|
BF_COLLADA_LIB = 'bf_collada'
|
|
|
|
BF_OPENCOLLADA = LIBDIR + '/opencollada'
|
|
|
|
BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include'
|
2010-01-30 19:07:48 +00:00
|
|
|
BF_OPENCOLLADA_LIB = 'OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils OpenCOLLADAStreamWriter MathMLSolver GeneratedSaxParser UTF xml2 buffer ftoa'
|
2009-11-09 17:52:13 +00:00
|
|
|
BF_OPENCOLLADA_LIBPATH = LIBDIR + '/opencollada'
|
|
|
|
BF_PCRE = LIBDIR + '/opencollada'
|
|
|
|
BF_PCRE_LIB = 'pcre'
|
2010-02-01 10:14:22 +00:00
|
|
|
BF_PCRE_LIBPATH = '${BF_PCRE}/lib'
|
2009-11-09 17:52:13 +00:00
|
|
|
#BF_EXPAT = '/usr'
|
|
|
|
#BF_EXPAT_LIB = 'expat'
|
|
|
|
#BF_EXPAT_LIBPATH = '/usr/lib'
|
2009-10-30 20:20:48 +00:00
|
|
|
|
2011-12-01 16:33:21 +00:00
|
|
|
# Cycles
|
2011-11-19 16:17:35 +00:00
|
|
|
WITH_BF_CYCLES = True
|
2011-11-09 11:49:39 +00:00
|
|
|
|
2012-11-15 21:35:25 +00:00
|
|
|
#OSL
|
|
|
|
|
|
|
|
WITH_BF_CYCLES_OSL = True
|
|
|
|
BF_OSL = LIBDIR + '/osl'
|
|
|
|
BF_OSL_INC = '${BF_OSL}/include'
|
|
|
|
# note oslexec would passed via program linkflags, which is needed to
|
|
|
|
# make llvm happy with osl_allocate_closure_component
|
2012-11-16 14:42:04 +00:00
|
|
|
#BF_OSL_LIB = 'oslcomp oslquery'
|
2012-11-15 21:35:25 +00:00
|
|
|
BF_OSL_LIBPATH = '${BF_OSL}/lib'
|
|
|
|
BF_OSL_COMPILER = '${BF_OSL}/bin/oslc'
|
|
|
|
|
|
|
|
WITH_BF_LLVM = True
|
|
|
|
BF_LLVM = LIBDIR + '/llvm'
|
|
|
|
BF_LLVM_LIB = 'LLVMBitReader LLVMJIT LLVMipo LLVMVectorize LLVMBitWriter LLVMX86CodeGen LLVMX86Desc LLVMX86Info LLVMX86AsmPrinter ' + \
|
|
|
|
'LLVMX86Utils LLVMSelectionDAG LLVMCodeGen LLVMScalarOpts LLVMInstCombine LLVMTransformUtils LLVMipa LLVMAnalysis LLVMExecutionEngine ' + \
|
|
|
|
'LLVMTarget LLVMMC LLVMCore LLVMSupport'
|
|
|
|
BF_LLVM_LIBPATH = '${BF_LLVM}/lib'
|
|
|
|
|
2011-11-09 11:49:39 +00:00
|
|
|
WITH_BF_OIIO = True
|
|
|
|
BF_OIIO = LIBDIR + '/openimageio'
|
2012-11-14 08:12:52 +00:00
|
|
|
BF_OIIO_INC = '${BF_OIIO}/include'
|
2011-11-09 11:49:39 +00:00
|
|
|
BF_OIIO_LIB = 'OpenImageIO'
|
2012-11-14 08:12:52 +00:00
|
|
|
BF_OIIO_LIBPATH = '${BF_OIIO}/lib'
|
2011-11-09 11:49:39 +00:00
|
|
|
|
2012-09-15 10:03:17 +00:00
|
|
|
WITH_BF_OCIO = True
|
|
|
|
BF_OCIO = LIBDIR + '/opencolorio'
|
2012-11-14 08:12:52 +00:00
|
|
|
BF_OCIO_INC = '${BF_OCIO}/include'
|
2012-09-15 10:03:17 +00:00
|
|
|
BF_OCIO_LIB = 'OpenColorIO tinyxml yaml-cpp'
|
2012-11-14 08:12:52 +00:00
|
|
|
BF_OCIO_LIBPATH = '${BF_OCIO}/lib'
|
2012-09-15 10:03:17 +00:00
|
|
|
|
2011-11-09 11:49:39 +00:00
|
|
|
WITH_BF_BOOST = True
|
|
|
|
BF_BOOST = LIBDIR + '/boost'
|
2012-11-14 08:12:52 +00:00
|
|
|
BF_BOOST_INC = '${BF_BOOST}/include'
|
2012-11-19 19:10:31 +00:00
|
|
|
BF_BOOST_LIB = 'boost_date_time-mt boost_filesystem-mt boost_regex-mt boost_system-mt boost_thread-mt boost_wave-mt'
|
2012-11-12 02:30:16 +00:00
|
|
|
BF_BOOST_LIB_INTERNATIONAL = 'boost_locale-mt'
|
2012-11-14 08:12:52 +00:00
|
|
|
BF_BOOST_LIBPATH = '${BF_BOOST}/lib'
|
2011-11-09 11:49:39 +00:00
|
|
|
|
2011-12-01 16:33:21 +00:00
|
|
|
WITH_BF_CYCLES_CUDA_BINARIES = False
|
|
|
|
BF_CYCLES_CUDA_NVCC = '/usr/local/cuda/bin/nvcc'
|
|
|
|
BF_CYCLES_CUDA_BINARIES_ARCH = ['sm_13', 'sm_20', 'sm_21']
|
|
|
|
|
2009-12-10 00:51:13 +00:00
|
|
|
#Ray trace optimization
|
2010-01-30 19:07:48 +00:00
|
|
|
if MACOSX_ARCHITECTURE == 'x86_64' or MACOSX_ARCHITECTURE == 'i386':
|
|
|
|
WITH_BF_RAYOPTIMIZATION = True
|
|
|
|
else:
|
|
|
|
WITH_BF_RAYOPTIMIZATION = False
|
2009-12-10 00:51:13 +00:00
|
|
|
if MACOSX_ARCHITECTURE == 'i386':
|
|
|
|
BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse']
|
|
|
|
elif MACOSX_ARCHITECTURE == 'x86_64':
|
|
|
|
BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse','-msse2']
|
2011-06-08 21:18:03 +00:00
|
|
|
|
2011-08-11 15:59:19 +00:00
|
|
|
# SpaceNavigator and related 3D mice, driver must be 3DxWare 10 Beta 4 (Mac OS X) or later !
|
2011-08-07 16:29:05 +00:00
|
|
|
WITH_BF_3DMOUSE = True
|
2009-12-10 00:51:13 +00:00
|
|
|
|
2009-10-27 13:40:41 +00:00
|
|
|
#############################################################################
|
|
|
|
################### various compile settings and flags ##################
|
|
|
|
#############################################################################
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2009-10-27 13:40:41 +00:00
|
|
|
BF_QUIET = '1' # suppress verbose output
|
|
|
|
|
|
|
|
if MACOSX_ARCHITECTURE == 'x86_64' or MACOSX_ARCHITECTURE == 'ppc64':
|
2011-11-19 16:17:35 +00:00
|
|
|
ARCH_FLAGS = ['-m64']
|
2009-10-27 13:40:41 +00:00
|
|
|
else:
|
2011-11-19 16:17:35 +00:00
|
|
|
ARCH_FLAGS = ['-m32']
|
2009-10-27 13:40:41 +00:00
|
|
|
|
2011-10-21 04:23:26 +00:00
|
|
|
CFLAGS = []
|
|
|
|
CXXFLAGS = []
|
|
|
|
CCFLAGS = ['-pipe','-funsigned-char']
|
2009-10-27 13:40:41 +00:00
|
|
|
|
2011-10-21 04:23:26 +00:00
|
|
|
CPPFLAGS = list(ARCH_FLAGS)
|
2009-10-27 13:40:41 +00:00
|
|
|
|
2011-08-07 16:29:05 +00:00
|
|
|
if WITH_GHOST_COCOA:
|
2011-11-19 16:17:35 +00:00
|
|
|
PLATFORM_LINKFLAGS = ['-fexceptions','-framework','CoreServices','-framework','Foundation','-framework','IOKit','-framework','AppKit','-framework','Cocoa','-framework','Carbon','-framework','AudioUnit','-framework','AudioToolbox','-framework','CoreAudio','-framework','OpenAL']+ARCH_FLAGS
|
2009-10-27 13:40:41 +00:00
|
|
|
else:
|
2011-11-19 16:17:35 +00:00
|
|
|
PLATFORM_LINKFLAGS = ['-fexceptions','-framework','CoreServices','-framework','Foundation','-framework','IOKit','-framework','AppKit','-framework','Carbon','-framework','AGL','-framework','AudioUnit','-framework','AudioToolbox','-framework','CoreAudio','-framework','OpenAL']+ARCH_FLAGS
|
2009-10-27 13:40:41 +00:00
|
|
|
|
2011-08-07 16:29:05 +00:00
|
|
|
if WITH_BF_QUICKTIME:
|
2011-11-19 16:17:35 +00:00
|
|
|
if USE_QTKIT:
|
|
|
|
PLATFORM_LINKFLAGS = PLATFORM_LINKFLAGS+['-framework','QTKit']
|
|
|
|
else:
|
|
|
|
PLATFORM_LINKFLAGS = PLATFORM_LINKFLAGS+['-framework','QuickTime']
|
2008-11-07 19:21:52 +00:00
|
|
|
|
2011-08-31 14:15:14 +00:00
|
|
|
if not WITH_OSX_STATICPYTHON:
|
2011-11-19 16:17:35 +00:00
|
|
|
PLATFORM_LINKFLAGS = PLATFORM_LINKFLAGS+['-framework','Python']
|
2011-08-30 23:52:12 +00:00
|
|
|
|
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
#note to build succesfully on 10.3.9 SDK you need to patch 10.3.9 by adding the SystemStubs.a lib from 10.4
|
2012-07-26 11:08:56 +00:00
|
|
|
#for > 10.7.sdk, SystemStubs needs to be excluded (lib doesn't exist anymore)
|
|
|
|
if MACOSX_SDK.endswith("10.7.sdk") or MACOSX_SDK.endswith("10.8.sdk"):
|
2011-11-19 16:17:35 +00:00
|
|
|
LLIBS = ['stdc++']
|
2011-08-25 09:41:36 +00:00
|
|
|
else:
|
2011-11-19 16:17:35 +00:00
|
|
|
LLIBS = ['stdc++', 'SystemStubs']
|
2008-11-07 19:21:52 +00:00
|
|
|
|
2011-08-07 16:29:05 +00:00
|
|
|
# some flags shuffling for different OS versions
|
2008-11-07 19:21:52 +00:00
|
|
|
if MAC_MIN_VERS == '10.3':
|
2011-11-19 16:17:35 +00:00
|
|
|
CCFLAGS = ['-fuse-cxa-atexit'] + CCFLAGS
|
|
|
|
PLATFORM_LINKFLAGS = ['-fuse-cxa-atexit'] + PLATFORM_LINKFLAGS
|
|
|
|
LLIBS.append('crt3.o')
|
|
|
|
|
2011-08-07 16:29:05 +00:00
|
|
|
if USE_SDK:
|
2011-11-19 16:17:35 +00:00
|
|
|
SDK_FLAGS=['-isysroot', MACOSX_SDK,'-mmacosx-version-min='+MAC_MIN_VERS,'-arch',MACOSX_ARCHITECTURE]
|
|
|
|
PLATFORM_LINKFLAGS = ['-mmacosx-version-min='+MAC_MIN_VERS,'-Wl','-isysroot',MACOSX_SDK,'-arch',MACOSX_ARCHITECTURE]+PLATFORM_LINKFLAGS
|
|
|
|
CCFLAGS=SDK_FLAGS+CCFLAGS
|
|
|
|
CXXFLAGS=SDK_FLAGS+CXXFLAGS
|
2010-02-10 13:25:50 +00:00
|
|
|
|
2011-11-19 16:17:35 +00:00
|
|
|
#Intel Macs are CoreDuo and Up
|
2009-10-27 13:40:41 +00:00
|
|
|
if MACOSX_ARCHITECTURE == 'i386' or MACOSX_ARCHITECTURE == 'x86_64':
|
2011-11-19 16:17:35 +00:00
|
|
|
REL_CFLAGS = []
|
|
|
|
REL_CXXFLAGS = []
|
|
|
|
REL_CCFLAGS = ['-DNDEBUG', '-O2','-ftree-vectorize','-msse','-msse2','-msse3','-mfpmath=sse']
|
2008-11-07 19:21:52 +00:00
|
|
|
else:
|
2011-11-19 16:17:35 +00:00
|
|
|
CCFLAGS += ['-fno-strict-aliasing']
|
|
|
|
REL_CFLAGS = []
|
|
|
|
REL_CXXFLAGS = []
|
|
|
|
REL_CCFLAGS = ['-DNDEBUG', '-O2']
|
2008-11-07 19:21:52 +00:00
|
|
|
|
2010-02-10 13:25:50 +00:00
|
|
|
# Intel 64bit Macs are Core2Duo and up
|
2009-10-27 13:40:41 +00:00
|
|
|
if MACOSX_ARCHITECTURE == 'x86_64':
|
2011-11-19 16:17:35 +00:00
|
|
|
REL_CCFLAGS += ['-march=core2','-mssse3','-with-tune=core2','-enable-threads']
|
2009-10-27 13:40:41 +00:00
|
|
|
|
|
|
|
CC_WARN = ['-Wall']
|
2010-12-03 12:30:59 +00:00
|
|
|
C_WARN = ['-Wno-char-subscripts', '-Wpointer-arith', '-Wcast-align', '-Wdeclaration-after-statement', '-Wno-unknown-pragmas', '-Wstrict-prototypes']
|
2010-01-30 19:07:48 +00:00
|
|
|
CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare']
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
##FIX_STUBS_WARNINGS = -Wno-unused
|
|
|
|
|
|
|
|
##LOPTS = --dynamic
|
|
|
|
##DYNLDFLAGS = -shared $(LDFLAGS)
|
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
BF_PROFILE_CCFLAGS = ['-pg', '-g ']
|
2008-12-14 17:32:24 +00:00
|
|
|
BF_PROFILE_LINKFLAGS = ['-pg']
|
2008-11-07 19:21:52 +00:00
|
|
|
BF_PROFILE = False
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
BF_DEBUG = False
|
2011-02-25 15:46:43 +00:00
|
|
|
BF_DEBUG_CCFLAGS = ['-g', '-D_DEBUG']
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2009-10-27 13:40:41 +00:00
|
|
|
#############################################################################
|
|
|
|
################### Output directories ##################
|
|
|
|
#############################################################################
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_BUILDDIR='../build/darwin'
|
|
|
|
BF_INSTALLDIR='../install/darwin'
|