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

Contents of /trunk/models/johnpye/fprops/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2664 - (show annotations) (download)
Fri Jan 18 06:02:15 2013 UTC (10 years, 8 months ago) by jpye
File size: 956 byte(s)
Trying to debug fprops_triple_point for Toluene with pengrob correlation. Something strange is happening with fratio.
1 #!/usr/bin/env python
2 # Standalone 'SConstruct' to demonstrate how you can build
3 # this ASCEND external library against an existing copy of
4 # ASCEND installed on your system.
5
6 import os, platform, sys
7
8 deft = "default"
9 if platform.system()=="Windows":
10 deft = "mingw"
11
12 env = Environment(
13 toolpath=['scons']
14 ,tools = [deft ,'substinfile','swig']
15 ,ENV={"PATH":os.environ.get('PATH')}
16 ,HOST_PREFIX=os.environ.get('HOST_PREFIX')
17 )
18
19 if env['HOST_PREFIX']:
20 env['CC'] = "${HOST_PREFIX}-gcc"
21 print "CC =",env['CC']
22
23 if WhereIs('ascend-config'):
24 env.ParseConfig(['ascend-config','--libs','--cppflags'])
25 env['WITH_ASCEND'] = 1
26 else:
27 print "WARNING: no ascend-config in path, won't build ASCEND wrapper"
28 env['WITH_ASCEND'] = 0
29
30 env.Append(
31 CFLAGS=['-g','-Wall']
32 )
33
34 env['EXTLIB_SUFFIX'] = "_ascend" + env.subst("$SHLIBSUFFIX")
35 env['EXTLIB_PREFIX'] = env.subst("$SHLIBPREFIX")
36 env['extfns'] = []
37 env['WITH_PYTHON'] = 1
38
39 env.SConscript("SConscript",["env"])
40

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