From 1845141809aa91b03718066a6f46863885a6a887 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Mar 2019 09:06:37 +0200 Subject: Add support for alternative build file/directory naming scheme Now the build/*.build, buildfile, and .buildignore filesystem entries in a project can alternatively (but consistently) be called build2/*.build2, build2file, and .build2ignore. See a note at the beginning of the Project Structure section in the manual for details (motivation, restrictions, etc). --- build2/config/utility.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build2/config/utility.hxx') diff --git a/build2/config/utility.hxx b/build2/config/utility.hxx index 6f384f5..eff1a02 100644 --- a/build2/config/utility.hxx +++ b/build2/config/utility.hxx @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -160,6 +161,14 @@ namespace build2 bool buildfile, // Create root buildfile. const char* who, // Who is creating it. uint16_t verbosity = 1); // Diagnostic verbosity. + + inline path + config_file (const scope& root) + { + return (root.out_path () / + root.root_extra->build_dir / + "config." + root.root_extra->build_ext); + } } } -- cgit v1.1