#!/usr/bin/python
Import ('env')

sources = env.Glob('intern/*.c')

incs = '. #/intern/guardedalloc ../blenlib ../blenkernel'
incs += ' ../makesdna ../readblenfile ../include'
incs += ' ../python ../../kernel/gen_messaging'
incs += ' ../render/extern/include'

incs += ' ' + env['BF_ZLIB_INC']

defs = ''
if env['WITH_BF_VERSE']:
	defs += ' WITH_VERSE'
	incs += ' ' + env['BF_VERSE_INCLUDE']

env.BlenderLib ( 'bf_blenloader', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [70, 30] )
