Parent Directory | Revision Log
New external library naming scheme on Windows: 'name_ascend.dll' instead of 'name.dll'. This applies to solvers as well as external methods, extpy, import handlers, etc.
1 | Import('env') |
2 | |
3 | if env.get('WITH_IPOPT'): |
4 | solver_env = env.Copy() |
5 | |
6 | solver_env.AppendUnique(CPPPATH=[solver_env.get('IPOPT_CPPPATH')]) |
7 | |
8 | solver_env.Append( |
9 | CPPDEFINES=[ |
10 | 'ASC_WITH_IPOPT' |
11 | ] |
12 | ) |
13 | |
14 | lib = solver_env.SharedLibrary("ipopt",["asc_ipopt.c"] |
15 | ,LIBS = ['ascend','ipopt'] |
16 | ,LIBPATH = ['#'] |
17 | ,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] |
18 | ,SHLIBPREFIX = env['EXTLIB_PREFIX'] |
19 | ) |
20 | |
21 | env.Depends(lib,env['libascend']) |
22 | |
23 | env['extfns'] += [lib] |
24 | |
25 | # vim: set syntax=python: |
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |