1 |
# Scons configuration file for bruce |
2 |
|
3 |
# Copyright 2006 by ACcESS MNRF |
4 |
# |
5 |
# http://www.access.edu.au |
6 |
# Primary Business: Queensland, Australia |
7 |
# Licensed under the Open Software License version 3.0 |
8 |
# http://www.opensource.org/licenses/osl-3.0.php |
9 |
# |
10 |
# |
11 |
# |
12 |
# set appropriate defaults for configuration variables |
13 |
|
14 |
esysroot=str(Dir('./..').abspath) |
15 |
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
16 |
|
17 |
Export(["python_path"]) |
18 |
Export(["boost_path"]) |
19 |
Export(["cxx"]) |
20 |
Export(["cxx_flags"]) |
21 |
Export(["boost_lib_path"]) |
22 |
Export(["boost_lib"]) |
23 |
Export(["sys_libs"]) |
24 |
Export(["libinstall"]) |
25 |
Export(["pyinstall"]) |
26 |
Export(["incinstall"]) |
27 |
|
28 |
# |
29 |
# set and export library directories |
30 |
|
31 |
libdir = Dir(str(esysroot) + '/bruce/lib') |
32 |
Export(["libdir"]) |
33 |
libdir2 = Dir(str(esysroot) + '/lib') |
34 |
Export(["libdir2"]) |
35 |
|
36 |
# |
37 |
# set and export python directories |
38 |
|
39 |
pydir = Dir(str(esysroot) + '/bruce/lib/py_src') |
40 |
Export(["pydir"]) |
41 |
pydir2 = Dir(str(esysroot) + '/esys/bruce') |
42 |
Export(["pydir2"]) |
43 |
if pyinstall != None: |
44 |
pyinstall = Dir(str(pyinstall) + '/bruce') |
45 |
Export(["pyinstall"]) |
46 |
|
47 |
# |
48 |
# set and export include directories |
49 |
|
50 |
incdir = Dir(str(esysroot) + '/bruce/inc') |
51 |
Export(["incdir"]) |
52 |
incdir2 = Dir(str(esysroot) + '/inc') |
53 |
Export(["incdir2"]) |
54 |
if incinstall != None: |
55 |
Export(["incinstall"]) |
56 |
|
57 |
# |
58 |
# print out build configuration for this module |
59 |
|
60 |
print "Build configuration for module: bruce" |
61 |
print " cxx: ", cxx |
62 |
print " cxx_flags: ", cxx_flags |
63 |
|
64 |
# |
65 |
# call the SConscript to do the actual build |
66 |
|
67 |
SConscript(dirs=['src'], build_dir='obj/src', duplicate=0) |
68 |
SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0) |
69 |
SConscript(dirs=['test/Bruce'], build_dir='obj/test/Bruce', duplicate=0) |
70 |
SConscript(dirs=['test/BruceFactory'], build_dir='obj/test/BruceFactory', duplicate=0) |