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

Diff of /trunk/escript/SConstruct

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

revision 191 by jgs, Mon Nov 21 04:10:12 2005 UTC revision 474 by jgs, Mon Jan 30 04:23:44 2006 UTC
# Line 1  Line 1 
1  esysroot = None  # Scons configuration file for escript
2    
3  Import('*')  #
4    # set appropriate defaults for configuration variables
5  if esysroot == None:  esysroot=str(Dir('./..').abspath)
6    esysroot = Dir('#..')  execfile(str(File(esysroot+"/scons/esys_options.py")))
 Export(["esysroot"])  
   
 libdir = Dir(str(esysroot) + '/escript/lib')  
 Export(["libdir"])  
   
 python_path = '/raid2/tools/python-2.3.4/include/python2.3'  
 boost_path = '/raid2/tools/boost/include/boost-1_31'  
7    
8  Export(["python_path"])  Export(["python_path"])
9  Export(["boost_path"])  Export(["boost_path"])
10    Export(["cxx"])
11    Export(["cxx_flags"])
12    Export(["boost_lib_path"])
13    Export(["boost_lib"])
14    Export(["python_lib_path"])
15    Export(["python_lib"])
16    Export(["sys_libs"])
17    Export(["libinstall"])
18    
19  cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'  #
20    # set and export library directories
21    
22  Export(["cxx_flags"])  libdir = Dir(str(esysroot) + '/escript/lib')
23    Export(["libdir"])
24    libdir2 = Dir(str(esysroot) + '/lib')
25    Export(["libdir2"])
26    
27    #
28    # set and export python directories
29    
30  SConscript('src/Data/SConscript', src_dir='src/Data', build_dir='obj', duplicate=0)  pydir = Dir(str(esysroot) + '/escript/lib/py_src')
31    Export(["pydir"])
32    pydir2 = Dir(str(esysroot) + '/esys/escript')
33    Export(["pydir2"])
34    if pyinstall != None:
35      pyinstall = Dir(str(pyinstall) + '/escript')
36      Export(["pyinstall"])
37    
38    #
39    # print out build configuration for this module
40    
41    print "Build configuration for module: escript"
42    print "             cxx: ", cxx
43    print "       cxx_flags: ", cxx_flags
44    
45    #
46    # call the SConscripts to do the actual build
47    
48    SConscript(dirs=['src'], build_dir='obj', duplicate=0)
49    SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
50    SConscript(dirs=['test/Data'], build_dir='obj/test/Data', duplicate=0)
51    SConscript(dirs=['test/DataAlgorithmAdapter'], build_dir='obj/test/DataAlgorithmAdapter', duplicate=0)
52    SConscript(dirs=['test/DataArray'], build_dir='obj/test/DataArray', duplicate=0)
53    SConscript(dirs=['test/DataArrayView'], build_dir='obj/test/DataArrayView', duplicate=0)
54    SConscript(dirs=['test/DataBlocks2D'], build_dir='obj/test/DataBlocks2D', duplicate=0)
55    SConscript(dirs=['test/DataC'], build_dir='obj/test/DataC', duplicate=0)
56    SConscript(dirs=['test/DataCached'], build_dir='obj/test/DataCached', duplicate=0)
57    SConscript(dirs=['test/DataConstant'], build_dir='obj/test/DataConstant', duplicate=0)
58    SConscript(dirs=['test/DataEmpty'], build_dir='obj/test/DataEmpty', duplicate=0)
59    SConscript(dirs=['test/DataExpanded'], build_dir='obj/test/DataExpanded', duplicate=0)
60    SConscript(dirs=['test/DataFactory'], build_dir='obj/test/DataFactory', duplicate=0)
61    SConscript(dirs=['test/DataProf'], build_dir='obj/test/DataProf', duplicate=0)
62    SConscript(dirs=['test/DataTagged'], build_dir='obj/test/DataTagged', duplicate=0)
63    SConscript(dirs=['test/DataVariable'], build_dir='obj/test/DataVariable', duplicate=0)
64    SConscript(dirs=['test/DataVector'], build_dir='obj/test/DataVector', duplicate=0)
65    SConscript(dirs=['test/FunctionSpace'], build_dir='obj/test/FunctionSpace', duplicate=0)
66    SConscript(dirs=['test/Taipan'], build_dir='obj/test/Taipan', duplicate=0)

Legend:
Removed from v.191  
changed lines
  Added in v.474

  ViewVC Help
Powered by ViewVC 1.1.26