/[escript]/trunk/bruce/src/Bruce/SConscript
ViewVC logotype

Annotation of /trunk/bruce/src/Bruce/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 192 - (hide annotations)
Mon Nov 21 04:52:14 2005 UTC (13 years, 8 months ago) by jgs
File size: 770 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 176 Import('*')
4    
5     import os
6 jgs 190 import string
7 jgs 176
8 jgs 190 bruce_path = str(esysroot) + '/bruce/inc'
9     escript_path = str(esysroot) + '/escript/inc'
10     esysUtils_path = str(esysroot) + '/esysUtils/inc'
11 jgs 177
12 jgs 190 cpp_path = [bruce_path,
13     escript_path,
14     esysUtils_path,
15     python_path,
16     boost_path]
17    
18 jgs 176 lib = 'brucecpp'
19 jgs 177 sources = ['Bruce.cpp',
20     'BruceFactory.cpp',
21     'brucecpp.cpp']
22 jgs 176
23     bruce_env = Environment(ENV = os.environ)
24    
25     bruce_env.Replace(CXX = 'icc')
26     bruce_env.Replace(SHOBJSUFFIX = '.lo')
27     bruce_env.Replace(CXXFLAGS = cxx_flags)
28     bruce_env.Replace(CPPPATH = cpp_path)
29    
30     bruce_lib = bruce_env.SharedLibrary(lib, sources)
31     bruce_env.Install(libdir, bruce_lib)
32 jgs 192
33     if libinstall != None:
34     bruce_env.Install(libinstall, bruce_lib)

  ViewVC Help
Powered by ViewVC 1.1.26