/[escript]/branches/arrayview_from_1695_trunk/finley/src/SConscript
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/finley/src/SConscript

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

trunk/finley/src/finleyC/SConscript revision 191 by jgs, Mon Nov 21 04:10:12 2005 UTC trunk/finley/src/finley/SConscript 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  import string
7    
8    libname = 'finleycpp'
9    
10    finley_path = str(esysroot) + '/finley/src/finley'
11    finley_cppadapter_path = str(esysroot) + '/finley/src/finley/CPPAdapter'
12    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'
 finley_path = str(esysroot) + '/finley/inc'  
 paso_path = str(esysroot) + '/paso/inc'  
15    
16  cpp_path = [escript_path,  esys_lib_path = str(esysroot) + '/lib'
17              esysUtils_path,  mmio_lib_path = str(esysroot) + '/tools/mmio/lib'
18              finley_path,  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,
26                finley_cppadapter_path,
27              paso_path,              paso_path,
28                escript_path,
29                esysUtils_path,
30              python_path,              python_path,
31              boost_path]              boost_path]
32    
 lib = 'finleyC'  
33  sources = ['Assemble_addToSystemMatrix.c',  sources = ['Assemble_addToSystemMatrix.c',
34             'Assemble_CopyElementData.c',             'Assemble_CopyElementData.c',
35             'Assemble_CopyNodalData.c',             'Assemble_CopyNodalData.c',
# Line 80  sources = ['Assemble_addToSystemMatrix.c Line 94  sources = ['Assemble_addToSystemMatrix.c
94             'Quadrature.c',             'Quadrature.c',
95             'ReferenceElements.c',             'ReferenceElements.c',
96             'ShapeFunctions.c',             'ShapeFunctions.c',
97             'Util.c']             'Util.c',
98               'CPPAdapter/FinleyError.cpp',
99  finleyC_env = Environment(ENV = os.environ)             'CPPAdapter/MeshAdapter.cpp',
100               'CPPAdapter/MeshAdapterFactory.cpp',
101  finleyC_env.Replace(CC = 'icc')             'CPPAdapter/SystemMatrixAdapter.cpp',
102  finleyC_env.Replace(CCFLAGS = cc_flags)             'CPPAdapter/finleycpp.cpp']
103  finleyC_env.Replace(CPPPATH = cpp_path)  
104    lib_path = [esys_lib_path,
105  finleyC_lib = finleyC_env.StaticLibrary(lib, sources)              mmio_lib_path,
106  finleyC_env.Install(libdir, finleyC_lib)              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)
121    
122    finley_env.Replace(CC = cc)
123    finley_env.Replace(CXX = cxx)
124    finley_env.Replace(CCFLAGS = cc_flags)
125    finley_env.Replace(CXXFLAGS = cxx_flags)
126    finley_env.Replace(SHOBJSUFFIX = '.lo')
127    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(libname, sources)
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    Default(finley_env.Install(libdir, finley_lib))
139    Default(finley_env.Install(libdir2, finley_lib))
140    if libinstall != None:
141      Default(finley_env.Install(libinstall, finley_lib))

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

  ViewVC Help
Powered by ViewVC 1.1.26