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

Contents of /trunk/escript/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (show annotations)
Wed Feb 1 05:57:50 2006 UTC (13 years, 5 months ago) by jgs
File size: 2865 byte(s)
add mechanism to install .h files to inc directories
(still need to specify full lists of .h files to install)

1 # Scons configuration file for escript
2
3 #
4 # set appropriate defaults for configuration variables
5 esysroot=str(Dir('./..').abspath)
6 execfile(str(File(esysroot+"/scons/esys_options.py")))
7
8 Export(["python_path"])
9 Export(["boost_path"])
10 Export(["cxx"])
11 Export(["cxx_flags"])
12 Export(["boost_lib_path"])
13 Export(["boost_lib"])
14 Export(["python_lib_path"])
15 Export(["python_lib"])
16 Export(["sys_libs"])
17 Export(["libinstall"])
18 Export(["pyinstall"])
19 Export(["incinstall"])
20
21 #
22 # set and export library directories
23
24 libdir = Dir(str(esysroot) + '/escript/lib')
25 Export(["libdir"])
26 libdir2 = Dir(str(esysroot) + '/lib')
27 Export(["libdir2"])
28
29 #
30 # set and export python directories
31
32 pydir = Dir(str(esysroot) + '/escript/lib/py_src')
33 Export(["pydir"])
34 pydir2 = Dir(str(esysroot) + '/esys/escript')
35 Export(["pydir2"])
36 if pyinstall != None:
37 pyinstall = Dir(str(pyinstall) + '/escript')
38 Export(["pyinstall"])
39
40 #
41 # set and export include directories
42
43 incdir = Dir(str(esysroot) + '/escript/inc')
44 Export(["incdir"])
45 incdir2 = Dir(str(esysroot) + '/inc')
46 Export(["incdir2"])
47 if incinstall != None:
48 Export(["incinstall"])
49
50 #
51 # print out build configuration for this module
52
53 print "Build configuration for module: escript"
54 print " cxx: ", cxx
55 print " cxx_flags: ", cxx_flags
56
57 #
58 # call the SConscripts to do the actual build
59
60 SConscript(dirs=['src'], build_dir='obj', duplicate=0)
61 SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
62 SConscript(dirs=['test/Data'], build_dir='obj/test/Data', duplicate=0)
63 SConscript(dirs=['test/DataAlgorithmAdapter'], build_dir='obj/test/DataAlgorithmAdapter', duplicate=0)
64 SConscript(dirs=['test/DataArray'], build_dir='obj/test/DataArray', duplicate=0)
65 SConscript(dirs=['test/DataArrayView'], build_dir='obj/test/DataArrayView', duplicate=0)
66 SConscript(dirs=['test/DataBlocks2D'], build_dir='obj/test/DataBlocks2D', duplicate=0)
67 SConscript(dirs=['test/DataC'], build_dir='obj/test/DataC', duplicate=0)
68 SConscript(dirs=['test/DataCached'], build_dir='obj/test/DataCached', duplicate=0)
69 SConscript(dirs=['test/DataConstant'], build_dir='obj/test/DataConstant', duplicate=0)
70 SConscript(dirs=['test/DataEmpty'], build_dir='obj/test/DataEmpty', duplicate=0)
71 SConscript(dirs=['test/DataExpanded'], build_dir='obj/test/DataExpanded', duplicate=0)
72 SConscript(dirs=['test/DataFactory'], build_dir='obj/test/DataFactory', duplicate=0)
73 SConscript(dirs=['test/DataProf'], build_dir='obj/test/DataProf', duplicate=0)
74 SConscript(dirs=['test/DataTagged'], build_dir='obj/test/DataTagged', duplicate=0)
75 SConscript(dirs=['test/DataVariable'], build_dir='obj/test/DataVariable', duplicate=0)
76 SConscript(dirs=['test/DataVector'], build_dir='obj/test/DataVector', duplicate=0)
77 SConscript(dirs=['test/FunctionSpace'], build_dir='obj/test/FunctionSpace', duplicate=0)
78 SConscript(dirs=['test/Taipan'], build_dir='obj/test/Taipan', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26