4 # TODO: src_env.Append (CCFLAGS = user_options_dict['SDL_CFLAGS'])
6 sources = env.Glob('*.c')
8 incs = ' #/intern/guardedalloc #/intern/memutil'
9 incs += ' ../blenlib ../makesdna ../blenkernel'
10 incs += ' ../include #/intern/bmfont ../imbuf ../render/extern/include'
11 incs += ' #/intern/bsp/extern ../radiosity/extern/include'
12 incs += ' #/intern/decimation/extern ../blenloader ../python'
13 incs += ' ../../kernel/gen_system #/intern/SoundSystem ../readstreamglue ../nodes'
14 incs += ' ../quicktime #/intern/elbeem/extern'
15 incs += ' #/intern/ghost #/intern/opennl/extern'
18 incs += ' ' + env['BF_PYTHON_INC']
19 incs += ' ' + env['BF_SDL_INC']
20 incs += ' ' + env['BF_OPENGL_INC']
24 if env['BF_TWEAK_MODE'] == 1:
25 defs.append('TWEAK_MODE')
27 if env['WITH_BF_YAFRAY'] == 0:
28 defs.append('DISABLE_YAFRAY')
30 if env['WITH_BF_INTERNATIONAL'] == 1:
32 defs.append('INTERNATIONAL')
33 defs.append('FTGL_STATIC_LIBRARY')
35 if env['WITH_BF_OPENEXR'] == 1:
36 defs.append('WITH_OPENEXR')
38 if env['WITH_BF_QUICKTIME']==1:
39 incs += ' ' + env['BF_QUICKTIME_INC']
40 defs.append('WITH_QUICKTIME')
42 if env['WITH_BF_ICONV'] == 1:
43 incs += ' ' + env['BF_ICONV_INC']
44 defs.append('WITH_ICONV')
46 if env['WITH_BF_FFMPEG'] == 1:
47 defs.append('WITH_FFMPEG')
48 incs += ' ' + env['BF_FFMPEG_INC']
50 if env['WITH_BF_VERSE']:
51 defs.append('WITH_VERSE')
52 incs += ' ' + env['BF_VERSE_INCLUDE']
55 if env['BF_BUILDINFO'] == 1:
56 defs.append('NAN_BUILDINFO')
58 env.BlenderLib ( libname = 'src', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] )