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

Diff of /trunk/finley/src/SConscript

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

revision 223 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 = 'finleycpp'
9    
10  finley_path = str(esysroot) + '/finley/src/finley'  finley_path = str(esysroot) + '/finley/src/finley'
11  finley_cppadapter_path = str(esysroot) + '/finley/src/finley/CPPAdapter'  finley_cppadapter_path = str(esysroot) + '/finley/src/finley/CPPAdapter'
12  paso_path = str(esysroot) + '/paso/inc'  paso_path = str(esysroot) + '/paso/inc'
13  escript_path = str(esysroot) + '/escript/inc'  escript_path = str(esysroot) + '/escript/inc'
14  esysUtils_path = str(esysroot) + '/esysUtils/inc'  esysUtils_path = str(esysroot) + '/esysUtils/inc'
15    
16    esys_lib_path = str(esysroot) + '/lib'
17    mmio_lib_path = str(esysroot) + '/tools/mmio/lib'
18    esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
19    
20    esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
21    escript_lib = str(esys_lib_path) + '/libescriptcpp.so'
22    paso_lib = str(esys_lib_path) + '/libpaso.a'
23    mmio_lib = str(mmio_lib_path) + '/libmmio.a'
24    
25  cpp_path = [finley_path,  cpp_path = [finley_path,
26              finley_cppadapter_path,              finley_cppadapter_path,
27              paso_path,              paso_path,
# Line 19  cpp_path = [finley_path, Line 30  cpp_path = [finley_path,
30              python_path,              python_path,
31              boost_path]              boost_path]
32    
 lib = 'finleycpp'  
   
33  sources = ['Assemble_addToSystemMatrix.c',  sources = ['Assemble_addToSystemMatrix.c',
34             'Assemble_CopyElementData.c',             'Assemble_CopyElementData.c',
35             'Assemble_CopyNodalData.c',             'Assemble_CopyNodalData.c',
# Line 92  sources = ['Assemble_addToSystemMatrix.c Line 101  sources = ['Assemble_addToSystemMatrix.c
101             'CPPAdapter/SystemMatrixAdapter.cpp',             'CPPAdapter/SystemMatrixAdapter.cpp',
102             'CPPAdapter/finleycpp.cpp']             'CPPAdapter/finleycpp.cpp']
103    
104    lib_path = [esys_lib_path,
105                mmio_lib_path,
106                esysUtils_lib_path,
107                boost_lib_path]
108    
109    libs = ['escriptcpp',
110            'esysUtils',
111            'paso',
112            'mmio',
113            str(boost_lib),
114            'dl',
115            'util']
116    
117    libs.extend(sys_libs)
118    libs.extend(solver_libs)
119    
120  finley_env = Environment(ENV = os.environ)  finley_env = Environment(ENV = os.environ)
121    
122  finley_env.Replace(CC = cc)  finley_env.Replace(CC = cc)
# Line 100  finley_env.Replace(CCFLAGS = cc_flags) Line 125  finley_env.Replace(CCFLAGS = cc_flags)
125  finley_env.Replace(CXXFLAGS = cxx_flags)  finley_env.Replace(CXXFLAGS = cxx_flags)
126  finley_env.Replace(SHOBJSUFFIX = '.lo')  finley_env.Replace(SHOBJSUFFIX = '.lo')
127  finley_env.Replace(CPPPATH = cpp_path)  finley_env.Replace(CPPPATH = cpp_path)
128    finley_env.Replace(LIBPATH = lib_path)
129    finley_env.Replace(LIBS = libs)
130    
131  finley_lib = finley_env.SharedLibrary(lib, sources)  finley_lib = finley_env.SharedLibrary(libname, sources)
 finley_env.Install(libdir, finley_lib)  
132    
133    Depends(finley_lib, esysUtils_lib)
134    Depends(finley_lib, escript_lib)
135    Depends(finley_lib, paso_lib)
136    Depends(finley_lib, mmio_lib)
137    
138    finley_env.Install(libdir, finley_lib)
139  if libinstall != None:  if libinstall != None:
140    finley_env.Install(libinstall, finley_lib)    finley_env.Install(libinstall, finley_lib)

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

  ViewVC Help
Powered by ViewVC 1.1.26