diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-07 09:06:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-07 09:06:37 +0200 |
commit | 1845141809aa91b03718066a6f46863885a6a887 (patch) | |
tree | a3f542ec7c1781e65aa16a9b0d5c31eae4c4d757 /build2/config/utility.hxx | |
parent | e0002617846755fb5f199f40a677e16d6f69e5ec (diff) |
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).
Diffstat (limited to 'build2/config/utility.hxx')
-rw-r--r-- | build2/config/utility.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
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 <build2/types.hxx> #include <build2/utility.hxx> +#include <build2/scope.hxx> #include <build2/variable.hxx> #include <build2/diagnostics.hxx> @@ -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); + } } } |