updated vc7 projectfiles so they work with bullet
[blender.git] / extern / qhull / SConscript
1 #!/usr/bin/python
2 import sys
3 import os
4
5 qhull_env = Environment(ENV = os.environ)
6
7 # Import the C flags set in the SConstruct file
8 Import ('cflags')
9 Import ('defines')
10 Import ('user_options_dict')
11 if sys.platform=='linux2' or sys.platform=='linux-i386':
12         qhull_env.Append (CCFLAGS = ['-O2', '-ansi'])
13 elif sys.platform=='win32':
14         qhull_env.Append (CCFLAGS = ['/O2'])
15 elif sys.platform=='sunos':
16         qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
17 elif sys.platform=='darwin':
18         qhull_env.Append (CCFLAGS = ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' , '-mtune=G4'])
19 else:
20         qhull_env.Append (CCFLAGS = cflags)
21 qhull_env.Append (CPPDEFINES = defines)
22
23 source_files = ['src/geom.c',
24                 'src/geom2.c',
25                 'src/global.c',
26                 'src/io.c',
27                 'src/mem.c',
28                 'src/merge.c',
29                 'src/poly.c',
30                 'src/poly2.c',
31                 'src/qhull.c',
32                 'src/qset.c',
33                 'src/stat.c',
34                 'src/user.c']
35
36 qhull_env.Append (CPPPATH = ['include',
37                              'src'])
38
39 qhull_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/extern_qhull', source=source_files)