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 |
|
18 |
# |
19 |
# set and export library directories |
20 |
|
21 |
libdir = Dir(str(esysroot) + '/bruce/lib') |
22 |
Export(["libdir"]) |
23 |
libdir2 = Dir(str(esysroot) + '/lib') |
24 |
Export(["libdir2"]) |
25 |
|
26 |
# |
27 |
# set and export python directories |
28 |
|
29 |
pydir = Dir(str(esysroot) + '/bruce/lib/py_src') |
30 |
Export(["pydir"]) |
31 |
pydir2 = Dir(str(esysroot) + '/esys/bruce') |
32 |
Export(["pydir2"]) |
33 |
if pyinstall != None: |
34 |
pyinstall = Dir(str(pyinstall) + '/bruce') |
35 |
Export(["pyinstall"]) |
36 |
|
37 |
# |
38 |
# print out build configuration for this module |
39 |
|
40 |
print "Build configuration for module: bruce" |
41 |
print " cxx: ", cxx |
42 |
print " cxx_flags: ", cxx_flags |
43 |
|
44 |
# |
45 |
# call the SConscript to do the actual build |
46 |
|
47 |
SConscript(dirs=['src/Bruce'], build_dir='obj/Bruce', duplicate=0) |
48 |
SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0) |
49 |
SConscript(dirs=['test/Bruce'], build_dir='obj/test/Bruce', duplicate=0) |
50 |
SConscript(dirs=['test/BruceFactory'], build_dir='obj/test/BruceFactory', duplicate=0) |