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

Contents of /trunk/finley/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 481 - (show annotations)
Wed Feb 1 05:57:50 2006 UTC (13 years, 7 months ago) by jgs
File size: 1733 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 finley
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 solver_libs=mkl_libs+scsl_libs+umfpack_libs
9 solver_lib_paths=[mkl_lib_path,scsl_lib_path,umfpack_lib_path]
10
11 Export(["python_path"])
12 Export(["boost_path"])
13 Export(["cxx"])
14 Export(["cc"])
15 Export(["cxx_flags"])
16 Export(["cc_flags"])
17 Export(["boost_lib_path"])
18 Export(["boost_lib"])
19 Export(["sys_libs"])
20 Export(["solver_libs"])
21 Export(["solver_lib_paths"])
22 Export(["libinstall"])
23 Export(["pyinstall"])
24 Export(["incinstall"])
25
26 #
27 # set and export library directories
28
29 libdir = Dir(str(esysroot) + '/finley/lib')
30 Export(["libdir"])
31 libdir2 = Dir(str(esysroot) + '/lib')
32 Export(["libdir2"])
33
34 #
35 # set and export python directories
36
37 pydir = Dir(str(esysroot) + '/finley/lib/py_src')
38 Export(["pydir"])
39 pydir2 = Dir(str(esysroot) + '/esys/finley')
40 Export(["pydir2"])
41 if pyinstall != None:
42 pyinstall = Dir(str(pyinstall) + '/finley')
43 Export(["pyinstall"])
44
45 #
46 # set and export include directories
47
48 incdir = Dir(str(esysroot) + '/finley/inc')
49 Export(["incdir"])
50 incdir2 = Dir(str(esysroot) + '/inc')
51 Export(["incdir2"])
52 if incinstall != None:
53 Export(["incinstall"])
54
55 #
56 # print out build configuration for this module
57
58 print "Build configuration for module: finley"
59 print " cc: ", cc
60 print " cc_flags: ", cc_flags
61 print " cxx: ", cxx
62 print " cxx_flags: ", cxx_flags
63
64 #
65 # call the SConscript to do the actual build
66
67 SConscript(dirs=['src'], build_dir='obj', duplicate=0)
68 SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
69 SConscript(dirs=['test/MeshAdapter'], build_dir='obj/test/MeshAdapter', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26