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

Annotation of /trunk/solvers/ida/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1510 - (hide annotations) (download)
Wed Jun 27 13:24:21 2007 UTC (15 years, 5 months ago) by jpye
File size: 939 byte(s)
Dependencies of shared libraries on 'libascend'.
1 jpye 1508 Import('env')
2 jpye 1507
3 jpye 1509 if 'IDA' in env['WITH_SOLVERS']:
4 jpye 1507
5 jpye 1509 solver_env = env.Copy()
6 jpye 1507
7 jpye 1509 if env.get('WITH_MMIO'):
8     solver_env.Append(CPPPATH=["#/mmio"])
9 jpye 1507
10 jpye 1509 if env.get('SUNDIALS_CPPPATH'):
11     solver_env.Append(CPPPATH=[env.get('SUNDIALS_CPPPATH')])
12 jpye 1507
13 jpye 1509 if env.get('SUNDIALS_CPPPATH_EXTRA'):
14     solver_env.AppendUnique(
15     CPPPATH=env.get('SUNDIALS_CPPPATH_EXTRA')
16     )
17    
18     solver_env.Append(
19     CPPDEFINES=[
20     ('SUNDIALS_VERSION_MAJOR',"$SUNDIALS_VERSION_MAJOR")
21     ,('SUNDIALS_VERSION_MINOR',"$SUNDIALS_VERSION_MINOR")
22     ,'ASC_WITH_IDA'
23     ]
24 jpye 1507 )
25    
26 jpye 1509 solver_env.Append(
27     LIBPATH=[env.get('SUNDIALS_LIBPATH')]
28     , LIBS=[env.get('SUNDIALS_LIBS'),"ascend"]
29     )
30 jpye 1507
31 jpye 1509 srcs = ['ida.c','idalinear.c', 'idaanalyse.c']
32     libida = solver_env.SharedLibrary("ida",srcs)
33 jpye 1507
34 jpye 1510 env.Depends(libida,env['libascend'])
35    
36 jpye 1509 env['extfns'] += libida
37 jpye 1507
38 jpye 1509 if env.get('CAN_INSTALL'):
39     dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS"))
40     env.InstallShared(dir,libida)
41 jpye 1507
42     # vim: set syntax=python:

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