-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathSConstruct
More file actions
49 lines (44 loc) · 870 Bytes
/
Copy pathSConstruct
File metadata and controls
49 lines (44 loc) · 870 Bytes
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
import os
env = Environment(
ENV=os.environ,
CXXFLAGS= ['-g', '-Wall', '-Wextra',
'-pedantic', '-std=c++17',
'-I/usr/local/include'
],
CPPPATH='..',
LINKFLAGS=['-L/usr/local/lib'])
# allows highighting to print to terminal from compiler output
env['ENV']['TERM'] = os.environ['TERM']
progs = Split(
'''
accumulate
batched
chain
chunked
combinatoric
compress
count
cycle
dropwhile
enumerate
filter
filterfalse
groupby
imap
range
repeat
reversed
slice
sliding_window
sorted
starmap
takewhile
unique_justseen
unique_everseen
zip
''')
if Configure(env).CheckCXXHeader('boost/optional.hpp'):
progs.append('zip_longest')
progs.append('mixed')
for p in progs:
env.Program('{0}_examples.cpp'.format(p))