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

Annotation of /trunk/solvers/cmslv/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1787 - (hide annotations) (download)
Sat Jun 7 06:32:58 2008 UTC (15 years, 10 months ago) by jpye
File size: 670 byte(s)
Fixed against Tcl/Tk on Fedora 9.
Removed lots more env.Copy(), change to env.Clone() for newer SCons.
1 jpye 1504 Import('env')
2    
3 jpye 1753 if 'CMSLV' in env['WITH_SOLVERS'] and 'CONOPT' in env['WITH_SOLVERS']:
4 jpye 1787 solver_env = env.Clone()
5 jpye 1504
6 jpye 1753 solver_env.AppendUnique(
7     LIBS = ['ascend']
8     , LIBPATH = ['#']
9     )
10 jpye 1751
11     if solver_env.get('CONOPT_LINKED'):
12     solver_env.AppendUnique(
13     CPPPATH=env['CONOPT_CPPPATH']
14     , LIBS=env['CONOPT_LIB']
15     , LIBPATH=env['CONOPT_LIBPATH']
16     )
17 jpye 1504
18 jpye 1753 lib = solver_env.SharedLibrary("cmslv",["cmslv.c"]
19     ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
20     ,SHLIBPREFIX = env['EXTLIB_PREFIX']
21     )
22 jpye 1504
23 jpye 1753 env.Depends(lib,env['libascend'])
24 jpye 1510
25 jpye 1753 env['extfns'] += [lib]
26 jpye 1504
27 jpye 1753 if env.get('CAN_INSTALL'):
28     env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib)
29 jpye 1504
30     # vim: set syntax=python:
31    

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