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

Annotation of /trunk/bruce/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 474 - (hide annotations)
Mon Jan 30 04:23:44 2006 UTC (13 years, 4 months ago) by jgs
File size: 1367 byte(s)
restructure escript source tree
move src/Data/* -> src
remove inc
modify #includes and cpppath settings accordingly

1 jgs 192 libinstall = None
2    
3 jgs 176 Import('*')
4    
5     import os
6 jgs 190 import string
7 jgs 176
8 jgs 277 libname = 'brucecpp'
9    
10 jgs 465 bruce_path = str(esysroot) + '/bruce/src'
11 jgs 474 escript_path = str(esysroot) + '/escript/src'
12 jgs 468 esysUtils_path = str(esysroot) + '/esysUtils/src'
13 jgs 177
14 jgs 277 esys_lib_path = str(esysroot) + '/lib'
15     esysUtils_lib_path = str(esysroot) + '/esysUtils/lib'
16    
17     escript_lib = str(esys_lib_path) + '/libescriptcpp.so'
18     esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a'
19    
20 jgs 190 cpp_path = [bruce_path,
21     escript_path,
22     esysUtils_path,
23     python_path,
24     boost_path]
25    
26 jgs 177 sources = ['Bruce.cpp',
27     'BruceFactory.cpp',
28     'brucecpp.cpp']
29 jgs 176
30 jgs 277 lib_path = [esys_lib_path,
31     esysUtils_lib_path,
32     boost_lib_path]
33    
34     libs = ['esysUtils',
35     'escriptcpp',
36     str(boost_lib)]
37    
38     libs.extend(sys_libs)
39    
40 jgs 176 bruce_env = Environment(ENV = os.environ)
41    
42 jgs 223 bruce_env.Replace(CXX = cxx)
43 jgs 176 bruce_env.Replace(SHOBJSUFFIX = '.lo')
44     bruce_env.Replace(CXXFLAGS = cxx_flags)
45     bruce_env.Replace(CPPPATH = cpp_path)
46 jgs 277 bruce_env.Replace(LIBPATH = lib_path)
47     bruce_env.Replace(LIBS = libs)
48 jgs 176
49 jgs 277 bruce_lib = bruce_env.SharedLibrary(libname, sources)
50    
51     Depends(bruce_lib, esysUtils_lib)
52     Depends(bruce_lib, escript_lib)
53    
54 jgs 352 Default(bruce_env.Install(libdir, bruce_lib))
55     Default(bruce_env.Install(libdir2, bruce_lib))
56 jgs 192 if libinstall != None:
57 jgs 352 Default(bruce_env.Install(libinstall, bruce_lib))

  ViewVC Help
Powered by ViewVC 1.1.26