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

Contents of /trunk/bruce/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (show annotations)
Wed Feb 1 05:57:50 2006 UTC (17 years, 2 months ago) by jgs
File size: 1541 byte(s)
add mechanism to install .h files to inc directories
(still need to specify full lists of .h files to install)

1 # Scons configuration file for bruce
2
3 #
4 # set appropriate defaults for configuration variables
5
6 esysroot=str(Dir('./..').abspath)
7 execfile(str(File(esysroot+"/scons/esys_options.py")))
8
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 Export(["libinstall"])
17 Export(["pyinstall"])
18 Export(["incinstall"])
19
20 #
21 # set and export library directories
22
23 libdir = Dir(str(esysroot) + '/bruce/lib')
24 Export(["libdir"])
25 libdir2 = Dir(str(esysroot) + '/lib')
26 Export(["libdir2"])
27
28 #
29 # set and export python directories
30
31 pydir = Dir(str(esysroot) + '/bruce/lib/py_src')
32 Export(["pydir"])
33 pydir2 = Dir(str(esysroot) + '/esys/bruce')
34 Export(["pydir2"])
35 if pyinstall != None:
36 pyinstall = Dir(str(pyinstall) + '/bruce')
37 Export(["pyinstall"])
38
39 #
40 # set and export include directories
41
42 incdir = Dir(str(esysroot) + '/bruce/inc')
43 Export(["incdir"])
44 incdir2 = Dir(str(esysroot) + '/inc')
45 Export(["incdir2"])
46 if incinstall != None:
47 Export(["incinstall"])
48
49 #
50 # print out build configuration for this module
51
52 print "Build configuration for module: bruce"
53 print " cxx: ", cxx
54 print " cxx_flags: ", cxx_flags
55
56 #
57 # call the SConscript to do the actual build
58
59 SConscript(dirs=['src'], build_dir='obj/src', duplicate=0)
60 SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
61 SConscript(dirs=['test/Bruce'], build_dir='obj/test/Bruce', duplicate=0)
62 SConscript(dirs=['test/BruceFactory'], build_dir='obj/test/BruceFactory', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26