5 |
if solver_env.get('WITH_CONOPT'): |
if solver_env.get('WITH_CONOPT'): |
6 |
solver_env.AppendUnique(CPPPATH=[solver_env.get('CONOPT_CPPPATH')]) |
solver_env.AppendUnique(CPPPATH=[solver_env.get('CONOPT_CPPPATH')]) |
7 |
|
|
8 |
libcmslv = [solver_env.SharedLibrary("cmslv",["slv9.c"] |
lib = solver_env.SharedLibrary("cmslv",["slv9.c"] |
9 |
,LIBS = ['ascend'] |
,LIBS = ['ascend'] |
10 |
,LIBPATH = ['#'] |
,LIBPATH = ['#'] |
11 |
)] |
,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] |
12 |
|
,SHLIBPREFIX = env['EXTLIB_PREFIX'] |
13 |
|
) |
14 |
|
|
15 |
env.Depends(libcmslv,env['libascend']) |
env.Depends(lib,env['libascend']) |
16 |
|
|
17 |
env['extfns'] += libcmslv |
env['extfns'] += [lib] |
18 |
|
|
19 |
if env.get('CAN_INSTALL'): |
if env.get('CAN_INSTALL'): |
20 |
env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),libcmslv) |
env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib) |
21 |
|
|
22 |
# vim: set syntax=python: |
# vim: set syntax=python: |
23 |
|
|