/[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 201 by jgs, Wed Nov 23 04:10:21 2005 UTC revision 204 by jgs, Wed Nov 23 04:43:51 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    finley_path = str(esysroot) + '/finley/src/finley'
9    finley_cppadapter_path = str(esysroot) + '/finley/src/finley/CPPAdapter'
10    paso_path = str(esysroot) + '/paso/inc'
11  escript_path = str(esysroot) + '/escript/inc'  escript_path = str(esysroot) + '/escript/inc'
12  esysUtils_path = str(esysroot) + '/esysUtils/inc'  esysUtils_path = str(esysroot) + '/esysUtils/inc'
 finley_path = str(esysroot) + '/finley/inc'  
 paso_path = str(esysroot) + '/paso/inc'  
13    
14  cpp_path = [escript_path,  cpp_path = [finley_path,
15              esysUtils_path,              finley_cppadapter_path,
             finley_path,  
16              paso_path,              paso_path,
17                escript_path,
18                esysUtils_path,
19              python_path,              python_path,
20              boost_path]              boost_path]
21    
22    lib = 'finleycpp'
23    
24  sources = ['Assemble_addToSystemMatrix.c',  sources = ['Assemble_addToSystemMatrix.c',
25             'Assemble_CopyElementData.c',             'Assemble_CopyElementData.c',
26             'Assemble_CopyNodalData.c',             'Assemble_CopyNodalData.c',
# Line 79  sources = ['Assemble_addToSystemMatrix.c Line 85  sources = ['Assemble_addToSystemMatrix.c
85             'Quadrature.c',             'Quadrature.c',
86             'ReferenceElements.c',             'ReferenceElements.c',
87             'ShapeFunctions.c',             'ShapeFunctions.c',
88             'Util.c']             'Util.c',
89               'CPPAdapter/FinleyError.cpp',
90  finleyC_env = Environment(ENV = os.environ)             'CPPAdapter/MeshAdapter.cpp',
91               'CPPAdapter/MeshAdapterFactory.cpp',
92  finleyC_env.Replace(CC = 'icc')             'CPPAdapter/SystemMatrixAdapter.cpp',
93  finleyC_env.Replace(CCFLAGS = cc_flags)             'CPPAdapter/finleycpp.cpp']
94  finleyC_env.Replace(SHOBJSUFFIX = '.lo')  
95  finleyC_env.Replace(CPPPATH = cpp_path)  finley_env = Environment(ENV = os.environ)
96    
97    finley_env.Replace(CC = 'icc')
98    finley_env.Replace(CXX = 'icc')
99    finley_env.Replace(CCFLAGS = cc_flags)
100    finley_env.Replace(CXXFLAGS = cxx_flags)
101    finley_env.Replace(SHOBJSUFFIX = '.lo')
102    finley_env.Replace(CPPPATH = cpp_path)
103    
104  finleyC_env.BuildDir(objdir,finleyC_srcdir)  finley_lib = finley_env.SharedLibrary(lib, sources)
105    finley_env.Install(libdir, finley_lib)
106    
107  finleyC_objs = finleyC_env.SharedObject(sources)  if libinstall != None:
108      finley_env.Install(libinstall, finley_lib)

Legend:
Removed from v.201  
changed lines
  Added in v.204

  ViewVC Help
Powered by ViewVC 1.1.26