2006-02-04 14:15:10 +00:00
|
|
|
LCGDIR = '#../lib/windows'
|
2006-08-22 13:04:07 +00:00
|
|
|
LIBDIR = '${LCGDIR}'
|
|
|
|
|
2006-09-05 08:36:42 +00:00
|
|
|
WITH_BF_VERSE = 'false'
|
2006-10-11 07:28:37 +00:00
|
|
|
BF_VERSE_INCLUDE = "#extern/verse/dist"
|
2006-08-22 13:04:07 +00:00
|
|
|
|
|
|
|
BF_PYTHON = LIBDIR + '/python'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_PYTHON_VERSION = '2.4'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_PYTHON_BINARY = 'python'
|
|
|
|
BF_PYTHON_LIB = 'python24'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_OPENAL = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_OPENAL = LIBDIR + '/openal'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_OPENAL_INC = '${BF_OPENAL}/include ${BF_OPENAL}/include/AL '
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_OPENAL_LIB = 'openal_static'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_ICONV = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_ICONV = LIBDIR + '/iconv'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_ICONV_INC = '${BF_ICONV}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_ICONV_LIB = 'iconv'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_ICONV_LIBPATH = '${BF_ICONV}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_SDL = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_SDL = LIBDIR + '/sdl'
|
2006-02-05 17:58:08 +00:00
|
|
|
BF_SDL_INC = '${BF_SDL}/include'
|
|
|
|
BF_SDL_LIB = 'SDL.lib'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_SDL_LIBPATH = '${BF_SDL}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_PTHREADS = LIBDIR + '/pthreads'
|
2006-02-25 14:53:27 +00:00
|
|
|
BF_PTHREADS_INC = '${BF_PTHREADS}/include'
|
|
|
|
BF_PTHREADS_LIB = 'pthreadVC2'
|
|
|
|
BF_PTHREADS_LIBPATH = '${BF_PTHREADS}/lib'
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
WITH_BF_FMOD = 'false'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_FMOD = LIBDIR + '/fmod'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_OPENEXR = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_OPENEXR = LIBDIR + '/openexr'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/IlmImf ${BF_OPENEXR}/include/Iex ${BF_OPENEXR}/include/Imath '
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_OPENEXR_LIB = ' Iex Half IlmImf Imath '
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_OPENEXR_LIBPATH = '${BF_OPENEXR}/lib_msvc'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_JPEG = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_JPEG = LIBDIR + '/jpeg'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_JPEG_INC = '${BF_JPEG}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_JPEG_LIB = 'libjpeg'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_JPEG_LIBPATH = '${BF_JPEG}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_PNG = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_PNG = LIBDIR + '/png'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_PNG_INC = '${BF_PNG}/include'
|
2006-03-16 19:16:26 +00:00
|
|
|
BF_PNG_LIB = 'libpng_st'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_PNG_LIBPATH = '${BF_PNG}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_TIFF = LIBDIR + '/tiff'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_TIFF_INC = '${BF_TIFF}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_ZLIB = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_ZLIB = LIBDIR + '/zlib'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_ZLIB_INC = '${BF_ZLIB}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_ZLIB_LIB = 'libz'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_ZLIB_LIBPATH = '${BF_ZLIB}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-02-05 12:27:49 +00:00
|
|
|
WITH_BF_INTERNATIONAL = 'true'
|
|
|
|
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_GETTEXT = LIBDIR + '/gettext'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_GETTEXT_INC = '${BF_GETTEXT}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_GETTEXT_LIB = 'gnu_gettext'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_GETTEXT_LIBPATH = '${BF_GETTEXT}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_FTGL = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_FTGL = LIBDIR + '/ftgl'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_FTGL_INC = '${BF_FTGL}/include'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_FTGL_LIB = 'extern_ftgl'
|
|
|
|
|
|
|
|
WITH_BF_GAMEENGINE = 'true'
|
|
|
|
|
|
|
|
WITH_BF_ODE = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_ODE = LIBDIR + '/ode'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_ODE_INC = BF_ODE + '/include'
|
|
|
|
BF_ODE_LIB = BF_ODE + '/lib/libode.a'
|
|
|
|
|
|
|
|
WITH_BF_BULLET = 'true'
|
|
|
|
BF_BULLET = '#extern/bullet'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_BULLET_INC = '${BF_BULLET}/LinearMath ${BF_BULLET}/BulletDynamics ${BF_BULLET}/Bullet'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_BULLET_LIB = 'extern_bullet'
|
|
|
|
|
|
|
|
BF_SOLID = '#extern/solid'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_SOLID_INC = '${BF_SOLID}'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_SOLID_LIB = 'extern_solid'
|
|
|
|
|
2006-10-18 05:45:47 +00:00
|
|
|
WITH_BF_YAFRAY = 'true'
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
#WITH_BF_NSPR = 'true'
|
2006-08-22 13:04:07 +00:00
|
|
|
#BF_NSPR = $(LIBDIR)/nspr
|
2006-02-04 14:15:10 +00:00
|
|
|
#BF_NSPR_INC = -I$(BF_NSPR)/include -I$(BF_NSPR)/include/nspr
|
|
|
|
#BF_NSPR_LIB =
|
|
|
|
|
|
|
|
# Uncomment the following line to use Mozilla inplace of netscape
|
|
|
|
#CPPFLAGS += -DMOZ_NOT_NET
|
|
|
|
# Location of MOZILLA/Netscape header files...
|
2006-08-22 13:04:07 +00:00
|
|
|
#BF_MOZILLA = $(LIBDIR)/mozilla
|
2006-02-04 14:15:10 +00:00
|
|
|
#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
|
|
|
|
#BF_MOZILLA_LIB =
|
|
|
|
# Will fall back to look in BF_MOZILLA_INC/nspr and BF_MOZILLA_LIB
|
|
|
|
# if this is not set.
|
|
|
|
#
|
|
|
|
# Be paranoid regarding library creation (do not update archives)
|
|
|
|
#BF_PARANOID = 'true'
|
|
|
|
|
|
|
|
# enable freetype2 support for text objects
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_FREETYPE = LIBDIR + '/freetype'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_FREETYPE_INC = '${BF_FREETYPE}/include ${BF_FREETYPE}/include/freetype2'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_FREETYPE_LIB = 'freetype2ST'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_FREETYPE_LIBPATH = '${BF_FREETYPE}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
WITH_BF_QUICKTIME = 'true' # -DWITH_QUICKTIME
|
2006-08-22 13:04:07 +00:00
|
|
|
BF_QUICKTIME = LIBDIR + '/QTDevWin'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_QUICKTIME_INC = '${BF_QUICKTIME}/CIncludes'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_QUICKTIME_LIB = 'qtmlClient'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_QUICKTIME_LIBPATH = '${BF_QUICKTIME}/Libraries'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-02-21 14:24:08 +00:00
|
|
|
WITH_BF_STATICOPENGL = 'false'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_OPENGL_INC = '${BF_OPENGL}/include'
|
|
|
|
BF_OPENGL_LIBINC = '${BF_OPENGL}/lib'
|
2006-02-04 14:15:10 +00:00
|
|
|
BF_OPENGL_LIB = 'opengl32 glu32'
|
2006-02-05 00:47:34 +00:00
|
|
|
BF_OPENGL_LIB_STATIC = [ '${BF_OPENGL}/lib/libGL.a', '${BF_OPENGL}/lib/libGLU.a',
|
2006-02-05 17:58:08 +00:00
|
|
|
'${BF_OPENGL}/lib/libXmu.a', '${BF_OPENGL}/lib/libXext.a',
|
|
|
|
'${BF_OPENGL}/lib/libX11.a', '${BF_OPENGL}/lib/libXi.a' ]
|
2006-03-13 12:00:01 +00:00
|
|
|
CC = 'cl.exe'
|
|
|
|
CXX = 'cl.exe'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
CCFLAGS = ['/nologo', '/Og', '/Ot', '/Ob1', '/Op', '/G6','/EHsc', '/J', '/W3', '/Gd', '/MT']
|
|
|
|
|
2006-10-19 12:35:39 +00:00
|
|
|
BF_DEBUG_FLAGS = ['/Zi', '/FR${TARGET.base}.sbr']
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-DUSE_OPENAL', '-DFTGL_LIBRARY_STATIC']
|
2006-02-04 15:44:34 +00:00
|
|
|
REL_CFLAGS = ['-O2', '-DNDEBUG']
|
|
|
|
REL_CCFLAGS = ['-O2', '-DNDEBUG']
|
2006-02-04 14:15:10 +00:00
|
|
|
C_WARN = []
|
|
|
|
CC_WARN = []
|
|
|
|
|
2006-02-05 17:58:08 +00:00
|
|
|
LLIBS = 'ws2_32 dxguid vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
PLATFORM_LINKFLAGS = '''
|
|
|
|
/SUBSYSTEM:CONSOLE
|
|
|
|
/MACHINE:IX86
|
|
|
|
/ENTRY:mainCRTStartup
|
|
|
|
/INCREMENTAL:NO
|
|
|
|
/NODEFAULTLIB:"msvcprt.lib"
|
|
|
|
/NODEFAULTLIB:"glut32.lib"
|
|
|
|
/NODEFAULTLIB:"libc.lib"
|
|
|
|
/NODEFAULTLIB:"libcd.lib"
|
|
|
|
/NODEFAULTLIB:"libcpd.lib"
|
|
|
|
/NODEFAULTLIB:"libcp.lib"
|
|
|
|
/NODEFAULTLIB:"libcmtd.lib"
|
|
|
|
'''
|
|
|
|
|
|
|
|
BF_BUILDDIR = '..\\build\\win32-vc'
|
|
|
|
BF_INSTALLDIR='..\\install\\win32-vc'
|