Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SConscript « qhull « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 927ca3a6a0d73a796bd774c87f8108d2487d57ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
import sys
import os

qhull_env = Environment(ENV = os.environ)

# Import the C flags set in the SConstruct file
Import ('cflags')
Import ('defines')
Import ('user_options_dict')
if sys.platform=='linux2' or sys.platform=='linux-i386':
	qhull_env.Append (CCFLAGS = ['-O2', '-ansi'])
elif sys.platform=='win32':
	qhull_env.Append (CCFLAGS = ['/O2'])
elif sys.platform=='sunos':
	qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
elif sys.platform=='darwin':
	qhull_env.Append (CCFLAGS = ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc' , '-mtune=G4'])
else:
	qhull_env.Append (CCFLAGS = cflags)
qhull_env.Append (CPPDEFINES = defines)

source_files = ['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']

qhull_env.Append (CPPPATH = ['include',
                             'src'])

qhull_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/extern_qhull', source=source_files)