From 1b976618fa6098b0e45de59135bdb91ced1c0bd4 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 29 Sep 2009 18:49:04 +0000 Subject: New logic for reading info.txt files - if no block was given, then simply add all .cpp and .h files in the directory. --- configure.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 5c8835a95..8e98b7e6a 100755 --- a/configure.py +++ b/configure.py @@ -336,13 +336,20 @@ class ModuleInfo(object): lex_me_harder(infofile, self, ['add', 'requires', 'os', 'arch', 'cc', 'libs'], { 'realname': '', - 'load_on': 'request', + 'load_on': 'auto', 'define': None, 'modset': None, 'uses_tr1': 'false', 'note': '', 'mp_bits': 0 }) + if self.add == []: + for (dirpath, dirnames, filenames) in os.walk(self.lives_in): + if dirpath == self.lives_in: + self.add = [filename for filename in filenames + if filename.endswith('.cpp') or + filename.endswith('.h')] + # Coerce to more useful types self.libs = force_to_dict(self.libs) -- cgit v1.2.3