Building the game engine with Solid/Sumo is now optional for scons using WITH_BF_SOLID.
Now Sumo is has been deprecated for a while we might want to remove it for 2.5.
This commit is contained in:
parent
c77af31166
commit
7fffb0b630
@ -280,6 +280,7 @@ if 'blenderlite' in B.targets:
|
||||
env['WITH_BF_PNG'] = False
|
||||
env['WITH_BF_ODE'] = False
|
||||
env['WITH_BF_BULLET'] = False
|
||||
env['WITH_BF_SOLID'] = False
|
||||
env['WITH_BF_BINRELOC'] = False
|
||||
env['BF_BUILDINFO'] = False
|
||||
env['BF_NO_ELBEEM'] = True
|
||||
|
4
extern/SConscript
vendored
4
extern/SConscript
vendored
@ -5,8 +5,8 @@ Import('env')
|
||||
SConscript(['glew/SConscript'])
|
||||
|
||||
if env['WITH_BF_GAMEENGINE']:
|
||||
SConscript(['qhull/SConscript',
|
||||
'solid/SConscript'])
|
||||
if env['WITH_BF_SOLID']:
|
||||
SConscript(['qhull/SConscript', 'solid/SConscript'])
|
||||
|
||||
if env['WITH_BF_BULLET']:
|
||||
SConscript(['bullet2/src/SConscript'])
|
||||
|
@ -70,7 +70,9 @@ if env['WITH_BF_ICONV']:
|
||||
|
||||
if env['WITH_BF_GAMEENGINE']:
|
||||
defs.append('GAMEBLENDER=1')
|
||||
|
||||
if env['WITH_BF_SOLID']:
|
||||
defs.append('USE_SUMO_SOLID')
|
||||
|
||||
if env['WITH_BF_FFMPEG']:
|
||||
defs.append('WITH_FFMPEG')
|
||||
incs += ' ' + env['BF_FFMPEG_INC']
|
||||
|
@ -2,6 +2,7 @@
|
||||
Import ('env')
|
||||
|
||||
sources = env.Glob('*.cpp')
|
||||
defs = []
|
||||
|
||||
incs = '. #source/kernel/gen_system #intern/string #intern/guardedalloc'
|
||||
incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #intern/bmfont'
|
||||
@ -12,13 +13,17 @@ incs += ' #source/blender/blenkernel #source/blender #source/blender/include'
|
||||
incs += ' #source/blender/makesdna #source/gameengine/Rasterizer #source/gameengine/GameLogic'
|
||||
incs += ' #source/gameengine/Expressions #source/gameengine/Network'
|
||||
incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common'
|
||||
incs += ' #source/gameengine/Physics/Bullet #source/gameengine/Physics/Sumo'
|
||||
incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
|
||||
incs += ' #source/gameengine/Physics/Bullet'
|
||||
incs += ' #source/gameengine/Network/LoopBackNetwork'
|
||||
incs += ' #intern/SoundSystem #source/blender/misc #source/blender/blenloader'
|
||||
incs += ' #extern/glew/include #source/blender/gpu'
|
||||
|
||||
if env['WITH_BF_SOLID']:
|
||||
incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/Fuzzics/include'
|
||||
incs += ' ' + env['BF_SOLID_INC']
|
||||
defs.append('USE_SUMO_SOLID')
|
||||
|
||||
incs += ' ' + env['BF_PYTHON_INC']
|
||||
incs += ' ' + env['BF_SOLID_INC']
|
||||
incs += ' ' + env['BF_BULLET_INC']
|
||||
incs += ' ' + env['BF_OPENGL_INC']
|
||||
|
||||
@ -27,4 +32,4 @@ if env['OURPLATFORM']=='win32-vc':
|
||||
cxxflags.append ('/GR')
|
||||
cxxflags.append ('/O2')
|
||||
|
||||
env.BlenderLib ( 'bf_bloutines', sources, Split(incs), [], libtype=['game', 'game2', 'player'], priority=[0, 0, 55] , cxx_compileflags=cxxflags)
|
||||
env.BlenderLib ( 'bf_bloutines', sources, Split(incs), defs, libtype=['game', 'game2', 'player'], priority=[0, 0, 55] , cxx_compileflags=cxxflags)
|
||||
|
@ -2,6 +2,7 @@
|
||||
Import ('env')
|
||||
|
||||
sources = env.Glob('*.cpp')
|
||||
defs = []
|
||||
|
||||
incs = '. #source/kernel/gen_system #intern/string #intern/guardedalloc'
|
||||
incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #intern/bmfont'
|
||||
@ -14,12 +15,16 @@ incs += ' #source/blender/include #source/blender/makesdna #source/gameengine/Ra
|
||||
incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #source/gameengine/GameLogic'
|
||||
incs += ' #source/gameengine/Expressions #source/gameengine/Network #source/gameengine/SceneGraph'
|
||||
incs += ' #source/gameengine/Physics/common #source/gameengine/Physics/Bullet #source/gameengine/Physics/BlOde'
|
||||
incs += ' #source/gameengine/Physics/Dummy #source/gameengine/Physics/Sumo'
|
||||
incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
|
||||
incs += ' #source/gameengine/Physics/Dummy'
|
||||
incs += ' #source/gameengine/Network/LoopBackNetwork'
|
||||
incs += ' #source/blender/misc #source/blender/blenloader #source/blender/gpu'
|
||||
|
||||
if env['WITH_BF_SOLID']:
|
||||
incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/Fuzzics/include'
|
||||
incs += ' ' + env['BF_SOLID_INC']
|
||||
defs.append('USE_SUMO_SOLID')
|
||||
|
||||
incs += ' ' + env['BF_PYTHON_INC']
|
||||
incs += ' ' + env['BF_SOLID_INC']
|
||||
incs += ' ' + env['BF_BULLET_INC']
|
||||
|
||||
env.BlenderLib ( 'bf_converter', sources, Split(incs), [], libtype=['game','player'], priority=[5,70] )
|
||||
env.BlenderLib ( 'bf_converter', sources, Split(incs), defs, libtype=['game','player'], priority=[5,70] )
|
||||
|
@ -39,15 +39,13 @@ incs = ['.',
|
||||
'#source/gameengine/Network',
|
||||
'#source/gameengine/SceneGraph',
|
||||
'#source/gameengine/Physics/common',
|
||||
'#source/gameengine/Physics/Sumo',
|
||||
'#source/gameengine/Physics/Sumo/Fuzzics/include',
|
||||
'#source/gameengine/Network/LoopBackNetwork',
|
||||
'#source/gameengine/GamePlayer/ghost',
|
||||
'#source/blender/misc',
|
||||
'#source/blender/blenloader',
|
||||
'#source/blender/gpu',
|
||||
'#extern/glew/include']
|
||||
|
||||
|
||||
#This is all plugin stuff!
|
||||
#if sys.platform=='win32':
|
||||
# source_files += ['windows/GPW_Canvas.cpp',
|
||||
@ -62,8 +60,12 @@ incs = ['.',
|
||||
# 'unix/GPU_System.cpp']
|
||||
# gp_common_env.Append ( CPPPATH = ['unix'])
|
||||
|
||||
if env['WITH_BF_SOLID']:
|
||||
incs.append('#source/gameengine/Physics/Sumo')
|
||||
incs.append('#source/gameengine/Physics/Sumo/Fuzzics/include')
|
||||
incs += Split(env['BF_SOLID_INC'])
|
||||
|
||||
incs += Split(env['BF_PYTHON_INC'])
|
||||
incs += Split(env['BF_SOLID_INC'])
|
||||
incs += Split(env['BF_PNG_INC'])
|
||||
incs += Split(env['BF_ZLIB_INC'])
|
||||
|
||||
|
@ -34,8 +34,6 @@ incs = ['.',
|
||||
'#source/gameengine/Network',
|
||||
'#source/gameengine/SceneGraph',
|
||||
'#source/gameengine/Physics/common',
|
||||
'#source/gameengine/Physics/Sumo',
|
||||
'#source/gameengine/Physics/Sumo/Fuzzics/include',
|
||||
'#source/gameengine/Network/LoopBackNetwork',
|
||||
'#source/gameengine/GamePlayer/common',
|
||||
'#source/blender/misc',
|
||||
@ -43,8 +41,11 @@ incs = ['.',
|
||||
'#source/blender/gpu',
|
||||
'#extern/glew/include']
|
||||
|
||||
if env['WITH_BF_SOLID']:
|
||||
incs.append(['#source/gameengine/Physics/Sumo', '#source/gameengine/Physics/Sumo/Fuzzics/include'])
|
||||
incs += Split(env['BF_SOLID_INC'])
|
||||
|
||||
incs += Split(env['BF_PYTHON_INC'])
|
||||
incs += Split(env['BF_SOLID_INC'])
|
||||
|
||||
cxxflags = []
|
||||
if env['OURPLATFORM']=='win32-vc':
|
||||
|
@ -29,7 +29,10 @@
|
||||
#ifndef __KX_CLIENTOBJECT_INFO_H
|
||||
#define __KX_CLIENTOBJECT_INFO_H
|
||||
|
||||
/* Note, the way this works with/without sumo is a bit odd */
|
||||
#ifdef USE_SUMO_SOLID
|
||||
#include <SM_Object.h>
|
||||
#endif //USE_SUMO_SOLID
|
||||
|
||||
#include <list>
|
||||
|
||||
@ -38,7 +41,10 @@ class KX_GameObject;
|
||||
/**
|
||||
* Client Type and Additional Info. This structure can be use instead of a bare void* pointer, for safeness, and additional info for callbacks
|
||||
*/
|
||||
struct KX_ClientObjectInfo : public SM_ClientObject
|
||||
struct KX_ClientObjectInfo
|
||||
#ifdef USE_SUMO_SOLID
|
||||
: public SM_ClientObject
|
||||
#endif
|
||||
{
|
||||
enum clienttype {
|
||||
STATIC,
|
||||
@ -52,14 +58,18 @@ struct KX_ClientObjectInfo : public SM_ClientObject
|
||||
std::list<SCA_ISensor*> m_sensors;
|
||||
public:
|
||||
KX_ClientObjectInfo(KX_GameObject *gameobject, clienttype type = STATIC, void *auxilary_info = NULL) :
|
||||
#ifdef USE_SUMO_SOLID
|
||||
SM_ClientObject(),
|
||||
#endif
|
||||
m_type(type),
|
||||
m_gameobject(gameobject),
|
||||
m_auxilary_info(auxilary_info)
|
||||
{}
|
||||
|
||||
KX_ClientObjectInfo(const KX_ClientObjectInfo ©)
|
||||
: SM_ClientObject(copy),
|
||||
KX_ClientObjectInfo(const KX_ClientObjectInfo ©) :
|
||||
#ifdef USE_SUMO_SOLID
|
||||
SM_ClientObject(copy),
|
||||
#endif
|
||||
m_type(copy.m_type),
|
||||
m_gameobject(copy.m_gameobject),
|
||||
m_auxilary_info(copy.m_auxilary_info)
|
||||
|
@ -32,7 +32,7 @@
|
||||
/* These are defined by the build system... */
|
||||
//but the build system is broken, because it doesn't allow for 2 or more defines at once.
|
||||
//Please leave Sumo _AND_ Bullet enabled
|
||||
#define USE_SUMO_SOLID
|
||||
//#define USE_SUMO_SOLID // scons defines this
|
||||
#define USE_BULLET
|
||||
|
||||
//#define USE_ODE
|
||||
|
@ -59,7 +59,10 @@
|
||||
#include "KX_PythonInit.h"
|
||||
#include "KX_PyConstraintBinding.h"
|
||||
#include "PHY_IPhysicsEnvironment.h"
|
||||
|
||||
#ifdef USE_SUMO_SOLID
|
||||
#include "SumoPhysicsEnvironment.h"
|
||||
#endif
|
||||
|
||||
#include "SND_Scene.h"
|
||||
#include "SND_IAudioDevice.h"
|
||||
|
@ -37,7 +37,6 @@
|
||||
#include "PHY_IPhysicsEnvironment.h"
|
||||
#include "PHY_IPhysicsController.h"
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
@ -272,7 +271,7 @@ bool KX_NearSensor::NewHandleCollision(void* obj1,void* obj2,const PHY_CollData
|
||||
//}
|
||||
}
|
||||
|
||||
return DT_CONTINUE;
|
||||
return false; // was DT_CONTINUE; but this was defined in Sumo as false
|
||||
}
|
||||
|
||||
|
||||
|
@ -34,7 +34,9 @@
|
||||
#include "SCA_LogicManager.h"
|
||||
#include "KX_GameObject.h"
|
||||
#include "KX_TouchEventManager.h"
|
||||
#include "KX_SumoPhysicsController.h"
|
||||
|
||||
#include "PHY_IPhysicsController.h"
|
||||
|
||||
#include <iostream>
|
||||
#include "PHY_IPhysicsEnvironment.h"
|
||||
|
||||
@ -214,7 +216,7 @@ bool KX_TouchSensor::NewHandleCollision(void*object1,void*object2,const PHY_Coll
|
||||
}
|
||||
|
||||
}
|
||||
return DT_CONTINUE;
|
||||
return false; // was DT_CONTINUE but this was defined in sumo as false.
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,11 +31,15 @@ incs += ' #source/blender/makesdna #source/blender/python #source/gameengine/Ras
|
||||
incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions #source/gameengine/Network'
|
||||
incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
|
||||
incs += ' #source/gameengine/Physics/BlOde #source/gameengine/Physics/Dummy'
|
||||
incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/include'
|
||||
incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
|
||||
incs += ' #source/blender/misc #source/blender/blenloader #extern/glew/include #source/blender/gpu'
|
||||
|
||||
incs += ' ' + env['BF_SOLID_INC']
|
||||
if env['WITH_BF_SOLID']:
|
||||
incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/include'
|
||||
incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
|
||||
incs += ' ' + env['BF_SOLID_INC']
|
||||
defs += ' USE_SUMO_SOLID'
|
||||
|
||||
|
||||
incs += ' ' + env['BF_PYTHON_INC']
|
||||
incs += ' ' + env['BF_BULLET_INC']
|
||||
incs += ' ' + env['BF_OPENGL_INC']
|
||||
|
@ -15,10 +15,12 @@ SConscript(['BlenderRoutines/SConscript',
|
||||
'Rasterizer/RAS_OpenGLRasterizer/SConscript',
|
||||
'SceneGraph/SConscript',
|
||||
'Physics/Bullet/SConscript',
|
||||
'Physics/Sumo/SConscript',
|
||||
'VideoTexture/SConscript'
|
||||
])
|
||||
|
||||
if env['WITH_BF_SOLID']:
|
||||
SConscript(['Physics/Sumo/SConscript'])
|
||||
|
||||
if env['WITH_BF_PLAYER']:
|
||||
SConscript(['GamePlayer/SConscript'])
|
||||
|
||||
|
@ -44,7 +44,7 @@ def validate_arguments(args, bc):
|
||||
'BF_GETTEXT', 'BF_GETTEXT_INC', 'BF_GETTEXT_LIB', 'BF_GETTEXT_LIBPATH',
|
||||
'WITH_BF_ICONV', 'BF_ICONV', 'BF_ICONV_INC', 'BF_ICONV_LIB', 'BF_ICONV_LIBPATH',
|
||||
'WITH_BF_ODE', 'BF_ODE', 'BF_ODE_INC', 'BF_ODE_LIB',
|
||||
'WITH_BF_GAMEENGINE', 'WITH_BF_BULLET', 'BF_BULLET', 'BF_BULLET_INC', 'BF_BULLET_LIB',
|
||||
'WITH_BF_GAMEENGINE', 'WITH_BF_SOLID', 'WITH_BF_BULLET', 'BF_BULLET', 'BF_BULLET_INC', 'BF_BULLET_LIB',
|
||||
'BF_SOLID', 'BF_SOLID_INC', 'BF_WINTAB', 'BF_WINTAB_INC',
|
||||
'WITH_BF_YAFRAY',
|
||||
'WITH_BF_FREETYPE', 'BF_FREETYPE', 'BF_FREETYPE_INC', 'BF_FREETYPE_LIB', 'BF_FREETYPE_LIBPATH',
|
||||
@ -276,6 +276,7 @@ def read_opts(cfg, args):
|
||||
('BF_BULLET_INC', 'Bullet include path', ''),
|
||||
('BF_BULLET_LIB', 'Bullet library', ''),
|
||||
|
||||
(BoolVariable('WITH_BF_SOLID', 'Use Sumo/Solid deprecated physics system if true', True)),
|
||||
('BF_SOLID', 'Solid base dir', '#/extern/solid'),
|
||||
('BF_SOLID_INC', 'Solid include path', ''),
|
||||
('BF_WINTAB', 'WinTab base dir', ''),
|
||||
|
Loading…
Reference in New Issue
Block a user