From 233255f0e14f364841751755958375fe27380ba6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Mar 2017 11:37:14 +0200 Subject: Implement implied buildfile support In essence, if the buildfile is: ./: */ Then it can be omitted entirely (provided there is at least one subdirectory). --- build2/operation | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'build2/operation') 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&); -- cgit v1.1