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

Annotation of /trunk/bruce/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 465 - (hide annotations)
Wed Jan 25 01:08:17 2006 UTC (15 years, 10 months ago) by jgs
File size: 1287 byte(s)
reorganise bruce source tree:
move all from src/Bruce -> src
remove inc
adjust all #includes appropriately


1 jgs 214 # Scons configuration file for bruce
2 jgs 455
3     #
4     # set appropriate defaults for configuration variables
5    
6 gross 425 esysroot=str(Dir('./..').abspath)
7     execfile(str(File(esysroot+"/scons/esys_options.py")))
8 jgs 455
9     Export(["python_path"])
10     Export(["boost_path"])
11     Export(["cxx"])
12     Export(["cxx_flags"])
13     Export(["boost_lib_path"])
14     Export(["boost_lib"])
15     Export(["sys_libs"])
16 jgs 457 Export(["libinstall"])
17 jgs 455
18 jgs 214 #
19 jgs 288 # set and export library directories
20 jgs 214
21 jgs 190 libdir = Dir(str(esysroot) + '/bruce/lib')
22 jgs 176 Export(["libdir"])
23 jgs 288 libdir2 = Dir(str(esysroot) + '/lib')
24     Export(["libdir2"])
25 jgs 176
26 jgs 214 #
27 jgs 288 # set and export python directories
28 jgs 268
29     pydir = Dir(str(esysroot) + '/bruce/lib/py_src')
30     Export(["pydir"])
31 jgs 288 pydir2 = Dir(str(esysroot) + '/esys/bruce')
32     Export(["pydir2"])
33 jgs 457 if pyinstall != None:
34     pyinstall = Dir(str(pyinstall) + '/bruce')
35     Export(["pyinstall"])
36 jgs 268
37 jgs 214 #
38     # print out build configuration for this module
39 jgs 191
40 jgs 214 print "Build configuration for module: bruce"
41 jgs 223 print " cxx: ", cxx
42 gross 425 print " cxx_flags: ", cxx_flags
43 jgs 191
44 jgs 214 #
45     # call the SConscript to do the actual build
46    
47 jgs 465 SConscript(dirs=['src'], build_dir='obj/src', duplicate=0)
48 jgs 268 SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
49 jgs 288 SConscript(dirs=['test/Bruce'], build_dir='obj/test/Bruce', duplicate=0)
50     SConscript(dirs=['test/BruceFactory'], build_dir='obj/test/BruceFactory', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26