/[escript]/trunk/finley/src/CPPAdapter/SConscript
ViewVC logotype

Contents of /trunk/finley/src/CPPAdapter/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (show annotations)
Mon Nov 21 04:10:12 2005 UTC (15 years, 8 months ago) by jgs
File size: 868 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 Import('*')
2
3 import os
4 import string
5
6 escript_path = str(esysroot) + '/escript/inc'
7 esysUtils_path = str(esysroot) + '/esysUtils/inc'
8 finley_path = str(esysroot) + '/finley/inc'
9 paso_path = str(esysroot) + '/paso/inc'
10
11 cpp_path = [escript_path,
12 esysUtils_path,
13 finley_path,
14 paso_path,
15 python_path,
16 boost_path]
17
18 lib = 'finleycpp'
19 sources = ['FinleyError.cpp',
20 'MeshAdapter.cpp',
21 'MeshAdapterFactory.cpp',
22 'SystemMatrixAdapter.cpp',
23 'finleycpp.cpp']
24
25 finleycpp_env = Environment(ENV = os.environ)
26
27 finleycpp_env.Replace(CXX = 'icc')
28 finleycpp_env.Replace(SHOBJSUFFIX = '.lo')
29 finleycpp_env.Replace(CXXFLAGS = cxx_flags)
30 finleycpp_env.Replace(CPPPATH = cpp_path)
31
32 finleycpp_lib = finleycpp_env.SharedLibrary(lib, sources)
33 finleycpp_env.Install(libdir, finleycpp_lib)

  ViewVC Help
Powered by ViewVC 1.1.26