/[ascend]/branches/harry/solvers/ida/SConscript
ViewVC logotype

Contents of /branches/harry/solvers/ida/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3054 - (show annotations) (download)
Mon Aug 10 06:44:32 2015 UTC (7 years, 4 months ago) by raymondj
File size: 1122 byte(s)
Fixed some errors, debugging process_events_and
1 Import('env')
2
3 if env.get('WITH_IDA'):
4
5 solver_env = env.Clone()
6
7 if env.get('WITH_MMIO'):
8 solver_env.Append(CPPPATH=["#/mmio"])
9
10 if env.get('SUNDIALS_CPPPATH'):
11 solver_env.Append(CPPPATH=[env.get('SUNDIALS_CPPPATH')])
12
13 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 )
25
26 solver_env.Append(
27 LIBPATH=[env.get('SUNDIALS_LIBPATH'),"#"]
28 ,LIBS=[env.get('SUNDIALS_LIBS'),"ascend"]
29 )
30
31 srcs = ['ida.c', 'prepare_integrator.c', 'idacalc.c', 'idalinear.c', 'idaio.c', 'idaprec.c', 'idaanalyse.c', 'idaboundary.c']
32 lib = solver_env.SharedLibrary("ida",srcs
33 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
34 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
35 )
36
37 env.Depends(lib,env['libascend'])
38
39 env['extfns'] += lib
40
41 print "WITH_IDA=",env.get('WITH_IDA')
42
43 if env.get('CAN_INSTALL'):
44 dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS"))
45 env.InstallShared(dir,lib)
46
47 # vim: set syntax=python:

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