#!/usr/bin/python Import ('env') sources = env.Glob('intern/*.c') #incs = '#/intern/guardedalloc ../blenlib ../makesdna ../blenkernel' #incs += ' ../imbuf ../editors/include ../render/extern/include ../render/intern/include' incs = '. ../editors/include ../python ../makesdna ../blenlib ../blenkernel' incs += ' ../nodes ../imbuf ../blenloader ../render/extern/include' incs += ' ../radiosity/extern/include ../../kernel/gen_system' incs += ' ../makesrna ../gpu ../blenfont' incs += ' #/intern/guardedalloc #/intern/memutil #/intern/ghost' incs += ' #/intern/elbeem #/extern/glew/include' defs = [ 'GLEW_STATIC' ] if not env['WITH_BF_PYTHON']: defs.append('DISABLE_PYTHON') if env['WITH_BF_COLLADA']: defs.append('WITH_COLLADA') if env['OURPLATFORM'] == 'linux2': cflags='-pthread' incs += ' ../../../extern/binreloc/include' if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'): incs += ' ' + env['BF_PTHREADS_INC'] if env['WITH_GHOST_COCOA']: sources.remove('intern/wm_apple.c') if env['BF_BUILDINFO']: defs.append('NAN_BUILDINFO') env.BlenderLib ( 'bf_windowmanager', sources, Split(incs), defines=defs, libtype=['core'], priority=[5] )