/[escript]/trunk/finley/src/CPPAdapter/SConscript
ViewVC logotype

Contents of /trunk/finley/src/CPPAdapter/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 192 - (show annotations)
Mon Nov 21 04:52:14 2005 UTC (14 years, 8 months ago) by jgs
File size: 962 byte(s)
pass in top level install directory for finley/escript/bruce/paso
libraries when building via top level scons script

1 libinstall = None
2
3 Import('*')
4
5 import os
6 import string
7
8 escript_path = str(esysroot) + '/escript/inc'
9 esysUtils_path = str(esysroot) + '/esysUtils/inc'
10 finley_path = str(esysroot) + '/finley/inc'
11 paso_path = str(esysroot) + '/paso/inc'
12
13 cpp_path = [escript_path,
14 esysUtils_path,
15 finley_path,
16 paso_path,
17 python_path,
18 boost_path]
19
20 lib = 'finleycpp'
21 sources = ['FinleyError.cpp',
22 'MeshAdapter.cpp',
23 'MeshAdapterFactory.cpp',
24 'SystemMatrixAdapter.cpp',
25 'finleycpp.cpp']
26
27 finleycpp_env = Environment(ENV = os.environ)
28
29 finleycpp_env.Replace(CXX = 'icc')
30 finleycpp_env.Replace(SHOBJSUFFIX = '.lo')
31 finleycpp_env.Replace(CXXFLAGS = cxx_flags)
32 finleycpp_env.Replace(CPPPATH = cpp_path)
33
34 finleycpp_lib = finleycpp_env.SharedLibrary(lib, sources)
35 finleycpp_env.Install(libdir, finleycpp_lib)
36
37 if libinstall != None:
38 finleycpp_env.Install(libinstall, finleycpp_lib)

  ViewVC Help
Powered by ViewVC 1.1.26