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

Contents of /trunk/bruce/src/Bruce/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 223 - (show annotations)
Thu Nov 24 23:12:13 2005 UTC (13 years, 7 months ago) by jgs
File size: 768 byte(s)
pass in cc/cxx settings from config file
1 libinstall = None
2
3 Import('*')
4
5 import os
6 import string
7
8 bruce_path = str(esysroot) + '/bruce/inc'
9 escript_path = str(esysroot) + '/escript/inc'
10 esysUtils_path = str(esysroot) + '/esysUtils/inc'
11
12 cpp_path = [bruce_path,
13 escript_path,
14 esysUtils_path,
15 python_path,
16 boost_path]
17
18 lib = 'brucecpp'
19 sources = ['Bruce.cpp',
20 'BruceFactory.cpp',
21 'brucecpp.cpp']
22
23 bruce_env = Environment(ENV = os.environ)
24
25 bruce_env.Replace(CXX = cxx)
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
33 if libinstall != None:
34 bruce_env.Install(libinstall, bruce_lib)

  ViewVC Help
Powered by ViewVC 1.1.26