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/cc/utility.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build2/cc/utility.hxx') diff --git a/build2/cc/utility.hxx b/build2/cc/utility.hxx index bf96949..6b629de 100644 --- a/build2/cc/utility.hxx +++ b/build2/cc/utility.hxx @@ -19,8 +19,12 @@ namespace build2 namespace cc { - extern const dir_path module_dir; // build/cc/ - extern const dir_path modules_sidebuild_dir; // build/cc/modules/ + // To form the complete path do: + // + // root.out_path () / root.root_extra->build_dir / module_dir + // + extern const dir_path module_dir; // cc/ + extern const dir_path modules_sidebuild_dir; // cc/modules/ // Compile output type. // -- cgit v1.1