summaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-27 07:04:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-27 07:04:09 +0200
commit409168340fd709bb35e6319a1bc61ca130aae01e (patch)
treee109d5e45d3072723b99d7dae50642e66f450188 /build2
parent0c8c510530d739117d9cfc5cf706e001ae62c0c7 (diff)
Update feature: Support for prerequisite globbing
Diffstat (limited to 'build2')
-rw-r--r--build2/globbing22
1 files changed, 22 insertions, 0 deletions
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.