Properly set build type: Release or Debug
authorNathan Letwory <nathan@letworyinteractive.com>
Sun, 29 Aug 2010 19:47:26 +0000 (19:47 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Sun, 29 Aug 2010 19:47:26 +0000 (19:47 +0000)
build_files/scons/tools/Blender.py

index ab0e010fbcee155eb39e98437bbc2e00fb3c1fcd..345590330cc97c90616e604242543db872297087 100644 (file)
@@ -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])])