From f89d2c16c1dad9b8d2f3b0e402a47e30521f5a69 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Aug 2016 09:51:03 +0200 Subject: Add support for config.build file versioning --- build2/file | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build2/file') diff --git a/build2/file b/build2/file index f5dac83..1502d73 100644 --- a/build2/file +++ b/build2/file @@ -129,6 +129,14 @@ namespace build2 void load_root_pre (scope& root); + // Extract the specified variable value from a buildfile. It is expected to + // be the first non-comment line and not to rely on any variable expansion + // other than those from the global scope or any variable overrides. Return + // an indication of whether the variable was found. + // + pair + extract_variable (const path&, const char* var); + // Import has two phases: the first is triggered by the import // directive in the buildfile. It will try to find and load the // project. Failed that, it will return the project-qualified -- cgit v1.1