ViewVC logotype

Annotation of /branches/ROBW_XPLATFORM/tools/CppUnitTest/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log

Revision 623 - (hide annotations)
Wed Mar 22 14:11:03 2006 UTC (15 years, 8 months ago) by robwdcock
File size: 505 byte(s)
Beginning of a fully cross-platform (win32+intelc, linux+g++, altix+intelc)
scons build system
+Incorporates ideas from trunks scons build system and the RW_WIN32 branch
+New Header layout as include/<modulename>, hence the changes to the headers
+Not all modules or features from trunk build system are fully implemented
-Removes need for intermediary SConstruct files - the top SConstruct is more complex but handle cross-platform better AND the SConscript are a LOT simpler
and only differ slightly. It should be simpler to maintain
-Options are now handled via either a: config file supplied on command line, a config file in the scons/hostname_options.py, or as individual command line arguments
-Need help with options: scons -h will give you a list of options and their current settings

1 jgs 178 Import('*')
3 robwdcock 623 local_env=env.Copy()
4 jgs 178
5 robwdcock 623 src_dir = local_env.Dir('.').srcnode().abspath
6 jgs 178
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 190
13 robwdcock 623 lib_name = 'CppUnitTest'
14 jgs 178
15 robwdcock 623 local_env.Append(CPPPATH=['#/tools/CppUnitTest/inc',])
16 jgs 178
17 robwdcock 623 lib = local_env.StaticLibrary(lib_name, sources)
18 jgs 178
19 robwdcock 623 local_env.Install(libinstall, lib)

  ViewVC Help
Powered by ViewVC 1.1.26