-
Notifications
You must be signed in to change notification settings - Fork 390
/
SConscript
43 lines (39 loc) · 925 Bytes
/
SConscript
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
# -*- mode: python; -*-
import platform
from distutils.version import LooseVersion
subdirs = [
'bind',
'gunit',
'hiredis',
'http_parser',
'pugixml',
'rapidjson',
'thrift',
'openvswitch',
'tbb',
]
(distname, version, _) = platform.dist()
if distname == 'Ubuntu' and LooseVersion(version) >= LooseVersion('14.04'):
pass
elif (distname == 'debian' or distname == 'raspbian') and LooseVersion(version) >= LooseVersion('8'):
pass
elif distname == 'centos' and LooseVersion(version) >= LooseVersion('7.0'):
subdirs += [
'gperftools',
'log4cplus',
]
else:
subdirs += [
'boost',
'curl-7.24.0',
'gperftools',
'libxml2',
'log4cplus',
'icu',
]
if platform.system() == 'FreeBSD':
subdirs += [
'icu',
]
for dir in subdirs:
SConscript(dirs = dir, variant_dir = '#/build/third_party/' + dir)