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

Diff of /trunk/models/johnpye/fprops/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2116 by jpye, Thu Sep 18 02:34:54 2008 UTC revision 2117 by jpye, Wed Dec 9 04:30:18 2009 UTC
# Line 4  Line 4 
4    
5  env = Environment()  env = Environment()
6    
7  env.ParseConfig(['ascend-config','--libs','--cppflags'])  if WhereIs('ascend-config'):
8        env.ParseConfig(['ascend-config','--libs','--cppflags'])
9    else:
10        print "ERROR: no ascend-config in path"
11        env.Append(
12            LIBS=["ascend"]
13            ,LIBPATH=["#/../../.."]
14            ,CPPPATH=["#/../../.."]
15        )
16    
17  srcs = ['mbwr.c','asc_mbwr.c']  srcs = ['mbwr.c','asc_mbwr.c']
18    
19  env.SharedLibrary('mbwr_ascend',srcs)  env.SharedLibrary('mbwr_ascend',srcs)
20    
21  fluids = ['ammonia','water','nitrogen']  env['fluids'] = ['ammonia','water','nitrogen','hydrogen','carbondioxide']
22    
23  srcs = ['ideal.c', 'helmholtz.c', 'asc_helmholtz.c'] \  srcs = ['ideal.c', 'helmholtz.c', 'asc_helmholtz.c'] \
24      + ["%s.c" % f for f in fluids]      + ["%s.c" % f for f in env['fluids']]
25    
26  env.SharedLibrary('helmholtz_ascend',srcs)  env.SharedLibrary('helmholtz_ascend',srcs)
27    
28    env.SConscript('python/SConscript',['env'])
29    

Legend:
Removed from v.2116  
changed lines
  Added in v.2117

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