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