* tweak linking priorities - should help for GCC users
[blender.git] / extern / qhull / SConscript
1 #!/usr/bin/python
2 import sys
3 import os
4
5 Import('env')
6 defs = ''
7 cflags = []
8 if sys.platform=='linux2' or sys.platform=='linux-i386':
9         cflags += ['-O2','-ansi']
10 elif env['OURPLATFORM']=='win32-vc':
11         cflags += ['/O2']
12 elif env['OURPLATFORM']=='win32-mingw':
13         cflags += ['-O2']
14 elif sys.platform=='sunos5':
15         cflags += ['-O2', '-ansi']
16 elif sys.platform=='darwin':
17         cflags += ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math']
18
19 sources = ['src/geom.c',
20         'src/geom2.c',
21         'src/global.c',
22         'src/io.c',
23         'src/mem.c',
24         'src/merge.c',
25         'src/poly.c',
26         'src/poly2.c',
27         'src/qhull.c',
28         'src/qset.c',
29         'src/stat.c',
30         'src/user.c']
31
32
33 incs = 'include src'
34
35 env.BlenderLib ( 'extern_qhull', sources, Split(incs), Split(defs), libtype=['game2','player'], priority=[55, 70], compileflags = cflags)