1 |
jpye |
2018 |
#!/usr/bin/python invoke_using_scons |
2 |
johnpye |
1183 |
Import('libascend_env') |
3 |
|
|
|
4 |
|
|
csrcs = Split(""" |
5 |
|
|
densemtx.c |
6 |
jpye |
1320 |
linsolqr.c linutils.c |
7 |
johnpye |
1183 |
mtx_basic.c mtx_linal.c mtx_perms.c mtx_query.c |
8 |
|
|
mtx_reorder.c mtx_use_only.c mtx_vector.c |
9 |
jpye |
1326 |
mtx_csparse.c |
10 |
jpye |
1325 |
ranki.c |
11 |
|
|
rankiba2.c |
12 |
|
|
ranki2.c |
13 |
|
|
plainqr.c |
14 |
johnpye |
1183 |
""") |
15 |
|
|
|
16 |
jpye |
1786 |
solver_env = libascend_env.Clone() |
17 |
johnpye |
1183 |
if solver_env.get('WITH_MMIO'): |
18 |
|
|
solver_env.Append(CPPPATH=["#/mmio"]) |
19 |
|
|
|
20 |
|
|
objs = [] |
21 |
|
|
|
22 |
|
|
for c in csrcs: |
23 |
|
|
objs += solver_env.SharedObject(c) |
24 |
|
|
|
25 |
|
|
#-------------------- |
26 |
|
|
# INSTALL |
27 |
|
|
|
28 |
|
|
import glob |
29 |
|
|
|
30 |
|
|
if libascend_env.get('CAN_INSTALL'): |
31 |
jpye |
2020 |
installdir = Dir(libascend_env.subst("$INSTALL_ROOT$INSTALL_INCLUDE/ascend/linear")) |
32 |
johnpye |
1183 |
|
33 |
|
|
headers = glob.glob("*.h") |
34 |
|
|
libascend_env.InstallHeader(installdir,headers) |
35 |
|
|
|
36 |
|
|
Return('objs') |
37 |
|
|
|
38 |
|
|
# vim: set syntax=python: |
39 |
|
|
|