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

Annotation of /trunk/esysUtils/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.26