summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.