From 409168340fd709bb35e6319a1bc61ca130aae01e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 27 Sep 2016 07:04:09 +0200 Subject: Update feature: Support for prerequisite globbing --- build2/globbing | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'build2/globbing') diff --git a/build2/globbing b/build2/globbing index 541c407..a6e3bcc 100644 --- a/build2/globbing +++ b/build2/globbing @@ -13,3 +13,25 @@ * May make sense to provide generic support in libbutl since will probably be used in other places (e.g., subprojects globbing). + +* Maybe globbing should be an eval context function, e.g., + + (*.cxx -foo.cxx) + + If relative is it always performed in src? BTW, if out == src then we + may end up finding extra stuff. + +* The prerequisite idea does not fit well for directories: They are out while + we need to search in src. Also, we need to include the buildfiles. + + d = (*/ -build/) + ./: $d + include $d + + Another option would be to add some magic to directory handling. Sure would + be nice to just write: + + ./: {*/ -build/} + + I think we can have a reasonable model for prerequisite search (it is target + type-specific). Include will be harder. -- cgit v1.1