forked from ryanhaining/cppitertools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
48 lines (43 loc) · 866 Bytes
/
Copy pathSConstruct
File metadata and controls
48 lines (43 loc) · 866 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
import os
env = Environment(
ENV=os.environ,
CXX='c++',
CXXFLAGS= ['-g', '-Wall', '-Wextra',
'-pedantic', '-std=c++14',
'-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
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))