/[ascend]/trunk/solvers/cmslv/SConscript
ViewVC logotype

Contents of /trunk/solvers/cmslv/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1751 - (show annotations) (download)
Mon Feb 11 05:27:18 2008 UTC (12 years, 1 month ago) by jpye
File size: 688 byte(s)
Fixed bug #370 (CONOPT_LINKED behaviour on Windows, problems with 'PREDECOR')
1 Import('env')
2
3 solver_env = env.Copy()
4
5 solver_env.AppendUnique(
6 LIBS = ['ascend']
7 , LIBPATH = ['#']
8 )
9
10 if solver_env.get('WITH_CONOPT'):
11 if solver_env.get('CONOPT_LINKED'):
12 print "LINKED CONOPT"
13 solver_env.AppendUnique(
14 CPPPATH=env['CONOPT_CPPPATH']
15 , LIBS=env['CONOPT_LIB']
16 , LIBPATH=env['CONOPT_LIBPATH']
17 )
18
19 print "LIBS FOR CMSLV =",solver_env['LIBS']
20
21 lib = solver_env.SharedLibrary("cmslv",["slv9.c"]
22 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
23 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
24 )
25
26 env.Depends(lib,env['libascend'])
27
28 env['extfns'] += [lib]
29
30 if env.get('CAN_INSTALL'):
31 env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib)
32
33 # vim: set syntax=python:
34

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22