-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSConscript
More file actions
37 lines (29 loc) · 1.19 KB
/
SConscript
File metadata and controls
37 lines (29 loc) · 1.19 KB
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
# -*-python-*-
Import("env")
cppenv = env.Clone(tools = ['cpp'])
cppenv.AppendUnique(CPPDEFINES = ['LIBSTATISKIT_CORE'])
exclude = """
""".split()
sources = [source for source in cppenv.Glob('*.h*') if not source.name in exclude]
targets = cppenv.CppDev(["statiskit", "core"], sources)
Alias("cpp-dev", targets)
Alias("cpp", targets)
Alias("autowig", targets)
Alias("install", targets)
wigenv = cppenv.Clone(tools = ['wig'])
wigenv.AppendUnique(CPPDEFINES=['EIGEN_NO_STATIC_ASSERT', 'AUTOWIG'])
targets = wigenv.BoostPythonWIG('statiskit_core', [target for target in targets if target.name.endswith('.h')],
module='../py/wrapper/_core.cpp',
decorator='../py/statiskit/core/_core.py',
parser_bootstrap=1,
controller='AutoWIG.py',
depends=['statiskit_linalg'])
Alias("autowig", targets)
wigenv.Depends(targets, "cpp-dev")
exclude = """
""".split()
sources = [source for source in cppenv.Glob('*.cpp') if not source.name in exclude]
targets = cppenv.CppLib("statiskit_core", sources)
Alias("cpp-lib", targets)
Alias("cpp", targets)
Alias("install", targets)