2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2004-03-22 22:02:18 +00:00
|
|
|
import sys
|
2005-05-06 13:37:18 +00:00
|
|
|
import os
|
2004-03-22 22:02:18 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
Import('env')
|
|
|
|
defs = ''
|
|
|
|
cflags = []
|
2004-03-22 22:02:18 +00:00
|
|
|
if sys.platform=='linux2' or sys.platform=='linux-i386':
|
2006-02-04 14:15:10 +00:00
|
|
|
cflags += ['-O2','-ansi']
|
|
|
|
elif env['OURPLATFORM']=='win32-vc':
|
|
|
|
cflags += ['/O2']
|
|
|
|
elif env['OURPLATFORM']=='win32-mingw':
|
|
|
|
cflags += ['-O2']
|
2006-08-03 02:46:37 +00:00
|
|
|
elif sys.platform=='sunos5':
|
|
|
|
cflags += ['-O2', '-ansi']
|
2004-05-08 01:34:39 +00:00
|
|
|
elif sys.platform=='darwin':
|
2006-02-04 14:15:10 +00:00
|
|
|
cflags += ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' , '-mtune=G4']
|
|
|
|
|
|
|
|
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']
|
2004-03-09 21:14:03 +00:00
|
|
|
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs = 'include src'
|
2004-03-09 21:14:03 +00:00
|
|
|
|
2006-02-07 21:24:36 +00:00
|
|
|
env.BlenderLib ( 'extern_qhull', sources, Split(incs), Split(defs), libtype=['game2','player'], priority=[50, 85], compileflags = cflags)
|