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

Annotation of /trunk/bruce/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 190 - (hide annotations)
Mon Nov 21 03:27:42 2005 UTC (13 years, 7 months ago) by jgs
Original Path: trunk/bruce/src/Bruce/SConscript
File size: 882 byte(s)
pass in value for esysroot and use this to determine include file locations
1 jgs 176 Import('*')
2    
3     import os
4 jgs 190 import string
5 jgs 176
6 jgs 188 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'
7 jgs 176
8 jgs 190 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 jgs 177
14 jgs 190 cpp_path = [bruce_path,
15     escript_path,
16     esysUtils_path,
17     python_path,
18     boost_path]
19    
20 jgs 176 lib = 'brucecpp'
21 jgs 177 sources = ['Bruce.cpp',
22     'BruceFactory.cpp',
23     'brucecpp.cpp']
24 jgs 176
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