scons: make a flexible system for guarding source files

This is similar to guards on mercurial queues and they're used for selecting
which files are compiled into some given object.  We already do something
similar, but it's mostly hard coded for the m5 binary and the m5 library
and I'd like to make it more flexible to better support the unittests
This commit is contained in:
Nathan Binkert
2011-04-15 10:44:44 -07:00
parent eddac53ff6
commit 3182913e94
2 changed files with 87 additions and 31 deletions

View File

@@ -39,7 +39,7 @@ Source('core.cc')
Source('debug.cc')
Source('eventq.cc')
Source('init.cc')
Source('main.cc', bin_only=True)
Source('main.cc', main=True, skip_lib=True)
Source('root.cc')
Source('serialize.cc')
Source('sim_events.cc')