/[escript]/trunk/bruce/src/Bruce/SConscript
ViewVC logotype

Contents of /trunk/bruce/src/Bruce/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 190 - (show annotations)
Mon Nov 21 03:27:42 2005 UTC (14 years, 11 months ago) by jgs
File size: 882 byte(s)
pass in value for esysroot and use this to determine include file locations
1 Import('*')
2
3 import os
4 import string
5
6 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'
7
8 bruce_path = str(esysroot) + '/bruce/inc'
9 escript_path = str(esysroot) + '/escript/inc'
10 esysUtils_path = str(esysroot) + '/esysUtils/inc'
11 python_path = '/raid2/tools/python-2.3.4/include/python2.3'
12 boost_path = '/raid2/tools/boost/include/boost-1_31'
13
14 cpp_path = [bruce_path,
15 escript_path,
16 esysUtils_path,
17 python_path,
18 boost_path]
19
20 lib = 'brucecpp'
21 sources = ['Bruce.cpp',
22 'BruceFactory.cpp',
23 'brucecpp.cpp']
24
25 bruce_env = Environment(ENV = os.environ)
26
27 bruce_env.Replace(CXX = 'icc')
28 bruce_env.Replace(SHOBJSUFFIX = '.lo')
29 bruce_env.Replace(CXXFLAGS = cxx_flags)
30 bruce_env.Replace(CPPPATH = cpp_path)
31
32 bruce_lib = bruce_env.SharedLibrary(lib, sources)
33 bruce_env.Install(libdir, bruce_lib)

  ViewVC Help
Powered by ViewVC 1.1.26