2.5 / SCons
[blender-staging.git] / source / blender / windowmanager / SConscript
index c4a6cba90b2ef89898dbcd88bfaf603407c540cb..a160d13a64f2be908614a9988b9938a5b1fadb12 100644 (file)
@@ -13,4 +13,10 @@ incs += ' ../makesrna ../gpu'
 
 incs += ' #/intern/guardedalloc #/intern/memutil #/intern/ghost #/intern/bmfont'
 incs += ' #/intern/elbeem #/extern/glew/include'
 
 incs += ' #/intern/guardedalloc #/intern/memutil #/intern/ghost #/intern/bmfont'
 incs += ' #/intern/elbeem #/extern/glew/include'
-env.BlenderLib ( 'bf_windowmanager', sources, Split(incs), [], libtype=['core'], priority=[5] )
+
+defs = []
+
+if not env['WITH_BF_PYTHON']:
+       defs.append('DISABLE_PYTHON')
+
+env.BlenderLib ( 'bf_windowmanager', sources, Split(incs), defs, libtype=['core'], priority=[5] )