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 |
481 |
Export(["pyinstall"]) |
18 |
|
|
Export(["incinstall"]) |
19 |
jgs |
455 |
|
20 |
jgs |
214 |
# |
21 |
jgs |
288 |
# set and export library directories |
22 |
jgs |
214 |
|
23 |
jgs |
190 |
libdir = Dir(str(esysroot) + '/bruce/lib') |
24 |
jgs |
176 |
Export(["libdir"]) |
25 |
jgs |
288 |
libdir2 = Dir(str(esysroot) + '/lib') |
26 |
|
|
Export(["libdir2"]) |
27 |
jgs |
176 |
|
28 |
jgs |
214 |
# |
29 |
jgs |
288 |
# set and export python directories |
30 |
jgs |
268 |
|
31 |
|
|
pydir = Dir(str(esysroot) + '/bruce/lib/py_src') |
32 |
|
|
Export(["pydir"]) |
33 |
jgs |
288 |
pydir2 = Dir(str(esysroot) + '/esys/bruce') |
34 |
|
|
Export(["pydir2"]) |
35 |
jgs |
457 |
if pyinstall != None: |
36 |
|
|
pyinstall = Dir(str(pyinstall) + '/bruce') |
37 |
|
|
Export(["pyinstall"]) |
38 |
jgs |
268 |
|
39 |
jgs |
214 |
# |
40 |
jgs |
481 |
# 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 |
jgs |
214 |
# print out build configuration for this module |
51 |
jgs |
191 |
|
52 |
jgs |
214 |
print "Build configuration for module: bruce" |
53 |
jgs |
223 |
print " cxx: ", cxx |
54 |
gross |
425 |
print " cxx_flags: ", cxx_flags |
55 |
jgs |
191 |
|
56 |
jgs |
214 |
# |
57 |
|
|
# call the SConscript to do the actual build |
58 |
|
|
|
59 |
jgs |
465 |
SConscript(dirs=['src'], build_dir='obj/src', duplicate=0) |
60 |
jgs |
268 |
SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0) |
61 |
jgs |
288 |
SConscript(dirs=['test/Bruce'], build_dir='obj/test/Bruce', duplicate=0) |
62 |
|
|
SConscript(dirs=['test/BruceFactory'], build_dir='obj/test/BruceFactory', duplicate=0) |