/[escript]/branches/ROBW_XPLATFORM/bruce/src/SConscript
ViewVC logotype

Annotation of /branches/ROBW_XPLATFORM/bruce/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (hide annotations)
Fri Mar 24 06:44:23 2006 UTC (14 years, 4 months ago) by robwdcock
File size: 1168 byte(s)
+Python file now compile and install into pyinstall directory

1 jgs 176 Import('*')
2    
3 robwdcock 623 local_env=env.Copy()
4 jgs 176
5 robwdcock 623 src_dir = local_env.Dir('.').srcnode().abspath
6 jgs 277
7 robwdcock 623 import os
8     filenames = os.listdir(src_dir)
9     sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
10     headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
11     # Filter out sources that should not be in the list automatically
12 jgs 177
13 robwdcock 623 lib_name = 'brucecpp'
14 jgs 277
15 robwdcock 623 local_env.Append(LIBS = [boost_lib, 'esysUtils', 'escriptcpp'])
16 jgs 277
17 robwdcock 623 lib = local_env.SharedLibrary(lib_name, sources)
18 jgs 190
19 robwdcock 623 include_path = Dir(lib_name, incinstall)
20 jgs 481
21 robwdcock 623 local_env.Install(include_path, headers )
22     local_env.Install(libinstall, lib)
23 jgs 176
24 robwdcock 642 # export the lib target since tests will depend on it
25     # the lib target is a list of file nodes (why? win32 produces more than one output file: .lib, .dll, .pdb)
26     # FIXME: This list handling produces the desired result but can this be done directly with scons File nodes?
27     dep_lib = [libinstall+'/'+str(x) for x in lib]
28     Export('dep_lib')
29    
30 robwdcock 651 # Call the python sconscript
31     env.SConscript(dirs = ['#/bruce/py_src'], build_dir='py', duplicate=0)
32    
33     # Call the unit tests SConscript
34 robwdcock 642 local_env.SConscript(dirs = ['#/bruce/test'], build_dir='#/build/$PLATFORM/bruce/test', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26