Add BF_BUILDINFO support to Python API too.
authorNathan Letwory <nathan@letworyinteractive.com>
Wed, 4 Aug 2010 17:23:13 +0000 (17:23 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Wed, 4 Aug 2010 17:23:13 +0000 (17:23 +0000)
reported by dail in IRC #blendercoders.

source/blender/python/SConscript

index ca742a3646a56db13b58a20e4ba06c6e5d34877e..17189341136c8df929b6b688ef19a3d3a0d259ed 100644 (file)
@@ -10,6 +10,9 @@ incs += ' ' + env['BF_PYTHON_INC']
 
 defs = []
 
+if env['BF_BUILDINFO']:
+       defs.append('BUILD_DATE')
+
 if env['OURPLATFORM'] in ('win32-mingw', 'win32-vc','win64-vc') and env['BF_DEBUG']:
        defs.append('_DEBUG')