forked from bartvdbraak/blender
Added 2 options to the Makefiles (enable in environment, user-def.mk,
or whatever): NAN_NO_KETSJI: when set to true, disables compilation of the game engine. NAN_JUST_BLENDERDYNAMIC: when set to true, only dynamic executable is build (i.e., no plugin, etc). Note that NAN_NO_KETSJI implies NAN_JUST_BLENDERDYNAMIC.
This commit is contained in:
parent
86108b3665
commit
5b90aafbd6
@ -38,7 +38,11 @@ endif
|
||||
|
||||
include nan_definitions.mk
|
||||
|
||||
DIRS = creator blender kernel gameengine
|
||||
DIRS = creator blender kernel
|
||||
|
||||
ifneq ($(NAN_NO_KETSJI),true)
|
||||
DIRS += gameengine
|
||||
endif
|
||||
|
||||
ifeq ($(OS),windows)
|
||||
DIRS += icons
|
||||
@ -98,6 +102,7 @@ PYPLAYERLIB ?= $(PYLIB)
|
||||
COMLIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a
|
||||
COMLIB += $(OCGDIR)/blender/avi/$(DEBUG_DIR)libavi.a
|
||||
COMLIB += $(NAN_JPEG)/lib/libjpeg.a
|
||||
ifneq ($(NAN_NO_KETSJI),true)
|
||||
COMLIB += $(OCGDIR)/gameengine/bloutines/$(DEBUG_DIR)libbloutines.a
|
||||
COMLIB += $(OCGDIR)/gameengine/blconverter/$(DEBUG_DIR)libblconverter.a
|
||||
COMLIB += $(OCGDIR)/gameengine/blphys/common/$(DEBUG_DIR)libcommon.a
|
||||
@ -131,6 +136,7 @@ PYPLAYERLIB ?= $(PYLIB)
|
||||
COMLIB += $(OCGDIR)/gameengine/ketsji/KXNetwork/$(DEBUG_DIR)libKXNetwork.a
|
||||
COMLIB += $(OCGDIR)/gameengine/Network/$(DEBUG_DIR)libNetwork.a
|
||||
COMLIB += $(OCGDIR)/gameengine/Network/LoopBackNetwork/$(DEBUG_DIR)libLoopBackNetwork.a
|
||||
endif
|
||||
COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
|
||||
COMLIB += $(NAN_BMFONT)/lib/$(DEBUG_DIR)libbmfont.a
|
||||
COMLIB += $(NAN_PNG)/lib/libpng.a
|
||||
@ -207,6 +213,13 @@ endif
|
||||
PULIB += $(OCGDIR)/blender/readstreamglue/$(DEBUG_DIR)libreadstreamglue.a # KEY_dependkludge fix.. Remove me
|
||||
PULIB += $(OCGDIR)/blender/src/$(DEBUG_DIR)libsrcpublisher.a
|
||||
|
||||
ifeq ($(NAN_NO_KETSJI),true)
|
||||
PULIB += $(NAN_MOTO)/lib/libmoto.a
|
||||
PULIB += $(OCGDIR)/kernel/gen_system/$(DEBUG_DIR)libgen_system.a
|
||||
PULIB += $(OCGDIR)/kernel/gen_messaging/$(DEBUG_DIR)libgen_messaging.a
|
||||
COMLIB += $(NAN_SND_LIBS)
|
||||
endif
|
||||
|
||||
SPLIB1 = $(OCGDIR)/gameengine/GamePlayer/ghost/$(DEBUG_DIR)libghost.a
|
||||
SPLIB1 += $(OCGDIR)/gameengine/GamePlayer/common/$(DEBUG_DIR)libcommon.a
|
||||
SPLIB1 += $(NAN_STRING)/lib/$(DEBUG_DIR)libstring.a
|
||||
@ -447,6 +460,15 @@ ifeq ($(OS),windows)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(NAN_JUST_BLENDERDYNAMIC),true)
|
||||
ifeq ($(OS),darwin)
|
||||
BINTARGETS = blenderdynamic.app
|
||||
else
|
||||
BINTARGETS = blenderdynamic
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
# prepare for NAN_BUILDINFO compile at the *sigh* link rules below
|
||||
|
||||
ifdef NAN_BUILDINFO
|
||||
|
@ -369,6 +369,7 @@ static void restore_all_scene_cfra(LinkNode *storelist) {
|
||||
void start_game(void)
|
||||
{
|
||||
#if GAMEBLENDER == 1
|
||||
#ifndef NAN_NO_KETSJI
|
||||
Scene *sc, *startscene = G.scene;
|
||||
LinkNode *scene_cfra_store;
|
||||
|
||||
@ -426,6 +427,7 @@ void start_game(void)
|
||||
allqueue(REDRAWACTION, 0);
|
||||
allspace(REMAKEIPO, 0);
|
||||
allqueue(REDRAWIPO, 0);
|
||||
#endif
|
||||
#else
|
||||
notice("Game engine is disabled in this release!");
|
||||
#endif
|
||||
|
@ -38,6 +38,10 @@ DIR = $(OCGDIR)/gameengine
|
||||
DIRS = BlenderRoutines
|
||||
DIRS += Converter
|
||||
DIRS += Expressions GameLogic Ketsji Rasterizer SceneGraph
|
||||
DIRS += Network GamePlayer Physics
|
||||
DIRS += Network Physics
|
||||
|
||||
ifneq ($(NAN_JUST_BLENDERDYNAMIC),true)
|
||||
DIRS += GamePlayer
|
||||
endif
|
||||
|
||||
include nan_subdirs.mk
|
||||
|
@ -50,6 +50,12 @@ REL_CCFLAGS += -DNDEBUG
|
||||
DBG_CFLAGS += -g
|
||||
DBG_CCFLAGS += -g
|
||||
|
||||
# Is the game engine getting you down? ---------------------------------
|
||||
|
||||
ifeq ($(NAN_NO_KETSJI), true)
|
||||
CPPFLAGS += -DNO_KETSJI
|
||||
endif
|
||||
|
||||
# OS dependent parts ---------------------------------------------------
|
||||
|
||||
ifeq ($(OS),beos)
|
||||
|
@ -467,6 +467,7 @@ all debug::
|
||||
# enable freetype2 support for text objects
|
||||
#export WITH_FREETYPE2 ?= true
|
||||
endif
|
||||
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
@ -475,3 +476,9 @@ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Don't want to build the gameengine?
|
||||
ifeq ($(NAN_NO_KETSJI), true)
|
||||
export NAN_JUST_BLENDERDYNAMIC=true
|
||||
export NAN_NO_OPENAL=true
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user