blender/extern/qhull/SConscript
Nathan Letwory 0d7027ecab 2.5 / SCons / BGE
* this should bring back BGE with scons building. Tested on scons/msvc, will test scons/gcc in a bit
  NOTE: this is not WITH_BF_PLAYER yet.
2008-12-24 21:33:51 +00:00

36 lines
819 B
Python

#!/usr/bin/python
import sys
import os
Import('env')
defs = ''
cflags = []
if sys.platform=='linux2' or sys.platform=='linux-i386':
cflags += ['-O2','-ansi']
elif env['OURPLATFORM']=='win32-vc':
cflags += ['/O2']
elif env['OURPLATFORM']=='win32-mingw':
cflags += ['-O2']
elif sys.platform=='sunos5':
cflags += ['-O2', '-ansi']
elif sys.platform=='darwin':
cflags += ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math']
sources = ['src/geom.c',
'src/geom2.c',
'src/global.c',
'src/io.c',
'src/mem.c',
'src/merge.c',
'src/poly.c',
'src/poly2.c',
'src/qhull.c',
'src/qset.c',
'src/stat.c',
'src/user.c']
incs = 'include src'
env.BlenderLib ( 'extern_qhull', sources, Split(incs), Split(defs), libtype=['extern'], priority=[50], compileflags = cflags)