-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSConstruct
47 lines (40 loc) · 1.31 KB
/
SConstruct
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
import os
env = Environment()
conf = Configure(env)
def checkThings(headers, funcs):
if not conf.CheckCXX():
print('!! Your compiler and/or environment is not correctly configured.')
Exit(0)
for h in headers:
if not conf.CheckHeader(h):
print "You need {0} to compile this program".format(h)
Exit(1)
for f in funcs:
if not conf.CheckFunc(f):
print('!! Your compiler and/or environment is not correctly configured.')
print('Function {0} no can haz').format(f)
Exit(0)
headers = [ 'fcntl.h',
'inttypes.h',
'limits.h',
'memory.h',
'stddef.h','stdint.h','stdlib.h',
'string.h','strings.h',
'sys/param.h','sys/time.h',
'termios.h',
'unistd.h',
'signal.h',
'assert.h',
'iostream.h', 'fstream.h', 'iostream', 'fstream',
'sys/types.h', 'sys/times.h', 'sys/resource.h', 'sys/wait.h',
'sys/stat.h', 'ctype.h', 'math.h', 'regex.h',
'ncurses/termcap.h',
'termcap.h'
]
funcs = [
'printf', 'string'
]
#checkThings(headers, funcs)
env = conf.Finish()
#and now the real work begins
env.Program(target='sbsat', source=["src/sbsat.cc"])