Enable CXX_GUARDEDALLOC support through SCons.
This commit is contained in:
@@ -2,7 +2,14 @@
|
||||
|
||||
Import('env')
|
||||
|
||||
sources = env.Glob('intern/*.c')
|
||||
defs = []
|
||||
|
||||
sources = ['intern/mallocn.c', 'intern/mmap_win.c']
|
||||
|
||||
if env['WITH_BF_CXX_GUARDEDALLOC']:
|
||||
sources.append('cpp/mallocn.cpp')
|
||||
defs.append('WITH_CXX_GUARDEDALLOC')
|
||||
|
||||
incs = '.'
|
||||
|
||||
env.BlenderLib ('bf_intern_guardedalloc', sources, Split(incs), defines=[], libtype=['intern','player'], priority = [5,150] )
|
||||
env.BlenderLib ('bf_intern_guardedalloc', sources, Split(incs), defs, libtype=['intern','player'], priority = [5,150] )
|
||||
|
Reference in New Issue
Block a user