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

Diff of /trunk/escript/src/Data/SConscript

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

revision 181 by jgs, Fri Nov 18 04:28:47 2005 UTC revision 352 by jgs, Wed Dec 14 02:21:37 2005 UTC
# Line 1  Line 1 
1    libinstall = None
2    
3  Import('*')  Import('*')
4    
5  import os  import os
6    import string
7    
8    libname = 'escriptcpp'
9    
10    escript_path = str(esysroot) + '/escript/inc'
11    esysUtils_path = str(esysroot) + '/esysUtils/inc'
12    
13  cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'  esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
14    
15  cpp_path = ['#../escript/inc',  esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
16              '#../esysUtils/inc',  
17              '/raid2/tools/python-2.3.4/include/python2.3',  cpp_path = [escript_path,
18              '/raid2/tools/boost/include/boost-1_31']              esysUtils_path,
19                python_path,
20                boost_path]
21    
 lib = 'escriptcpp'  
22  sources = ['AbstractContinuousDomain.cpp',  sources = ['AbstractContinuousDomain.cpp',
23             'AbstractDomain.cpp',             'AbstractDomain.cpp',
24             'AbstractSystemMatrix.cpp',             'AbstractSystemMatrix.cpp',
# Line 34  sources = ['AbstractContinuousDomain.cpp Line 43  sources = ['AbstractContinuousDomain.cpp
43             'Taipan.cpp',             'Taipan.cpp',
44             'escriptcpp.cpp']             'escriptcpp.cpp']
45    
46    lib_path = [esysUtils_lib_path,
47                boost_lib_path]
48    
49    libs = ['esysUtils',
50            str(boost_lib)]
51    
52    libs.extend(sys_libs)
53    
54  escript_env = Environment(ENV = os.environ)  escript_env = Environment(ENV = os.environ)
55    
56  escript_env.Replace(CXX = 'icc')  escript_env.Replace(CXX = cxx)
57  escript_env.Replace(SHOBJSUFFIX = '.lo')  escript_env.Replace(SHOBJSUFFIX = '.lo')
58  escript_env.Replace(CXXFLAGS = cxx_flags)  escript_env.Replace(CXXFLAGS = cxx_flags)
59  escript_env.Replace(CPPPATH = cpp_path)  escript_env.Replace(CPPPATH = cpp_path)
60    escript_env.Replace(LIBPATH = lib_path)
61    escript_env.Replace(LIBS = libs)
62    
63    escript_lib = escript_env.SharedLibrary(libname, sources)
64    
65    Depends(escript_lib, esysUtils_lib)
66    
67  escript_lib = escript_env.SharedLibrary(lib, sources)  Default(escript_env.Install(libdir, escript_lib))
68  escript_env.Install(libdir, escript_lib)  Default(escript_env.Install(libdir2, escript_lib))
69    if libinstall != None:
70      Default(escript_env.Install(libinstall, escript_lib))

Legend:
Removed from v.181  
changed lines
  Added in v.352

  ViewVC Help
Powered by ViewVC 1.1.26