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: 6e305ffaf31bf8922ee212eb41d35d6c26f1e93f (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
#!/usr/bin/python
import sys
import os

Import('env')
defs = ''
cflags = []
if sys.platform=='linux2' or sys.platform=='linux-i386':
	cflags += ['-O2','-ansi']
elif env['OURPLATFORM']=='win32-vc':
	cflags += ['/O2']
elif env['OURPLATFORM']=='win32-mingw':
	cflags += ['-O2']
elif sys.platform=='sunos5':
	cflags += ['-O2', '-ansi']
elif sys.platform=='darwin':
	cflags += ['-O2', '-pipe', '-fPIC', '-funsigned-char', '-ffast-math']

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']


incs = 'include src'

env.BlenderLib ( 'extern_qhull', sources, Split(incs), Split(defs), libtype=['game2','player'], priority=[55, 70], compileflags = cflags)