1 |
# Scons configuration file for esysUtils |
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 |
esysroot=str(Dir('./..').abspath) |
14 |
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
15 |
|
16 |
Export(["python_path"]) |
17 |
Export(["boost_path"]) |
18 |
Export(["cxx"]) |
19 |
Export(["cxx_flags"]) |
20 |
Export(["ar_flags"]) |
21 |
|
22 |
# |
23 |
# print out build configuration for this module |
24 |
|
25 |
print "Build configuration for module: esysUtils" |
26 |
print " cxx: ", cxx |
27 |
print " cxx_flags: ", cxx_flags |
28 |
|
29 |
# set and export library directory |
30 |
libdir = Dir(str(esysroot) + '/esysUtils/lib') |
31 |
Export(["libdir"]) |
32 |
|
33 |
# |
34 |
# call the SConscript to do the actual build |
35 |
|
36 |
SConscript(dirs=['src'], build_dir='obj/src', duplicate=0) |
37 |
SConscript(dirs=['test/EsysException'], build_dir='obj/test/EsysException', duplicate=0) |