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

Diff of /trunk/escript/src/SConscript

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

trunk/escript/src/Data/SConscript revision 191 by jgs, Mon Nov 21 04:10:12 2005 UTC trunk/escript/src/SConscript revision 481 by jgs, Wed Feb 1 05:57:50 2006 UTC
# Line 1  Line 1 
1    libinstall = None
2    incinstall = None
3    
4  Import('*')  Import('*')
5    
6  import os  import os
7  import string  import string
8    
9  escript_path = str(esysroot) + '/escript/inc'  libname = 'escriptcpp'
10  esysUtils_path = str(esysroot) + '/esysUtils/inc'  
11    escript_path = str(esysroot) + '/escript/src'
12    esysUtils_path = str(esysroot) + '/esysUtils/src'
13    
14    esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
15    
16    esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
17    
18  cpp_path = [escript_path,  cpp_path = [escript_path,
19              esysUtils_path,              esysUtils_path,
20              python_path,              python_path,
21              boost_path]              boost_path]
22    
23  lib = 'escriptcpp'  incs = ['Data.h']
24    
25  sources = ['AbstractContinuousDomain.cpp',  sources = ['AbstractContinuousDomain.cpp',
26             'AbstractDomain.cpp',             'AbstractDomain.cpp',
27             'AbstractSystemMatrix.cpp',             'AbstractSystemMatrix.cpp',
# Line 34  sources = ['AbstractContinuousDomain.cpp Line 44  sources = ['AbstractContinuousDomain.cpp
44             'FunctionSpaceFactory.cpp',             'FunctionSpaceFactory.cpp',
45             'NullDomain.cpp',             'NullDomain.cpp',
46             'Taipan.cpp',             'Taipan.cpp',
47               'Utils.cpp',
48             'escriptcpp.cpp']             'escriptcpp.cpp']
49    
50    lib_path = [esysUtils_lib_path,
51                boost_lib_path]
52    
53    libs = ['esysUtils',
54            str(boost_lib)]
55    
56    libs.extend(sys_libs)
57    
58  escript_env = Environment(ENV = os.environ)  escript_env = Environment(ENV = os.environ)
59    
60  escript_env.Replace(CXX = 'icc')  escript_env.Replace(CXX = cxx)
61  escript_env.Replace(SHOBJSUFFIX = '.lo')  escript_env.Replace(SHOBJSUFFIX = '.lo')
62  escript_env.Replace(CXXFLAGS = cxx_flags)  escript_env.Replace(CXXFLAGS = cxx_flags)
63  escript_env.Replace(CPPPATH = cpp_path)  escript_env.Replace(CPPPATH = cpp_path)
64    escript_env.Replace(LIBPATH = lib_path)
65    escript_env.Replace(LIBS = libs)
66    
67    escript_lib = escript_env.SharedLibrary(libname, sources)
68    
69    Depends(escript_lib, esysUtils_lib)
70    
71  escript_lib = escript_env.SharedLibrary(lib, sources)  Default(escript_env.Install(incdir, incs))
72  escript_env.Install(libdir, escript_lib)  Default(escript_env.Install(incdir2, incs))
73    if incinstall != None:
74      Default(escript_env.Install(incinstall, incs))
75    
76    Default(escript_env.Install(libdir, escript_lib))
77    Default(escript_env.Install(libdir2, escript_lib))
78    if libinstall != None:
79      Default(escript_env.Install(libinstall, escript_lib))

Legend:
Removed from v.191  
changed lines
  Added in v.481

  ViewVC Help
Powered by ViewVC 1.1.26