/[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 467 by jgs, Wed Jan 25 05:43:46 2006 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/src'
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              + solver_lib_paths
109    
110    
111    libs = ['escriptcpp',
112            'esysUtils',
113            'paso',
114            'mmio',
115            str(boost_lib),
116            'dl',
117            'util']     \
118           + sys_libs   \
119           + solver_libs
120    
121  finley_env = Environment(ENV = os.environ)  finley_env = Environment(ENV = os.environ)
122    
123  finley_env.Replace(CC = cc)  finley_env.Replace(CC = cc)
# Line 100  finley_env.Replace(CCFLAGS = cc_flags) Line 126  finley_env.Replace(CCFLAGS = cc_flags)
126  finley_env.Replace(CXXFLAGS = cxx_flags)  finley_env.Replace(CXXFLAGS = cxx_flags)
127  finley_env.Replace(SHOBJSUFFIX = '.lo')  finley_env.Replace(SHOBJSUFFIX = '.lo')
128  finley_env.Replace(CPPPATH = cpp_path)  finley_env.Replace(CPPPATH = cpp_path)
129    finley_env.Replace(LIBPATH = lib_path)
130    finley_env.Replace(LIBS = libs)
131    
132    finley_lib = finley_env.SharedLibrary(libname, sources)
133    
134  finley_lib = finley_env.SharedLibrary(lib, sources)  Depends(finley_lib, esysUtils_lib)
135  finley_env.Install(libdir, finley_lib)  Depends(finley_lib, escript_lib)
136    Depends(finley_lib, paso_lib)
137    Depends(finley_lib, mmio_lib)
138    
139    Default(finley_env.Install(libdir, finley_lib))
140    Default(finley_env.Install(libdir2, finley_lib))
141  if libinstall != None:  if libinstall != None:
142    finley_env.Install(libinstall, finley_lib)    Default(finley_env.Install(libinstall, finley_lib))

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

  ViewVC Help
Powered by ViewVC 1.1.26