* Add WITH_BF_YAFRAY, which per default is 'true', so no visible changes for developers (and users). Set WITH_BF_YAFRAY to 'false', and you'll save some major compile time :) Also handy if you're strapped for memory and compilation fails on yafray compilation due to this. - this commit also has a few whitespace changes and - made BF_NO_ELBEEM a proper BoolOption. This will be renamed to WITH_BF_ELBEEM in the near future...
51 lines
1.5 KiB
Python
51 lines
1.5 KiB
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
# TODO: src_env.Append (CCFLAGS = user_options_dict['SDL_CFLAGS'])
|
|
|
|
sources = env.Glob('*.c')
|
|
|
|
incs = ' #/intern/guardedalloc #/intern/memutil'
|
|
incs += ' ../blenlib ../makesdna ../blenkernel'
|
|
incs += ' ../include #/intern/bmfont ../imbuf ../render/extern/include'
|
|
incs += ' #/intern/bsp/extern ../radiosity/extern/include'
|
|
incs += ' #/intern/decimation/extern ../blenloader ../python'
|
|
incs += ' ../../kernel/gen_system #/intern/SoundSystem ../readstreamglue'
|
|
incs += ' ../quicktime #/intern/elbeem/extern'
|
|
incs += ' #/intern/ghost #/intern/opennl/extern'
|
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
|
incs += ' ' + env['BF_SDL_INC']
|
|
incs += ' ' + env['BF_OPENGL_INC']
|
|
|
|
defs = []
|
|
|
|
if env['WITH_BF_YAFRAY'] == 0:
|
|
defs.append('DISABLE_YAFRAY')
|
|
|
|
if env['WITH_BF_INTERNATIONAL'] == 1:
|
|
incs += ' ../ftfont'
|
|
defs.append('INTERNATIONAL')
|
|
defs.append('FTGL_STATIC_LIBRARY')
|
|
|
|
if env['WITH_BF_OPENEXR'] == 1:
|
|
defs.append('WITH_OPENEXR')
|
|
|
|
if env['WITH_BF_QUICKTIME']==1:
|
|
incs += ' ' + env['BF_QUICKTIME_INC']
|
|
defs.append('WITH_QUICKTIME')
|
|
|
|
if env['WITH_BF_FFMPEG'] == 1:
|
|
defs.append('WITH_FFMPEG')
|
|
incs += ' ' + env['BF_FFMPEG_INC']
|
|
|
|
if env['WITH_BF_VERSE']:
|
|
defs.append('WITH_VERSE')
|
|
incs += ' ' + env['BF_VERSE_INCLUDE']
|
|
|
|
# TODO buildinfo
|
|
if env['BF_BUILDINFO'] == 1:
|
|
defs.append('NAN_BUILDINFO')
|
|
|
|
env.BlenderLib ( libname = 'src', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] )
|