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

Annotation of /trunk/bruce/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 425 - (hide annotations)
Tue Jan 10 04:10:39 2006 UTC (15 years, 3 months ago) by gross
File size: 1121 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 # Scons configuration file for bruce
2 gross 425 esysroot=str(Dir('./..').abspath)
3     execfile(str(File(esysroot+"/scons/esys_options.py")))
4 jgs 214 #
5 jgs 288 # set and export library directories
6 jgs 214
7 jgs 190 libdir = Dir(str(esysroot) + '/bruce/lib')
8 jgs 176 Export(["libdir"])
9 jgs 288 libdir2 = Dir(str(esysroot) + '/lib')
10     Export(["libdir2"])
11 jgs 176
12 jgs 214 #
13 jgs 288 # set and export python directories
14 jgs 268
15     pydir = Dir(str(esysroot) + '/bruce/lib/py_src')
16     Export(["pydir"])
17 jgs 288 pydir2 = Dir(str(esysroot) + '/esys/bruce')
18     Export(["pydir2"])
19 jgs 268
20 jgs 191 Export(["python_path"])
21     Export(["boost_path"])
22 jgs 223 Export(["cxx"])
23 jgs 214 Export(["cxx_flags"])
24 jgs 277 Export(["boost_lib_path"])
25     Export(["boost_lib"])
26     Export(["sys_libs"])
27 jgs 191
28 jgs 214 #
29     # print out build configuration for this module
30 jgs 191
31 jgs 214 print "Build configuration for module: bruce"
32 jgs 223 print " cxx: ", cxx
33 gross 425 print " cxx_flags: ", cxx_flags
34 jgs 191
35 jgs 214 #
36     # call the SConscript to do the actual build
37    
38 jgs 268 SConscript(dirs=['src/Bruce'], build_dir='obj/Bruce', duplicate=0)
39     SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
40 jgs 288 SConscript(dirs=['test/Bruce'], build_dir='obj/test/Bruce', duplicate=0)
41     SConscript(dirs=['test/BruceFactory'], build_dir='obj/test/BruceFactory', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26