- this patch adds verse support for SCons, which can be enabled by
giving WITH_BF_VERSE=1, ie. on command-line
- this patch also adds a custom lib dir possibility. From the patch description:
"To set a custom ../lib dir, put LCGDIR="path to lib dir, including the platform folder name!" in your user-config.py."
* Fixed win32-vc-config.py so that it links to the proper library. Reported by Brandano.
32 lines
840 B
Python
32 lines
840 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('intern/*.c')
|
|
|
|
incs = '. ../makesdna #/intern/guardedalloc #/intern/memutil ../blenlib'
|
|
incs += ' ../avi ../quicktime ../blenkernel'
|
|
|
|
incs += ' ' + env['BF_JPEG_INC']
|
|
incs += ' ' + env['BF_PNG_INC']
|
|
incs += ' ' + env['BF_TIFF_INC']
|
|
incs += ' ' + env['BF_ZLIB_INC']
|
|
|
|
defs = []
|
|
|
|
if env['WITH_BF_VERSE']:
|
|
defs.append('WITH_VERSE')
|
|
incs += ' ' + env['BF_VERSE_INCLUDE']
|
|
|
|
if env['WITH_BF_OPENEXR'] == 1:
|
|
defs.append('WITH_OPENEXR')
|
|
|
|
if env['WITH_BF_FFMPEG'] == 1:
|
|
defs.append('WITH_FFMPEG')
|
|
incs += ' ' + env['BF_FFMPEG_INC']
|
|
|
|
if env['WITH_BF_QUICKTIME']==1:
|
|
incs += ' ' + env['BF_QUICKTIME_INC']
|
|
defs.append('WITH_QUICKTIME')
|
|
|
|
env.BlenderLib ( libname = 'bf_imbuf', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [80, 40] )
|