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

Diff of /trunk/bruce/src/Bruce/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 276 by jgs, Thu Nov 24 23:12:13 2005 UTC revision 277 by jgs, Wed Nov 30 04:52:39 2005 UTC
# Line 5  Import('*') Line 5  Import('*')
5  import os  import os
6  import string  import string
7    
8    libname = 'brucecpp'
9    
10  bruce_path = str(esysroot) + '/bruce/inc'  bruce_path = str(esysroot) + '/bruce/inc'
11  escript_path = str(esysroot) + '/escript/inc'  escript_path = str(esysroot) + '/escript/inc'
12  esysUtils_path = str(esysroot) + '/esysUtils/inc'  esysUtils_path = str(esysroot) + '/esysUtils/inc'
13    
14    esys_lib_path = str(esysroot) + '/lib'
15    esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
16    
17    escript_lib = str(esys_lib_path) + '/libescriptcpp.so'
18    esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
19    
20  cpp_path = [bruce_path,  cpp_path = [bruce_path,
21              escript_path,              escript_path,
22              esysUtils_path,              esysUtils_path,
23              python_path,              python_path,
24              boost_path]              boost_path]
25    
 lib = 'brucecpp'  
26  sources = ['Bruce.cpp',  sources = ['Bruce.cpp',
27             'BruceFactory.cpp',             'BruceFactory.cpp',
28             'brucecpp.cpp']             'brucecpp.cpp']
29    
30    lib_path = [esys_lib_path,
31                esysUtils_lib_path,
32                boost_lib_path]
33    
34    libs = ['esysUtils',
35            'escriptcpp',
36            str(boost_lib)]
37    
38    libs.extend(sys_libs)
39    
40  bruce_env = Environment(ENV = os.environ)  bruce_env = Environment(ENV = os.environ)
41    
42  bruce_env.Replace(CXX = cxx)  bruce_env.Replace(CXX = cxx)
43  bruce_env.Replace(SHOBJSUFFIX = '.lo')  bruce_env.Replace(SHOBJSUFFIX = '.lo')
44  bruce_env.Replace(CXXFLAGS = cxx_flags)  bruce_env.Replace(CXXFLAGS = cxx_flags)
45  bruce_env.Replace(CPPPATH = cpp_path)  bruce_env.Replace(CPPPATH = cpp_path)
46    bruce_env.Replace(LIBPATH = lib_path)
47    bruce_env.Replace(LIBS = libs)
48    
49  bruce_lib = bruce_env.SharedLibrary(lib, sources)  bruce_lib = bruce_env.SharedLibrary(libname, sources)
 bruce_env.Install(libdir, bruce_lib)  
50    
51    Depends(bruce_lib, esysUtils_lib)
52    Depends(bruce_lib, escript_lib)
53    
54    bruce_env.Install(libdir, bruce_lib)
55  if libinstall != None:  if libinstall != None:
56    bruce_env.Install(libinstall, bruce_lib)    bruce_env.Install(libinstall, bruce_lib)

Legend:
Removed from v.276  
changed lines
  Added in v.277

  ViewVC Help
Powered by ViewVC 1.1.26