diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-11-25 00:57:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-11-25 00:57:58 +0300 |
commit | bd08d9e1a20c14eded3e1fc9bd512794cd7f4cba (patch) | |
tree | 4c477d490ea231fdc4825a64e7fafa41ef4f9be9 /source/blender/editors/screen/SConscript | |
parent | f7de8cee28ed1f26971728d18eb399fe85b86197 (diff) |
allow building without python
Diffstat (limited to 'source/blender/editors/screen/SConscript')
-rw-r--r-- | source/blender/editors/screen/SConscript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/screen/SConscript b/source/blender/editors/screen/SConscript index 5193306df0a..57a8e1ac931 100644 --- a/source/blender/editors/screen/SConscript +++ b/source/blender/editors/screen/SConscript @@ -7,4 +7,9 @@ incs = '../include ../../blenlib ../../blenkernel ../../makesdna ../../imbuf' incs += ' ../../blenloader ../../windowmanager ../../python ../../makesrna' incs += ' #/intern/guardedalloc #/extern/glew/include' -env.BlenderLib ( 'bf_editors_screen', sources, Split(incs), [], libtype=['core','intern'], priority=[30, 35] ) +defs = '' + +if not env['WITH_BF_PYTHON']: + defs += 'DISABLE_PYTHON' + +env.BlenderLib ( 'bf_editors_screen', sources, Split(incs), Split(defs), libtype=['core','intern'], priority=[30, 35] ) |