Reported and patched by Shane Ambler. Took the opportunity to silence warnings in readfile.c. For Windows in SCons I enabled /WX for blenloader. This means that all enabled warnings will throw errors from now on.
18 lines
590 B
Python
18 lines
590 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('intern/*.c')
|
|
|
|
incs = '. #/intern/guardedalloc ../blenlib ../blenkernel'
|
|
incs += ' ../makesdna ../readblenfile ../editors/include'
|
|
incs += ' ../render/extern/include ../makesrna'
|
|
|
|
incs += ' ' + env['BF_ZLIB_INC']
|
|
|
|
defs = []
|
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
|
env.BlenderLib ( 'bf_blenloader', sources, Split(incs), defs, libtype=['core','player'], priority = [167,30], cc_compileflags=['/WX'] )
|
|
else:
|
|
env.BlenderLib ( 'bf_blenloader', sources, Split(incs), defs, libtype=['core','player'], priority = [167,30] )
|