2008-12-14 17:32:24 +00:00
|
|
|
LCGDIR = '#../lib/windows'
|
2006-08-22 13:04:07 +00:00
|
|
|
LIBDIR = '${LCGDIR}'
|
|
|
|
|
|
|
|
BF_PYTHON = LIBDIR + '/python'
|
2010-01-19 21:42:01 +00:00
|
|
|
BF_PYTHON_VERSION = '3.1'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
|
|
|
|
BF_PYTHON_BINARY = 'python'
|
2010-02-01 18:39:41 +00:00
|
|
|
BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}mw'
|
|
|
|
BF_PYTHON_DLL = 'python31'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_OPENAL = True
|
|
|
|
WITH_BF_STATICOPENAL = False
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_OPENAL = LIBDIR + '/openal'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_OPENAL_INC = '${BF_OPENAL}/include'
|
2010-02-01 18:39:41 +00:00
|
|
|
BF_OPENAL_LIB = 'OpenAL32 wrap_oal'
|
2006-03-13 11:42:49 +00:00
|
|
|
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.
|
|
|
|
BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
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'
|
|
|
|
|
2009-08-09 21:16:39 +00:00
|
|
|
BF_LIBSAMPLERATE = LIBDIR + '/samplerate'
|
|
|
|
BF_LIBSAMPLERATE_INC = '${BF_LIBSAMPLERATE}/include'
|
|
|
|
BF_LIBSAMPLERATE_LIB = 'samplerate'
|
|
|
|
BF_LIBSAMPLERATE_LIBPATH = '${BF_LIBSAMPLERATE}/lib'
|
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_SDL = True
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_SDL = LIBDIR + '/sdl'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_SDL_INC = '${BF_SDL}/include'
|
|
|
|
BF_SDL_LIB = 'SDL'
|
|
|
|
BF_SDL_LIBPATH = '${BF_SDL}/lib'
|
|
|
|
|
2010-02-01 18:39:41 +00:00
|
|
|
WITH_BF_JACK = False
|
|
|
|
BF_JACK = LIBDIR + '/jack'
|
|
|
|
BF_JACK_INC = '${BF_JACK}/include'
|
|
|
|
BF_JACK_LIB = 'jack'
|
|
|
|
BF_JACK_LIBPATH = '${BF_JACK}/lib'
|
|
|
|
|
|
|
|
WITH_BF_SNDFILE = False
|
|
|
|
BF_SNDFILE = LIBDIR + '/sndfile'
|
|
|
|
BF_SNDFILE_INC = '${BF_SNDFILE}/include'
|
|
|
|
BF_SNDFILE_LIB = 'sndfile-1'
|
|
|
|
BF_SNDFILE_LIBPATH = '${BF_SNDFILE}/lib'
|
|
|
|
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_PTHREADS = LIBDIR + '/pthreads'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_PTHREADS_INC = '${BF_PTHREADS}/include'
|
|
|
|
BF_PTHREADS_LIB = 'pthreadGC2'
|
|
|
|
BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/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
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_OPENEXR = LIBDIR + '/gcc/openexr'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
|
2010-05-29 21:31:57 +00:00
|
|
|
BF_OPENEXR_LIB = ' Half IlmImf Iex IlmThread '
|
2006-03-13 11:42:49 +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-03-13 11:42:49 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_DDS = True
|
2007-06-25 19:50:25 +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-03-13 11:42:49 +00:00
|
|
|
BF_JPEG_INC = '${BF_JPEG}/include'
|
2010-06-04 23:38:17 +00:00
|
|
|
BF_JPEG_LIB = 'libjpeg'
|
2006-03-13 11:42:49 +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-03-13 11:42:49 +00:00
|
|
|
BF_PNG_INC = '${BF_PNG}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_PNG_LIB = 'png'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_PNG_LIBPATH = '${BF_PNG}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-02-01 18:39:41 +00:00
|
|
|
WITH_BF_TIFF = True
|
2010-05-24 12:41:14 +00:00
|
|
|
BF_TIFF = LIBDIR + '/gcc/tiff'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_TIFF_INC = '${BF_TIFF}/include'
|
2010-05-24 16:07:17 +00:00
|
|
|
BF_TIFF_LIB = 'tiff'
|
2010-02-01 18:39:41 +00:00
|
|
|
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-08-22 13:04:07 +00:00
|
|
|
BF_ZLIB = LIBDIR + '/zlib'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_ZLIB_INC = '${BF_ZLIB}/include'
|
2010-06-04 23:38:17 +00:00
|
|
|
BF_ZLIB_LIB = 'libz'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_INTERNATIONAL = True
|
2006-02-05 12:27:49 +00:00
|
|
|
|
2010-02-01 18:39:41 +00:00
|
|
|
BF_GETTEXT = LIBDIR + '/gcc/gettext'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_GETTEXT_INC = '${BF_GETTEXT}/include'
|
2010-02-01 18:39:41 +00:00
|
|
|
BF_GETTEXT_LIB = 'intl'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-02-01 18:39:41 +00:00
|
|
|
WITH_BF_GAMEENGINE = True
|
2009-07-31 02:35:56 +00:00
|
|
|
WITH_BF_PLAYER = False
|
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'
|
|
|
|
|
2008-12-14 17:32:24 +00:00
|
|
|
BF_WINTAB = LIBDIR + '/wintab'
|
|
|
|
BF_WINTAB_INC = '${BF_WINTAB}/INCLUDE'
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
# enable freetype2 support for text objects
|
2010-02-01 18:39:41 +00:00
|
|
|
BF_WITH_FREETYPE = True
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_FREETYPE = LIBDIR + '/gcc/freetype'
|
2006-03-13 11:42:49 +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-03-13 11:42:49 +00:00
|
|
|
BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_QUICKTIME = False # -DWITH_QUICKTIME
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_QUICKTIME = '/usr/local'
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_QUICKTIME_INC = '${BF_QUICKTIME}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
WITH_BF_ICONV = False
|
2010-02-01 18:39:41 +00:00
|
|
|
BF_ICONV = LIBDIR + "/gcc/iconv"
|
2006-11-09 15:45:19 +00:00
|
|
|
BF_ICONV_INC = '${BF_ICONV}/include'
|
|
|
|
BF_ICONV_LIB = 'iconv'
|
|
|
|
BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
|
|
|
|
|
2010-02-01 18:39:41 +00:00
|
|
|
WITH_BF_BINRELOC = False
|
|
|
|
|
|
|
|
# enable ffmpeg support
|
|
|
|
WITH_BF_FFMPEG = True # -DWITH_FFMPEG
|
|
|
|
BF_FFMPEG = LIBDIR + '/ffmpeg'
|
|
|
|
BF_FFMPEG_LIB = 'avformat-52 avcodec-52 avdevice-52 avutil-50 swscale-0'
|
|
|
|
BF_FFMPEG_INC = '${BF_FFMPEG}/include'
|
|
|
|
BF_FFMPEG_LIBPATH = '${BF_FFMPEG}/lib'
|
|
|
|
|
|
|
|
WITH_BF_OPENJPEG = True
|
|
|
|
BF_OPENJPEG = '#extern/libopenjpeg'
|
|
|
|
BF_OPENJPEG_LIB = ''
|
|
|
|
BF_OPENJPEG_INC = '${BF_OPENJPEG}'
|
|
|
|
BF_OPENJPEG_LIBPATH='${BF_OPENJPEG}/lib'
|
|
|
|
|
|
|
|
WITH_BF_FFTW3 = False
|
|
|
|
BF_FFTW3 = LIBDIR + '/gcc/fftw3'
|
|
|
|
BF_FFTW3_INC = '${BF_FFTW3}/include'
|
|
|
|
BF_FFTW3_LIB = 'fftw3'
|
|
|
|
BF_FFTW3_LIBPATH = '${BF_FFTW3}/lib'
|
|
|
|
|
|
|
|
WITH_BF_REDCODE = False
|
|
|
|
BF_REDCODE_INC = '#extern'
|
|
|
|
|
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 = False
|
2006-03-13 11:42:49 +00:00
|
|
|
BF_OPENGL = 'C:\\MingW'
|
|
|
|
BF_OPENGL_INC = '${BF_OPENGL}/include'
|
|
|
|
BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
|
|
|
|
BF_OPENGL_LIB = 'opengl32 glu32'
|
2010-06-04 07:17:12 +00:00
|
|
|
BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a']
|
2006-03-13 11:42:49 +00:00
|
|
|
|
2010-06-09 14:04:34 +00:00
|
|
|
WITH_BF_OPENMP = False
|
2010-02-01 18:39:41 +00:00
|
|
|
BF_OPENMP = LIBDIR + '/gcc/gomp'
|
|
|
|
BF_OPENMP_INC = '${BF_OPENMP}/include'
|
|
|
|
BF_OPENMP_LIBPATH = '${BF_OPENMP}/lib'
|
|
|
|
|
|
|
|
WITH_BF_COLLADA = False
|
|
|
|
BF_COLLADA = '#source/blender/collada'
|
|
|
|
BF_COLLADA_INC = '${BF_COLLADA}'
|
|
|
|
BF_COLLADA_LIB = 'bf_collada'
|
|
|
|
|
|
|
|
BF_OPENCOLLADA = LIBDIR + '/gcc/opencollada'
|
|
|
|
BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include'
|
|
|
|
BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver expat pcre buffer ftoa'
|
|
|
|
BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib ${BF_ICONV_LIBPATH}'
|
|
|
|
|
|
|
|
#Ray trace optimization
|
2010-06-24 15:54:01 +00:00
|
|
|
WITH_BF_RAYOPTIMIZATION = True
|
2010-02-01 18:39:41 +00:00
|
|
|
BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse']
|
|
|
|
|
2006-03-13 11:42:49 +00:00
|
|
|
CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
|
|
|
|
|
2010-11-04 17:02:25 +00:00
|
|
|
CPPFLAGS = ['-DWIN32', '-DFREE_WINDOWS', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE64_SOURCE']
|
2010-02-01 18:39:41 +00:00
|
|
|
CXXFLAGS = ['-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
|
2006-03-13 11:42:49 +00:00
|
|
|
REL_CFLAGS = [ '-O2' ]
|
|
|
|
REL_CCFLAGS = [ '-O2' ]
|
2010-12-03 12:30:59 +00:00
|
|
|
C_WARN = ['-Wall', '-Wstrict-prototypes', '-Wno-char-subscripts', '-Wdeclaration-after-statement']
|
2006-03-13 11:42:49 +00:00
|
|
|
|
|
|
|
CC_WARN = [ '-Wall' ]
|
|
|
|
|
2010-07-19 09:19:54 +00:00
|
|
|
LLIBS = [ '-ldxguid', '-lgdi32', '-lmsvcrt', '-lwinmm', '-lmingw32', '-lm', '-lws2_32', '-lz', '-lstdc++', '-luuid', '-lole32'] #'-lutil', '-lc', '-lm', '-ldl', '-lpthread' ]
|
2006-03-13 11:42:49 +00:00
|
|
|
|
2008-11-07 19:21:52 +00:00
|
|
|
BF_DEBUG = False
|
2010-10-18 11:21:22 +00:00
|
|
|
BF_DEBUG_CCFLAGS = ['-g', '-DDEBUG']
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-12-14 17:32:24 +00:00
|
|
|
BF_PROFILE = False
|
|
|
|
BF_PROFILE_CCFLAGS = ['-pg','-g']
|
|
|
|
BF_PROFILE_LINKFLAGS = ['-pg']
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_BUILDDIR = '../build/linuxcross'
|
|
|
|
BF_INSTALLDIR='../install/linuxcross'
|