6 defs = 'USE_DOUBLES QHULL _LIB'
9 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
10 defs += ' WIN32 NDEBUG _WINDOWS _LIB'
11 cflags += ['/MT', '/W3', '/GX', '/Og', '/Ot', '/Ob1', '/Op', '/G6']
12 elif env['OURPLATFORM']=='win32-mingw':
15 elif sys.platform=='linux2' or sys.platform=='linux-i386' or sys.platform=='freebsd4' or sys.platform=='freebsd5' or sys.platform=='openbsd3' or sys.platform=='sunos5':
18 elif sys.platform=='darwin' :
20 cflags += ['-O2','-pipe', '-fPIC', '-funsigned-char', '-ffast-math']
23 print "################################################"
25 print "Check if solid builds on your platform correctly"
26 print "Add your platform specific defines"
27 print "and cflags / cxxflags to the"
28 print "extern/solid/SConscript file"
30 sources = env.Glob('src/*.cpp') + env.Glob('src/convex/*.cpp') + env.Glob('src/complex/*.cpp') + env.Glob('src/broad/*.cpp')
32 incs = 'include src src/broad src/complex src/convex ../qhull/include'
34 env.BlenderLib ( libname='extern_solid', sources=sources, includes=Split(incs), defines=Split(defs), libtype=['extern'], priority=[10] , compileflags = cflags)