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

Contents of /trunk/finley/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 602 - (show annotations)
Fri Mar 17 06:57:46 2006 UTC (13 years, 5 months ago) by gross
File size: 1803 byte(s)
more work on pyvisi integration
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(["papi_path"])
14 Export(["cxx"])
15 Export(["cc"])
16 Export(["cxx_flags"])
17 Export(["cc_flags"])
18 Export(["boost_lib_path"])
19 Export(["boost_lib"])
20 Export(["sys_libs"])
21 Export(["solver_libs"])
22 Export(["solver_lib_paths"])
23 Export(["papi_libs"])
24 Export(["papi_lib_path"])
25 Export(["libinstall"])
26 Export(["pyinstall"])
27 Export(["incinstall"])
28
29 #
30 # set and export library directories
31
32 libdir = Dir(str(esysroot) + '/finley/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) + '/finley/lib/py_src')
41 Export(["pydir"])
42 pydir2 = Dir(str(esysroot) + '/esys/finley')
43 Export(["pydir2"])
44 if pyinstall != None:
45 pyinstall = Dir(str(pyinstall) + '/finley')
46 Export(["pyinstall"])
47
48 #
49 # set and export include directories
50
51 incdir = Dir(str(esysroot) + '/finley/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: finley"
62 print " cc: ", cc
63 print " cc_flags: ", cc_flags
64 print " cxx: ", cxx
65 print " cxx_flags: ", cxx_flags
66
67 #
68 # call the SConscript to do the actual build
69
70 SConscript(dirs=['src'], build_dir='obj', duplicate=0)
71 SConscript(dirs=['py_src'], build_dir='obj/py_src', duplicate=0)
72 SConscript(dirs=['test/MeshAdapter'], build_dir='obj/test/MeshAdapter', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26