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

Annotation of /trunk/escript/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 425 - (hide annotations)
Tue Jan 10 04:10:39 2006 UTC (13 years, 8 months ago) by gross
File size: 2567 byte(s)
The sparse solver can be called by paso now. 

the building has been change to reduce some code redundancy:
now all scons SCscripts are importing scons/esys_options.py which
imports platform specific settings. 



1 jgs 214 #
2     # set appropriate defaults for configuration variables
3 gross 425 esysroot=str(Dir('./..').abspath)
4     execfile(str(File(esysroot+"/scons/esys_options.py")))
5 jgs 214 #
6 jgs 309 # set and export library directories
7 jgs 214
8 jgs 190 libdir = Dir(str(esysroot) + '/escript/lib')
9 jgs 181 Export(["libdir"])
10 jgs 288 libdir2 = Dir(str(esysroot) + '/lib')
11     Export(["libdir2"])
12 jgs 181
13 jgs 214 #
14 jgs 309 # set and export python directories
15 jgs 268
16     pydir = Dir(str(esysroot) + '/escript/lib/py_src')
17     Export(["pydir"])
18 jgs 288 pydir2 = Dir(str(esysroot) + '/esys/escript')
19     Export(["pydir2"])
20 jgs 268
21 jgs 214
22 gross 425 if pyinstall: pyinstall = Dir(str(pyinstall) + '/escript')
23 jgs 191
24     Export(["python_path"])
25     Export(["boost_path"])
26 jgs 223 Export(["cxx"])
27 jgs 214 Export(["cxx_flags"])
28 jgs 277 Export(["boost_lib_path"])
29     Export(["boost_lib"])
30 gross 425 Export(["python_lib_path"])
31     Export(["python_lib"])
32 jgs 277 Export(["sys_libs"])
33 gross 425 Export(["pyinstall"])
34     Export(["libinstall"])
35 jgs 191
36 jgs 214 #
37     # print out build configuration for this module
38 jgs 191
39 jgs 214 print "Build configuration for module: escript"
40 jgs 223 print " cxx: ", cxx
41 gross 425 print " cxx_flags: ", cxx_flags
42 jgs 191
43 jgs 214 #
44     # call the SConscript to do the actual build
45    
46 jgs 268 SConscript(dirs=['src/Data'], build_dir='obj/Data', duplicate=0)
47     SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
48 jgs 288 SConscript(dirs=['test/Data'], build_dir='obj/test/Data', duplicate=0)
49     SConscript(dirs=['test/DataAlgorithmAdapter'], build_dir='obj/test/DataAlgorithmAdapter', duplicate=0)
50     SConscript(dirs=['test/DataArray'], build_dir='obj/test/DataArray', duplicate=0)
51     SConscript(dirs=['test/DataArrayView'], build_dir='obj/test/DataArrayView', duplicate=0)
52     SConscript(dirs=['test/DataBlocks2D'], build_dir='obj/test/DataBlocks2D', duplicate=0)
53     SConscript(dirs=['test/DataC'], build_dir='obj/test/DataC', duplicate=0)
54     SConscript(dirs=['test/DataCached'], build_dir='obj/test/DataCached', duplicate=0)
55     SConscript(dirs=['test/DataConstant'], build_dir='obj/test/DataConstant', duplicate=0)
56     SConscript(dirs=['test/DataEmpty'], build_dir='obj/test/DataEmpty', duplicate=0)
57     SConscript(dirs=['test/DataExpanded'], build_dir='obj/test/DataExpanded', duplicate=0)
58     SConscript(dirs=['test/DataFactory'], build_dir='obj/test/DataFactory', duplicate=0)
59     SConscript(dirs=['test/DataProf'], build_dir='obj/test/DataProf', duplicate=0)
60     SConscript(dirs=['test/DataTagged'], build_dir='obj/test/DataTagged', duplicate=0)
61     SConscript(dirs=['test/DataVariable'], build_dir='obj/test/DataVariable', duplicate=0)
62     SConscript(dirs=['test/DataVector'], build_dir='obj/test/DataVector', duplicate=0)
63     SConscript(dirs=['test/FunctionSpace'], build_dir='obj/test/FunctionSpace', duplicate=0)
64     SConscript(dirs=['test/Taipan'], build_dir='obj/test/Taipan', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26