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

Contents of /trunk/escript/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 643 - (show annotations)
Fri Mar 24 00:28:41 2006 UTC (13 years, 5 months ago) by elspeth
File size: 3287 byte(s)
More copyright info added.

1 # Scons configuration file for escript
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(["boost_lib_path"])
21 Export(["boost_lib"])
22 Export(["python_lib_path"])
23 Export(["python_lib"])
24 Export(["sys_libs"])
25 Export(["libinstall"])
26 Export(["pyinstall"])
27 Export(["incinstall"])
28
29 #
30 # set and export library directories
31
32 libdir = Dir(str(esysroot) + '/escript/lib')
33 Export(["libdir"])
34 libdir2 = Dir(str(esysroot) + '/lib')
35 Export(["libdir2"])
36
37 #
38 # set and export python directories
39
40 pydir = Dir(str(esysroot) + '/escript/lib/py_src')
41 Export(["pydir"])
42 pydir2 = Dir(str(esysroot) + '/esys/escript')
43 Export(["pydir2"])
44 if pyinstall != None:
45 pyinstall = Dir(str(pyinstall) + '/escript')
46 Export(["pyinstall"])
47
48 #
49 # set and export include directories
50
51 incdir = Dir(str(esysroot) + '/escript/inc')
52 Export(["incdir"])
53 incdir2 = Dir(str(esysroot) + '/inc')
54 Export(["incdir2"])
55 if incinstall != None:
56 Export(["incinstall"])
57
58 #
59 # print out build configuration for this module
60
61 print "Build configuration for module: escript"
62 print " cxx: ", cxx
63 print " cxx_flags: ", cxx_flags
64
65 #
66 # call the SConscripts to do the actual build
67
68 SConscript(dirs=['src'], build_dir='obj', duplicate=0)
69 SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
70 SConscript(dirs=['test/Data'], build_dir='obj/test/Data', duplicate=0)
71 SConscript(dirs=['test/DataAlgorithmAdapter'], build_dir='obj/test/DataAlgorithmAdapter', duplicate=0)
72 SConscript(dirs=['test/DataArray'], build_dir='obj/test/DataArray', duplicate=0)
73 SConscript(dirs=['test/DataArrayView'], build_dir='obj/test/DataArrayView', duplicate=0)
74 SConscript(dirs=['test/DataBlocks2D'], build_dir='obj/test/DataBlocks2D', duplicate=0)
75 SConscript(dirs=['test/DataC'], build_dir='obj/test/DataC', duplicate=0)
76 SConscript(dirs=['test/DataCached'], build_dir='obj/test/DataCached', duplicate=0)
77 SConscript(dirs=['test/DataConstant'], build_dir='obj/test/DataConstant', duplicate=0)
78 SConscript(dirs=['test/DataEmpty'], build_dir='obj/test/DataEmpty', duplicate=0)
79 SConscript(dirs=['test/DataExpanded'], build_dir='obj/test/DataExpanded', duplicate=0)
80 SConscript(dirs=['test/DataFactory'], build_dir='obj/test/DataFactory', duplicate=0)
81 SConscript(dirs=['test/DataProf'], build_dir='obj/test/DataProf', duplicate=0)
82 SConscript(dirs=['test/DataTagged'], build_dir='obj/test/DataTagged', duplicate=0)
83 SConscript(dirs=['test/DataVariable'], build_dir='obj/test/DataVariable', duplicate=0)
84 SConscript(dirs=['test/DataVector'], build_dir='obj/test/DataVector', duplicate=0)
85 SConscript(dirs=['test/FunctionSpace'], build_dir='obj/test/FunctionSpace', duplicate=0)
86 SConscript(dirs=['test/Taipan'], build_dir='obj/test/Taipan', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26