3 |
# To run the test, type |
# To run the test, type |
4 |
# ascend johnpye/conopt/conopt.a4c |
# ascend johnpye/conopt/conopt.a4c |
5 |
|
|
6 |
solver_env = env.Copy() |
if env.get('WITH_CONOPT'): |
7 |
|
|
8 |
|
solver_env = env.Copy() |
9 |
|
|
|
if solver_env.get('WITH_CONOPT'): |
|
10 |
solver_env.AppendUnique(CPPPATH=[solver_env.get('CONOPT_CPPPATH')]) |
solver_env.AppendUnique(CPPPATH=[solver_env.get('CONOPT_CPPPATH')]) |
11 |
|
|
12 |
libconopt = [solver_env.SharedLibrary("conopt",["asc_conopt.c"] |
libconopt = [solver_env.SharedLibrary("conopt",["asc_conopt.c"] |
13 |
,LIBS = ['ascend'] |
,LIBS = ['ascend'] |
14 |
,LIBPATH = ['#'] |
,LIBPATH = ['#'] |
15 |
)] |
)] |
16 |
|
|
17 |
env.Depends(libconopt,env['libascend']) |
env.Depends(libconopt,env['libascend']) |
18 |
|
|
19 |
env['extfns'] += libconopt |
env['extfns'] += libconopt |
20 |
|
|
21 |
if env.get('CAN_INSTALL'): |
if env.get('CAN_INSTALL'): |
22 |
env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),libconopt) |
env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),libconopt) |
23 |
|
|
24 |
# vim: set syntax=python: |
# vim: set syntax=python: |
25 |
|
|