/[escript]/branches/RW_WIN32/esysUtils/test/EsysException/SConscript
ViewVC logotype

Annotation of /branches/RW_WIN32/esysUtils/test/EsysException/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 229 - (hide annotations)
Fri Nov 25 06:17:13 2005 UTC (15 years ago) by robwdcock
File size: 691 byte(s)
+ Added Options capability
+ All py files are now compiled and installed into lib directory hierarchy
+ scons now reads custom options from custom.py. Examples are in the scons_custom_templates directory, just copy to top level build dir and rename to custom.py
+ scons_ext.py now has some helper functions for building pyc from python and running unit tests (but only when some dependency changes).


1 robwdcock 218 Import('*')
2    
3     program_name = 'EsysExceptionTest'
4    
5     local_env=env.Copy()
6    
7     local_env.Append(LIBS=['esysUtils', 'CppUnitTest'])
8    
9     src_dir = local_env.Dir('.').srcnode().abspath
10    
11     import os
12     filenames = os.listdir(src_dir)
13     sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
14    
15    
16     if env['PLATFORM'] == "win32":
17     local_env['PDB'] = program_name+'.pdb'
18    
19    
20     program = local_env.Program(program_name, sources)
21     # TODO: Need to decide on how the library paths etc are going to be handled
22     # TODO: For now just install the program to the same location as the libraries so things can run at least
23     local_env.Install(esys_lib, program)
24 robwdcock 229
25     # run the tests
26     local_env.RunUnitTest(program_name)

  ViewVC Help
Powered by ViewVC 1.1.26