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

Annotation of /trunk/escript/src/Data/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 190 - (hide annotations)
Mon Nov 21 03:27:42 2005 UTC (13 years, 11 months ago) by jgs
File size: 1457 byte(s)
pass in value for esysroot and use this to determine include file locations
1 jgs 181 Import('*')
2    
3     import os
4 jgs 190 import string
5 jgs 181
6 jgs 188 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'
7 jgs 181
8 jgs 190 escript_path = str(esysroot) + '/escript/inc'
9     esysUtils_path = str(esysroot) + '/esysUtils/inc'
10     python_path = '/raid2/tools/python-2.3.4/include/python2.3'
11     boost_path = '/raid2/tools/boost/include/boost-1_31'
12 jgs 181
13 jgs 190 cpp_path = [escript_path,
14     esysUtils_path,
15     python_path,
16     boost_path]
17    
18 jgs 181 lib = 'escriptcpp'
19     sources = ['AbstractContinuousDomain.cpp',
20     'AbstractDomain.cpp',
21     'AbstractSystemMatrix.cpp',
22     'DataAbstract.cpp',
23     'DataArray.cpp',
24     'DataArrayView.cpp',
25     'DataBlocks2D.cpp',
26     'DataCached.cpp',
27     'DataC.cpp',
28     'DataConstant.cpp',
29     'Data.cpp',
30     'DataEmpty.cpp',
31     'DataExpanded.cpp',
32     'DataFactory.cpp',
33     'DataProf.cpp',
34     'DataTagged.cpp',
35     'DataVariable.cpp',
36     'DataVector.cpp',
37     'FunctionSpace.cpp',
38     'FunctionSpaceFactory.cpp',
39     'NullDomain.cpp',
40     'Taipan.cpp',
41     'escriptcpp.cpp']
42    
43     escript_env = Environment(ENV = os.environ)
44    
45     escript_env.Replace(CXX = 'icc')
46     escript_env.Replace(SHOBJSUFFIX = '.lo')
47     escript_env.Replace(CXXFLAGS = cxx_flags)
48     escript_env.Replace(CPPPATH = cpp_path)
49    
50     escript_lib = escript_env.SharedLibrary(lib, sources)
51     escript_env.Install(libdir, escript_lib)

  ViewVC Help
Powered by ViewVC 1.1.26