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

Diff of /trunk/finley/SConstruct

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

revision 192 by jgs, Mon Nov 21 04:52:14 2005 UTC revision 214 by jgs, Thu Nov 24 05:15:26 2005 UTC
# Line 1  Line 1 
1  esysroot = None  # Scons configuration file for finley
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  libinstall = None  libinstall = None
16    dodebug = 0
17    usegcc = 0
18    
19    #
20    # import configuration variables passed in from
21    # calling SConscript (if any)
22    
23  Import('*')  Import('*')
24    
25  if esysroot == None:  #
26    esysroot = Dir('#..')  # retreive command-line arguments if any
 Export(["esysroot"])  
27    
28    if ARGUMENTS.get('libinstall',0):
29      libinstall = ARGUMENTS.get('libinstall',0)
30  Export(["libinstall"])  Export(["libinstall"])
31    
32    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  libdir = Dir(str(esysroot) + '/finley/lib')  libdir = Dir(str(esysroot) + '/finley/lib')
58  Export(["libdir"])  Export(["libdir"])
59    
60    #
61    # load and export configuration settings
62    
63  python_path = '/raid2/tools/python-2.3.4/include/python2.3'  python_path = '/raid2/tools/python-2.3.4/include/python2.3'
64  boost_path = '/raid2/tools/boost/include/boost-1_31'  boost_path = '/raid2/tools/boost/include/boost-1_31'
65    
66    cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -c -fpic -w1 -DSCSL'
67    cc_flags  = '-O0 -openmp -openmp_report0 -tpp2 -c99 -ansi_alias -no-gcc -c -fpic -w1 -DSCSL'
68    
69  Export(["python_path"])  Export(["python_path"])
70  Export(["boost_path"])  Export(["boost_path"])
   
 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'  
   
71  Export(["cxx_flags"])  Export(["cxx_flags"])
72    Export(["cc_flags"])
73    
74  cc_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'  #
75    # print out build configuration for this module
76    
77  Export(["cc_flags"])  print "############################################"
78    print "Build configuration for module: finley"
79    print "         dodebug: ", dodebug
80    print "          usegcc: ", usegcc
81    print "        platform: ", platform
82    print "        hostname: ", hostname
83    print "      libinstall: ", libinstall
84    print "############################################"
85    
86    #
87    # call the SConscript to do the actual build
88    
89  SConscript(['src/finleyC/SConscript','src/CPPAdapter/SConscript'], duplicate=0)  SConscript('src/finley/SConscript', src_dir='src/finley', build_dir='obj', duplicate=0)

Legend:
Removed from v.192  
changed lines
  Added in v.214

  ViewVC Help
Powered by ViewVC 1.1.26