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 | # To run the test, type |
4 | # ascend johnpye/conopt/conopt.a4c |
5 | |
6 | if env.get('WITH_CONOPT'): |
7 | |
8 | solver_env = env.Copy() |
9 | |
10 | solver_env.AppendUnique(CPPPATH=[solver_env.get('CONOPT_CPPPATH')]) |
11 | |
12 | lib = solver_env.SharedLibrary("conopt",["asc_conopt.c"] |
13 | ,LIBS = ['ascend'] |
14 | ,LIBPATH = ['#'] |
15 | ,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] |
16 | ,SHLIBPREFIX = env['EXTLIB_PREFIX'] |
17 | ) |
18 | |
19 | env.Depends(lib,env['libascend']) |
20 | |
21 | env['extfns'] += [lib] |
22 | |
23 | if env.get('CAN_INSTALL'): |
24 | env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib) |
25 | |
26 | # vim: set syntax=python: |
27 |
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |