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

Contents of /trunk/finley/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


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

1 # Scons configuration file for finley
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 solver_libs=mkl_libs+scsl_libs+umfpack_libs
17 solver_lib_paths=[mkl_lib_path,scsl_lib_path,umfpack_lib_path]
18
19 Export(["python_path"])
20 Export(["boost_path"])
21 Export(["papi_path"])
22 Export(["cxx"])
23 Export(["cc"])
24 Export(["cxx_flags"])
25 Export(["cc_flags"])
26 Export(["boost_lib_path"])
27 Export(["boost_lib"])
28 Export(["sys_libs"])
29 Export(["solver_libs"])
30 Export(["solver_lib_paths"])
31 Export(["papi_libs"])
32 Export(["papi_lib_path"])
33 Export(["libinstall"])
34 Export(["pyinstall"])
35 Export(["incinstall"])
36
37 #
38 # set and export library directories
39
40 libdir = Dir(str(esysroot) + '/finley/lib')
41 Export(["libdir"])
42 libdir2 = Dir(str(esysroot) + '/lib')
43 Export(["libdir2"])
44
45 #
46 # set and export python directories
47
48 pydir = Dir(str(esysroot) + '/finley/lib/py_src')
49 Export(["pydir"])
50 pydir2 = Dir(str(esysroot) + '/esys/finley')
51 Export(["pydir2"])
52 if pyinstall != None:
53 pyinstall = Dir(str(pyinstall) + '/finley')
54 Export(["pyinstall"])
55
56 #
57 # set and export include directories
58
59 incdir = Dir(str(esysroot) + '/finley/inc')
60 Export(["incdir"])
61 incdir2 = Dir(str(esysroot) + '/inc')
62 Export(["incdir2"])
63 if incinstall != None:
64 Export(["incinstall"])
65
66 #
67 # print out build configuration for this module
68
69 print "Build configuration for module: finley"
70 print " cc: ", cc
71 print " cc_flags: ", cc_flags
72 print " cxx: ", cxx
73 print " cxx_flags: ", cxx_flags
74
75 #
76 # call the SConscript to do the actual build
77
78 SConscript(dirs=['src'], build_dir='obj', duplicate=0)
79 SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
80 SConscript(dirs=['test/MeshAdapter'], build_dir='obj/test/MeshAdapter', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26