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

Annotation of /trunk/models/johnpye/fprops/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2656 - (hide annotations) (download)
Wed Jan 16 02:09:38 2013 UTC (9 years, 7 months ago) by jpye
File size: 1672 byte(s)
remove attempt to build MBWR.
1 jpye 2307 # 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 jpye 1810 Import('env')
9     fprops_env = env.Clone()
10    
11     fprops_env.Append(LIBPATH=['#'])
12     fprops_env.Append(LIBS=['ascend'])
13    
14 jpye 2307 # automatically create fluids/fluids_list.h...
15 jpye 2299 fprops_env.SConscript("fluids/SConscript",['fprops_env'])
16 jpye 2272
17 jpye 2307 fprops_env.Depends("fluids.c","fluids/fluids_list.h")
18    
19 jpye 2654 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 jpye 2307
24     fprops_env['shobjs'] = [fprops_env.SharedObject(s) for s in srcs]
25    
26    
27 jpye 2655 lib1 = fprops_env.SharedLibrary("fprops"
28 jpye 2654 ,['asc_fprops.c'] + fprops_env['shobjs']
29 jpye 1822 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
30     ,SHLIBPREFIX = env['EXTLIB_PREFIX']
31     )
32    
33 jpye 2630 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 jpye 1810
39 jpye 2630 env['extfns'] += [lib1,lib2]
40    
41 jpye 2307 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 jpye 2654 #vim: set syntax=python:

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