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

Annotation of /trunk/finley/src/CPPAdapter/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 192 - (hide annotations)
Mon Nov 21 04:52:14 2005 UTC (15 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 jgs 192 libinstall = None
2    
3 jgs 182 Import('*')
4    
5     import os
6 jgs 190 import string
7 jgs 182
8 jgs 191 escript_path = str(esysroot) + '/escript/inc'
9     esysUtils_path = str(esysroot) + '/esysUtils/inc'
10 jgs 190 finley_path = str(esysroot) + '/finley/inc'
11     paso_path = str(esysroot) + '/paso/inc'
12 jgs 182
13 jgs 190 cpp_path = [escript_path,
14     esysUtils_path,
15     finley_path,
16     paso_path,
17     python_path,
18     boost_path]
19    
20 jgs 182 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 jgs 192
37     if libinstall != None:
38     finleycpp_env.Install(libinstall, finleycpp_lib)

  ViewVC Help
Powered by ViewVC 1.1.26