[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34991] trunk/blender/GNUmakefile: add ' make debug' option for stub cmake makefile.
Campbell Barton
ideasman42 at gmail.com
Sat Feb 19 14:46:08 CET 2011
Revision: 34991
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34991
Author: campbellbarton
Date: 2011-02-19 13:46:08 +0000 (Sat, 19 Feb 2011)
Log Message:
-----------
add 'make debug' option for stub cmake makefile.
Modified Paths:
--------------
trunk/blender/GNUmakefile
Modified: trunk/blender/GNUmakefile
===================================================================
--- trunk/blender/GNUmakefile 2011-02-19 13:43:22 UTC (rev 34990)
+++ trunk/blender/GNUmakefile 2011-02-19 13:46:08 UTC (rev 34991)
@@ -37,6 +37,15 @@
BUILD_DIR:=$(shell dirname $(BLENDER_DIR))/build/$(OS_NCASE)
+# support 'make debug'
+ifneq "$(findstring debug, $(MAKECMDGOALS))" ""
+ BUILD_DIR:=$(BUILD_DIR)_debug
+ BUILD_TYPE:=Debug
+else
+ BUILD_TYPE:=Release
+endif
+
+
# Get the number of cores for threaded build
NPROCS:=1
ifeq ($(OS), Linux)
@@ -61,7 +70,7 @@
if test ! -f $(BUILD_DIR)/CMakeCache.txt ; then \
mkdir -p $(BUILD_DIR) ; \
cd $(BUILD_DIR) ; \
- cmake $(BLENDER_DIR) -DCMAKE_BUILD_TYPE:STRING=Release ; \
+ cmake $(BLENDER_DIR) -DCMAKE_BUILD_TYPE:STRING=$(BUILD_TYPE) ; \
fi
@echo
@@ -71,6 +80,9 @@
@echo run blender from "$(BUILD_DIR)/bin/blender"
@echo
+debug: all
+ # pass
+
# package types
package_debian:
cd build_files/package_spec ; sh ./build_debian.sh
More information about the Bf-blender-cvs
mailing list