1 |
jpye |
1504 |
Import('env') |
2 |
|
|
|
3 |
jpye |
1753 |
if 'CMSLV' in env['WITH_SOLVERS'] and 'CONOPT' in env['WITH_SOLVERS']: |
4 |
jpye |
1787 |
solver_env = env.Clone() |
5 |
jpye |
1504 |
|
6 |
jpye |
1753 |
solver_env.AppendUnique( |
7 |
|
|
LIBS = ['ascend'] |
8 |
|
|
, LIBPATH = ['#'] |
9 |
|
|
) |
10 |
jpye |
1751 |
|
11 |
|
|
if solver_env.get('CONOPT_LINKED'): |
12 |
|
|
solver_env.AppendUnique( |
13 |
|
|
CPPPATH=env['CONOPT_CPPPATH'] |
14 |
|
|
, LIBS=env['CONOPT_LIB'] |
15 |
|
|
, LIBPATH=env['CONOPT_LIBPATH'] |
16 |
|
|
) |
17 |
jpye |
1504 |
|
18 |
jpye |
1753 |
lib = solver_env.SharedLibrary("cmslv",["cmslv.c"] |
19 |
|
|
,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] |
20 |
|
|
,SHLIBPREFIX = env['EXTLIB_PREFIX'] |
21 |
|
|
) |
22 |
jpye |
1504 |
|
23 |
jpye |
1753 |
env.Depends(lib,env['libascend']) |
24 |
jpye |
1510 |
|
25 |
jpye |
1753 |
env['extfns'] += [lib] |
26 |
jpye |
1504 |
|
27 |
jpye |
1753 |
if env.get('CAN_INSTALL'): |
28 |
|
|
env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib) |
29 |
jpye |
1504 |
|
30 |
|
|
# vim: set syntax=python: |
31 |
|
|
|