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

Annotation of /trunk/solvers/ida/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1508 - (hide annotations) (download)
Wed Jun 27 11:37:28 2007 UTC (15 years, 7 months ago) by jpye
File size: 918 byte(s)
Adjusting build scripts after moving integrators
1 jpye 1508 Import('env')
2 jpye 1507
3     objs = []
4    
5 jpye 1508 sundials_env = solver_env.Copy()
6 jpye 1507
7 jpye 1508 if env.get('WITH_MMIO'):
8     sundials_env.Append(CPPPATH=["#/mmio"])
9 jpye 1507
10 jpye 1508 if env.get('SUNDIALS_CPPPATH'):
11     sundials_env.Append(CPPPATH=[env.get('SUNDIALS_CPPPATH')])
12 jpye 1507
13 jpye 1508 if env.get('SUNDIALS_CPPPATH_EXTRA'):
14     sundials_env.AppendUnique(
15     CPPPATH=env.get('SUNDIALS_CPPPATH_EXTRA')
16 jpye 1507 )
17    
18 jpye 1508 sundials_env.Append(
19     CPPDEFINES=[
20     ('SUNDIALS_VERSION_MAJOR',"$SUNDIALS_VERSION_MAJOR")
21     ,('SUNDIALS_VERSION_MINOR',"$SUNDIALS_VERSION_MINOR")
22     ]
23     )
24 jpye 1507
25 jpye 1508 sundials_env.Append(
26     LIBPATH=[solver_env.get('SUNDIALS_LIBPATH')]
27     , LIBS=[solver_env.get('SUNDIALS_LIBS')]
28     )
29 jpye 1507
30 jpye 1508 idasrcs = ['ida.c','idalinear.c', 'idaanalyse.c']
31     for s in idasrcs:
32     objs += sundials_env.SharedObject(s)
33 jpye 1507
34 jpye 1508 libida = sundials_env.SharedLibrary("ida",objs)
35 jpye 1507
36 jpye 1508 env['extfns'] += libda
37 jpye 1507
38 jpye 1508 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