#!/usr/bin/python
Import ('user_options_dict')
Import ('library_env')

render_env = library_env.Copy ()

source_files = ['intern/source/RE_callbacks.c',
                'intern/source/edgeRender.c',
                'intern/source/envmap.c',
                'intern/source/errorHandler.c',
                'intern/source/gammaCorrectionTables.c',
                'intern/source/initrender.c',
                'intern/source/jitter.c',
                'intern/source/pixelblending.c',
                'intern/source/pixelshading.c',
                'intern/source/ray.c',
                'intern/source/renderHelp.c',
                'intern/source/renderPreAndPost.c',
                'intern/source/rendercore.c',
                'intern/source/renderdatabase.c',
                'intern/source/shadbuf.c',
                'intern/source/texture.c',
                'intern/source/vanillaRenderPipe.c',
                'intern/source/zbuf.c',
                'intern/source/zbufferdatastruct.c']


render_env.Append (CPPPATH = ['intern/include',
                              '#/intern/guardedalloc',
                              '../blenlib',
                              '../makesdna',
                              'extern/include',
                              '../blenkernel',
                              '../radiosity/extern/include',
                              '../imbuf',
                              '../quicktime',
                              '../include',
                              '../../kernel/gen_messaging',
                              '../yafray'])

render_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_render', source=source_files)
