-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions_brew.py
52 lines (39 loc) · 1.66 KB
/
options_brew.py
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
40
41
42
43
44
45
46
47
48
49
50
51
num_jobs = 8
def complete_path(path):
import os
def find_version_dir(path):
exts = os.listdir(path)
def mycmp(a, b):
a = map(int, a.split('.'))
b = map(int, b.split('.'))
for ai, bi in zip(a, b):
if ai == bi: continue
return cmp(ai, bi)
return 0
exts.sort(mycmp)
return exts[0]
prefix, suffix = path.split('/VERSION/')
return os.path.join(prefix, find_version_dir(prefix), suffix)
# if qhull installed from brew, with default Qt :
qhull_libs_suffix = '.6'
qhull_lib = complete_path('/usr/local/Cellar/qhull/VERSION/lib')
qhull_includes = complete_path('/usr/local/Cellar/qhull/VERSION/include')
QTDIR = '/usr/local'
WITH_CGAL = True
WITH_MPFR = WITH_GMP = WITH_ANN = True
ann_includes = '/usr/local/include'
ann_libpath = '/usr/local/lib'
boost_includes = mpfr_includes = gmp_includes = '/usr/local/include'
boost_libpath = mpfr_libpath = gmp_libpath = '/usr/local/lib'
boost_libs_suffix = '-mt'
eigen_includes = complete_path('/usr/local/Cellar/eigen/VERSION/include/eigen3')
EXTRA_CCFLAGS = '-stdlib=libc++ -fno-inline -DWITH_QHULL_2011 -DCGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES -DCGAL_EIGEN3_ENABLED -I%s' % eigen_includes
EXTRA_LINK_FLAGS = '-F/usr/local/lib'
# If X11 has been installed manually :
gl_includes = '/usr/X11/include'
bison_bin = complete_path('/usr/local/Cellar/bison/VERSION/bin')
flex_bin = complete_path('/usr/local/Cellar/flex/VERSION/bin')
bison_libpath = complete_path('/usr/local/Cellar/bison/VERSION/lib')
flex_libpath = complete_path('/usr/local/Cellar/flex/VERSION/lib')
bison_include = complete_path('/usr/local/Cellar/bison/VERSION/include')
flex_include = complete_path('/usr/local/Cellar/flex/VERSION/include')