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

Diff of /trunk/solvers/cmslv/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1752 by jpye, Mon Feb 11 05:28:43 2008 UTC revision 1753 by jpye, Mon Feb 11 05:49:51 2008 UTC
# Line 1  Line 1 
1  Import('env')  Import('env')
2    
3  solver_env = env.Copy()  if 'CMSLV' in env['WITH_SOLVERS'] and 'CONOPT' in env['WITH_SOLVERS']:
4        solver_env = env.Copy()
5    
6  solver_env.AppendUnique(      solver_env.AppendUnique(
7      LIBS = ['ascend']          LIBS = ['ascend']
8      , LIBPATH = ['#']          , LIBPATH = ['#']
9  )      )
10    
 if solver_env.get('WITH_CONOPT'):  
11      if solver_env.get('CONOPT_LINKED'):      if solver_env.get('CONOPT_LINKED'):
         print "LINKED CONOPT"  
12          solver_env.AppendUnique(          solver_env.AppendUnique(
13              CPPPATH=env['CONOPT_CPPPATH']              CPPPATH=env['CONOPT_CPPPATH']
14              , LIBS=env['CONOPT_LIB']              , LIBS=env['CONOPT_LIB']
15              , LIBPATH=env['CONOPT_LIBPATH']              , LIBPATH=env['CONOPT_LIBPATH']
16          )          )
       
 print "LIBS FOR CMSLV =",solver_env['LIBS']  
17    
18  lib = solver_env.SharedLibrary("cmslv",["cmslv.c"]      lib = solver_env.SharedLibrary("cmslv",["cmslv.c"]
19      ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']          ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
20      ,SHLIBPREFIX = env['EXTLIB_PREFIX']          ,SHLIBPREFIX = env['EXTLIB_PREFIX']
21  )      )
22    
23  env.Depends(lib,env['libascend'])      env.Depends(lib,env['libascend'])
24    
25  env['extfns'] += [lib]      env['extfns'] += [lib]
26    
27  if env.get('CAN_INSTALL'):      if env.get('CAN_INSTALL'):
28      env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib)          env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib)
29    
30  # vim: set syntax=python:  # vim: set syntax=python:
31    

Legend:
Removed from v.1752  
changed lines
  Added in v.1753

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