Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extern/Makefile3
-rw-r--r--extern/bullet2/Makefile63
-rw-r--r--extern/bullet2/src/Makefile66
-rw-r--r--source/Makefile3
-rw-r--r--source/gameengine/Converter/Makefile2
-rw-r--r--source/gameengine/Ketsji/Makefile2
-rw-r--r--source/gameengine/Physics/Bullet/Makefile2
-rw-r--r--source/nan_definitions.mk7
8 files changed, 136 insertions, 12 deletions
diff --git a/extern/Makefile b/extern/Makefile
index fb5570eff4b..04b282a8926 100644
--- a/extern/Makefile
+++ b/extern/Makefile
@@ -53,7 +53,7 @@ ifeq ($(WITH_VERSE), true)
endif
ifneq ($(NAN_NO_KETSJI), true)
- DIRS += bullet
+ DIRS += bullet2
endif
TARGET =
@@ -74,4 +74,3 @@ clean test debug::
echo "====> $(MAKE) $@ in $(SOURCEDIR)/$$i" ;\
$(MAKE) -C $$i $@ || exit 1; \
done
-
diff --git a/extern/bullet2/Makefile b/extern/bullet2/Makefile
new file mode 100644
index 00000000000..e835160d14b
--- /dev/null
+++ b/extern/bullet2/Makefile
@@ -0,0 +1,63 @@
+#
+# $Id$
+#
+# ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version. The Blender
+# Foundation also sells licenses for use in proprietary software under
+# the Blender License. See http://www.blender.org/BL/ for information
+# about this.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# The Original Code is Copyright (C) 2002 by Hans Lambermont
+# All rights reserved.
+#
+# The Original Code is: all of this file.
+#
+# Contributor(s):
+#
+# ***** END GPL/BL DUAL LICENSE BLOCK *****
+LIBNAME = bullet2
+SOURCEDIR = extern/$(LIBNAME)
+DIR = $(OCGDIR)/extern/$(LIBNAME)
+DIRS = src
+DISTDIR = src
+
+BULLETDIRS = \
+LinearMath \
+BulletCollision/BroadphaseCollision \
+BulletCollision/CollisionShapes \
+BulletCollision/NarrowPhaseCollision \
+BulletCollision//CollisionDispatch \
+BulletDynamics/ConstraintSolver \
+BulletDynamics/Vehicle \
+BulletDynamics/Dynamics
+
+include nan_subdirs.mk
+
+CP = $(NANBLENDERHOME)/intern/tools/cpifdiff.sh
+
+install: all debug
+ @[ -d $(NAN_BULLET2) ] || mkdir -p $(NAN_BULLET2)
+ @[ -d $(NAN_BULLET2)/include ] || mkdir -p $(NAN_BULLET2)/include
+ @for i in $(BULLETDIRS); do \
+ [ -d $(NAN_BULLET2)/include/$$i ] || mkdir -p $(NAN_BULLET2)/include/$$i; \
+ $(CP) $(DISTDIR)/$$i/*.h $(NAN_BULLET2)/include/$$i; \
+ done
+ @[ -d $(NAN_BULLET2)/lib ] || mkdir -p $(NAN_BULLET2)/lib
+ @$(CP) $(DISTDIR)/*.h $(NAN_BULLET2)/include
+ @$(CP) $(DIR)/libbullet2.a $(NAN_BULLET2)/lib
+ifeq ($(OS),darwin)
+ ranlib $(NAN_BULLET2)/lib/libbullet2.a
+endif
diff --git a/extern/bullet2/src/Makefile b/extern/bullet2/src/Makefile
new file mode 100644
index 00000000000..78e5c60bb9f
--- /dev/null
+++ b/extern/bullet2/src/Makefile
@@ -0,0 +1,66 @@
+#
+# $Id$
+#
+# ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version. The Blender
+# Foundation also sells licenses for use in proprietary software under
+# the Blender License. See http://www.blender.org/BL/ for information
+# about this.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
+# All rights reserved.
+#
+# The Original Code is: all of this file.
+#
+# Contributor(s): none yet.
+#
+# ***** END GPL/BL DUAL LICENSE BLOCK *****
+#
+
+LIBNAME = bullet2
+DIR = $(OCGDIR)/extern/$(LIBNAME)
+
+BULLETDIRS = \
+LinearMath \
+BulletCollision/BroadphaseCollision \
+BulletCollision/CollisionShapes \
+BulletCollision/NarrowPhaseCollision \
+BulletCollision/CollisionDispatch \
+BulletDynamics/ConstraintSolver \
+BulletDynamics/Vehicle \
+BulletDynamics/Dynamics
+
+CCSRCS = $(wildcard \
+LinearMath/*.cpp \
+BulletCollision/BroadphaseCollision/*.cpp \
+BulletCollision/CollisionShapes/*.cpp \
+BulletCollision/NarrowPhaseCollision/*.cpp \
+BulletCollision/CollisionDispatch/*.cpp \
+BulletDynamics/ConstraintSolver/*.cpp \
+BulletDynamics/Vehicle/*.cpp \
+BulletDynamics/Dynamics/*.cpp)
+
+CPPFLAGS += -D_LIB -I. -IBulletCollision -IBulletDynamics -ILinearMath
+
+all debug:: objdirs
+
+include nan_compile.mk
+
+.PHONY: objdirs clean
+objdirs:
+ @for i in $(BULLETDIRS); do \
+ [ -d $(DIR)/$(DEBUG_DIR)$$i ] || mkdir -p $(DIR)/$(DEBUG_DIR)$$i; \
+ done
diff --git a/source/Makefile b/source/Makefile
index 3a15d251df0..5fc3186dd86 100644
--- a/source/Makefile
+++ b/source/Makefile
@@ -145,8 +145,7 @@ ifneq ($(NAN_NO_KETSJI),true)
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
- COMLIB += $(NAN_BULLET)/lib/libbulletdyn.a
- COMLIB += $(NAN_BULLET)/lib/libbullet.a
+ COMLIB += $(NAN_BULLET2)/lib/libbullet2.a
endif
COMLIB += $(NAN_GUARDEDALLOC)/lib/libguardedalloc.a
COMLIB += $(NAN_MEMUTIL)/lib/libmemutil.a
diff --git a/source/gameengine/Converter/Makefile b/source/gameengine/Converter/Makefile
index 9af6ae12bda..4ba34952d40 100644
--- a/source/gameengine/Converter/Makefile
+++ b/source/gameengine/Converter/Makefile
@@ -44,7 +44,7 @@ CPPFLAGS += -I$(NAN_SOUNDSYSTEM)/include
CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
CPPFLAGS += -I$(NAN_FUZZICS)/include -I$(NAN_SUMO) -I$(NAN_MOTO)/include
CPPFLAGS += -I$(NAN_SOLID)/include
-CPPFLAGS += -I$(NAN_BULLET)/include
+CPPFLAGS += -I$(NAN_BULLET2)/include
CPPFLAGS += -I../../blender
# these two needed because of blenkernel
diff --git a/source/gameengine/Ketsji/Makefile b/source/gameengine/Ketsji/Makefile
index ee0b1e42f22..f7813c80a59 100644
--- a/source/gameengine/Ketsji/Makefile
+++ b/source/gameengine/Ketsji/Makefile
@@ -45,7 +45,7 @@ CPPFLAGS += -I$(NAN_STRING)/include
CPPFLAGS += -I$(NAN_SOUNDSYSTEM)/include
CPPFLAGS += -I$(NAN_FUZZICS)/include -I$(NAN_SUMO) -I$(NAN_MOTO)/include
CPPFLAGS += -I$(NAN_SOLID)/include
-CPPFLAGS += -I$(NAN_BULLET)/include
+CPPFLAGS += -I$(NAN_BULLET2)/include
CPPFLAGS += -I../Rasterizer/RAS_OpenGLRasterizer
CPPFLAGS += -I../Rasterizer -I../GameLogic -I../SceneGraph
CPPFLAGS += -I../BlenderRoutines -I../Expressions
diff --git a/source/gameengine/Physics/Bullet/Makefile b/source/gameengine/Physics/Bullet/Makefile
index 747e750242a..a5643b60c94 100644
--- a/source/gameengine/Physics/Bullet/Makefile
+++ b/source/gameengine/Physics/Bullet/Makefile
@@ -38,7 +38,7 @@ include nan_compile.mk
CCFLAGS += $(LEVEL_1_CPP_WARNINGS)
-CPPFLAGS += -I$(NAN_BULLET)/include
+CPPFLAGS += -I$(NAN_BULLET2)/include
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
CPPFLAGS += -I../../Physics/common
CPPFLAGS += -I../../Physics/Dummy
diff --git a/source/nan_definitions.mk b/source/nan_definitions.mk
index ac2bf7b6b76..f2e02fc4c16 100644
--- a/source/nan_definitions.mk
+++ b/source/nan_definitions.mk
@@ -34,9 +34,6 @@
sinclude ../user-def.mk
-#game engine temporarily disabled: need to upgrade to Bullet 2.x
-export NAN_NO_KETSJI=true
-
ifndef CONFIG_GUESS
ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
ifeq (all, $(findstring all, $(MAKECMDGOALS)))
@@ -70,7 +67,7 @@ else
export NAN_SOLID ?= $(LCGDIR)/solid
export NAN_QHULL ?= $(LCGDIR)/qhull
endif
- export NAN_BULLET ?= $(LCGDIR)/bullet
+ export NAN_BULLET2 ?= $(LCGDIR)/bullet2
export NAN_SUMO ?= $(SRCHOME)/gameengine/Physics/Sumo
export NAN_FUZZICS ?= $(SRCHOME)/gameengine/Physics/Sumo/Fuzzics
export NAN_BLENKEY ?= $(LCGDIR)/blenkey
@@ -229,7 +226,7 @@ endif
ifeq ($(CPU), i386)
export NAN_NO_OPENAL=true
endif
-
+
# Uncomment the following line to use Mozilla inplace of netscape
# CPPFLAGS +=-DMOZ_NOT_NET
# Location of MOZILLA/Netscape header files...