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

Diff of /trunk/solvers/conopt/SConscript

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

revision 1516 by jpye, Wed Jun 27 13:24:21 2007 UTC revision 1517 by jpye, Thu Jun 28 01:36:22 2007 UTC
# Line 3  Import('env') Line 3  Import('env')
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    

Legend:
Removed from v.1516  
changed lines
  Added in v.1517

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