/[escript]/trunk/escript/SConstruct
ViewVC logotype

Annotation of /trunk/escript/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 214 - (hide annotations)
Thu Nov 24 05:15:26 2005 UTC (13 years, 7 months ago) by jgs
File size: 1730 byte(s)
collect all information needed to determine build
configuration (ie: debug/nodebug, host, platform etc)

1 jgs 214 # Scons configuration file for escript
2    
3     import os
4    
5     #
6     # ensure correct versions of python and scons
7    
8     EnsurePythonVersion(2,3)
9     EnsureSConsVersion(0,96)
10    
11     #
12     # set appropriate defaults for configuration variables
13    
14     esysroot = Dir('#..')
15 jgs 192 libinstall = None
16 jgs 214 dodebug = 0
17     usegcc = 0
18 jgs 190
19 jgs 214 #
20     # import configuration variables passed in from
21     # calling SConscript (if any)
22    
23 jgs 190 Import('*')
24    
25 jgs 214 #
26     # retreive command-line arguments if any
27 jgs 190
28 jgs 214 if ARGUMENTS.get('libinstall',0):
29     libinstall = ARGUMENTS.get('libinstall',0)
30 jgs 192 Export(["libinstall"])
31    
32 jgs 214 if ARGUMENTS.get('debug',0):
33     dodebug = 1
34    
35     if ARGUMENTS.get('usegcc',0):
36     usegcc = 1
37    
38     #
39     # determine platform
40    
41     env = Environment(ENV = os.environ)
42     platform = env['PLATFORM']
43    
44     #
45     # determine hostname
46    
47     hostname = os.environ['HOSTNAME']
48    
49     #
50     # export esysroot
51    
52     Export(["esysroot"])
53    
54     #
55     # set and export library directory
56    
57 jgs 190 libdir = Dir(str(esysroot) + '/escript/lib')
58 jgs 181 Export(["libdir"])
59    
60 jgs 214 #
61     # load and export configuration settings
62    
63 jgs 191 python_path = '/raid2/tools/python-2.3.4/include/python2.3'
64     boost_path = '/raid2/tools/boost/include/boost-1_31'
65    
66 jgs 214 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'
67    
68 jgs 191 Export(["python_path"])
69     Export(["boost_path"])
70 jgs 214 Export(["cxx_flags"])
71 jgs 191
72 jgs 214 #
73     # print out build configuration for this module
74 jgs 191
75 jgs 214 print "############################################"
76     print "Build configuration for module: escript"
77     print " dodebug: ", dodebug
78     print " usegcc: ", usegcc
79     print " platform: ", platform
80     print " hostname: ", hostname
81     print " libinstall: ", libinstall
82     print "############################################"
83 jgs 191
84 jgs 214 #
85     # call the SConscript to do the actual build
86    
87 jgs 181 SConscript('src/Data/SConscript', src_dir='src/Data', build_dir='obj', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26