/[ascend]/trunk/models/johnpye/fprops/SConscript
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2656 - (show annotations) (download)
Wed Jan 16 02:09:38 2013 UTC (4 years, 10 months ago) by jpye
File size: 1672 byte(s)
remove attempt to build MBWR.
1 # NB there are TWO scons scripts in this directory. The 'SConscript' one is
2 # run when 'scons' is launched from higher up the directory tree, eg from
3 # ~/ascend. The 'SConstruct' file, on the other hand, is run when you launch
4 # 'scons' from this directory right here. The latter is here just to prove that
5 # FPROPS can be built standalone; it doesn't need ASCEND to be present to
6 # work.
7
8 Import('env')
9 fprops_env = env.Clone()
10
11 fprops_env.Append(LIBPATH=['#'])
12 fprops_env.Append(LIBS=['ascend'])
13
14 # automatically create fluids/fluids_list.h...
15 fprops_env.SConscript("fluids/SConscript",['fprops_env'])
16
17 fprops_env.Depends("fluids.c","fluids/fluids_list.h")
18
19 coresrcs = ['fprops.c', 'color.c', 'refstate.c', 'ideal.c', 'helmholtz.c', 'pengrob.c'
20 , 'sat.c', 'derivs.c', 'solve_ph.c', 'solve_Tx.c', 'solve_px.c', 'fluids.c','cp0.c', 'zeroin.c','cubicroots.c'
21 ]
22 srcs = coresrcs + fprops_env['fluids'] + ['fluids/_rpp.c']
23
24 fprops_env['shobjs'] = [fprops_env.SharedObject(s) for s in srcs]
25
26
27 lib1 = fprops_env.SharedLibrary("fprops"
28 ,['asc_fprops.c'] + fprops_env['shobjs']
29 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
30 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
31 )
32
33 lib2 = fprops_env.SharedLibrary("heatex_pinch"
34 ,['asc_heatex_pinch.c'] + fprops_env['shobjs']
35 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
36 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
37 )
38
39 env['extfns'] += [lib1,lib2]
40
41 if env['WITH_PYTHON']:
42 fprops_env.SConscript('python/SConscript',['fprops_env'])
43 env['pyfprops'] = fprops_env['pyfprops']
44
45 if env.get('CAN_INSTALL'):
46 dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_PYTHON"))
47 env.InstallShared(dir,env['pyfprops'])
48 env.InstallShared(dir,"python/fprops.py")
49
50 #vim: set syntax=python:

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