aboutsummaryrefslogtreecommitdiff
path: root/build2/operation
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-14 11:37:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-14 11:37:14 +0200
commit233255f0e14f364841751755958375fe27380ba6 (patch)
tree1571f125ad89f729cbf0c3d7c0b09aba8fe0fc20 /build2/operation
parentf262632b20628136369889ebc67a65b252b233af (diff)
Implement implied buildfile support
In essence, if the buildfile is: ./: */ Then it can be omitted entirely (provided there is at least one subdirectory).
Diffstat (limited to 'build2/operation')
-rw-r--r--build2/operation15
1 files changed, 10 insertions, 5 deletions
diff --git a/build2/operation b/build2/operation
index e6c34d6..39bb799 100644
--- a/build2/operation
+++ b/build2/operation
@@ -206,6 +206,7 @@ namespace build2
const location&);
void (*search) (const scope& root,
+ const scope& base,
const target_key&,
const location&,
action_targets&);
@@ -230,17 +231,21 @@ namespace build2
// scope.
//
void
- load (scope& root,
- const path& buildfile,
- const dir_path& out_base,
- const dir_path& src_base,
+ load (scope&,
+ const path&,
+ const dir_path&,
+ const dir_path&,
const location&);
// Search and match the target. This is the default implementation
// that does just that and adds a pointer to the target to the list.
//
void
- search (const scope&, const target_key&, const location&, action_targets&);
+ search (const scope&,
+ const scope&,
+ const target_key&,
+ const location&,
+ action_targets&);
void
match (action, action_targets&);