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:
authorNathan Letwory <nathan@letworyinteractive.com>2010-08-29 23:47:26 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2010-08-29 23:47:26 +0400
commit999bb69c703f02644feb58a726cb2470c6b9ba0e (patch)
tree676efd4cfe7a0ef11a873e3968c04435f6f024d1
parent57aee2ecf4cf32c98a1c389ac1a2e75cdc869618 (diff)
Properly set build type: Release or Debug
-rw-r--r--build_files/scons/tools/Blender.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py
index ab0e010fbce..345590330cc 100644
--- a/build_files/scons/tools/Blender.py
+++ b/build_files/scons/tools/Blender.py
@@ -277,12 +277,16 @@ def buildinfo(lenv, build_type):
build_date = time.strftime ("%Y-%m-%d")
build_time = time.strftime ("%H:%M:%S")
build_rev = os.popen('svnversion').read()[:-1] # remove \n
+ if lenv['BF_DEBUG']:
+ build_type = "Debug"
+ else:
+ build_type = "Release"
obj = []
if lenv['BF_BUILDINFO']:
lenv.Append (CPPDEFINES = ['BUILD_TIME=\'"%s"\''%(build_time),
'BUILD_DATE=\'"%s"\''%(build_date),
- 'BUILD_TYPE=\'"dynamic"\'',
+ 'BUILD_TYPE=\'"%s"\''%(build_type),
'BUILD_REV=\'"%s"\''%(build_rev),
'NAN_BUILDINFO',
'BUILD_PLATFORM=\'"%s %s"\''%(platform.system(), platform.architecture()[0])])