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

Annotation of /trunk/bruce/src/Bruce/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (hide annotations)
Mon Nov 21 04:10:12 2005 UTC (13 years, 6 months ago) by jgs
File size: 684 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 176 Import('*')
2    
3     import os
4 jgs 190 import string
5 jgs 176
6 jgs 190 bruce_path = str(esysroot) + '/bruce/inc'
7     escript_path = str(esysroot) + '/escript/inc'
8     esysUtils_path = str(esysroot) + '/esysUtils/inc'
9 jgs 177
10 jgs 190 cpp_path = [bruce_path,
11     escript_path,
12     esysUtils_path,
13     python_path,
14     boost_path]
15    
16 jgs 176 lib = 'brucecpp'
17 jgs 177 sources = ['Bruce.cpp',
18     'BruceFactory.cpp',
19     'brucecpp.cpp']
20 jgs 176
21     bruce_env = Environment(ENV = os.environ)
22    
23     bruce_env.Replace(CXX = 'icc')
24     bruce_env.Replace(SHOBJSUFFIX = '.lo')
25     bruce_env.Replace(CXXFLAGS = cxx_flags)
26     bruce_env.Replace(CPPPATH = cpp_path)
27    
28     bruce_lib = bruce_env.SharedLibrary(lib, sources)
29     bruce_env.Install(libdir, bruce_lib)

  ViewVC Help
Powered by ViewVC 1.1.26