/[escript]/trunk-mpi-branch/escript/src/SConscript
ViewVC logotype

Annotation of /trunk-mpi-branch/escript/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (hide annotations)
Mon Nov 21 04:10:12 2005 UTC (13 years, 10 months ago) by jgs
Original Path: trunk/escript/src/Data/SConscript
File size: 1259 byte(s)
push platform dependent compiler flags and include directories up to library level scons files - these will eventually be brought in from external config files
1 jgs 181 Import('*')
2    
3     import os
4 jgs 190 import string
5 jgs 181
6 jgs 190 escript_path = str(esysroot) + '/escript/inc'
7     esysUtils_path = str(esysroot) + '/esysUtils/inc'
8 jgs 181
9 jgs 190 cpp_path = [escript_path,
10     esysUtils_path,
11     python_path,
12     boost_path]
13    
14 jgs 181 lib = 'escriptcpp'
15     sources = ['AbstractContinuousDomain.cpp',
16     'AbstractDomain.cpp',
17     'AbstractSystemMatrix.cpp',
18     'DataAbstract.cpp',
19     'DataArray.cpp',
20     'DataArrayView.cpp',
21     'DataBlocks2D.cpp',
22     'DataCached.cpp',
23     'DataC.cpp',
24     'DataConstant.cpp',
25     'Data.cpp',
26     'DataEmpty.cpp',
27     'DataExpanded.cpp',
28     'DataFactory.cpp',
29     'DataProf.cpp',
30     'DataTagged.cpp',
31     'DataVariable.cpp',
32     'DataVector.cpp',
33     'FunctionSpace.cpp',
34     'FunctionSpaceFactory.cpp',
35     'NullDomain.cpp',
36     'Taipan.cpp',
37     'escriptcpp.cpp']
38    
39     escript_env = Environment(ENV = os.environ)
40    
41     escript_env.Replace(CXX = 'icc')
42     escript_env.Replace(SHOBJSUFFIX = '.lo')
43     escript_env.Replace(CXXFLAGS = cxx_flags)
44     escript_env.Replace(CPPPATH = cpp_path)
45    
46     escript_lib = escript_env.SharedLibrary(lib, sources)
47     escript_env.Install(libdir, escript_lib)

  ViewVC Help
Powered by ViewVC 1.1.26