Fix #34351: Displacement map Bake margin does not work
[blender.git] / extern / libmv / third_party / ssba / SConscript
1 #!/usr/bin/python
2
3 import sys
4 import os
5
6 Import('env')
7
8 defs = []
9
10 cflags_ssba = Split(env['CFLAGS'])
11 ccflags_ssba = Split(env['CCFLAGS'])
12 cxxflags_ssba = Split(env['CXXFLAGS'])
13
14 defs.append('V3DLIB_ENABLE_SUITESPARSE')
15
16 src = env.Glob('Geometry/*.cpp')
17 src += env.Glob('Math/*.cpp')
18 src += env.Glob('../ldl/Source/*.c')
19
20 incs = '. ../ldl/Include ../../../colamd/Include'
21
22 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
23     if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
24         cflags_ssba.append('/Od')
25         ccflags_ssba.append('/Od')
26         cxxflags_ssba.append('/Od')
27
28         if not env['BF_DEBUG']:
29             defs.append('NDEBUG')
30     else:
31         if not env['BF_DEBUG']:
32             cflags_ssba += Split(env['REL_CFLAGS'])
33             ccflags_ssba += Split(env['REL_CCFLAGS'])
34             cxxflags_ssba += Split(env['REL_CXXFLAGS'])
35
36 env.BlenderLib ( libname = 'extern_ssba', sources=src, includes=Split(incs), defines=defs, libtype=['extern', 'player'], priority=[20,137], compileflags=cflags_ssba, cc_compileflags=ccflags_ssba, cxx_compileflags=cxxflags_ssba )