aboutsummaryrefslogtreecommitdiff
path: root/build2/file
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-30 09:51:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-30 10:00:35 +0200
commitf89d2c16c1dad9b8d2f3b0e402a47e30521f5a69 (patch)
tree10fe158dd8ca79c89ede9d21bdbfc57104c65d57 /build2/file
parent83d5e6063f670134303a3396219f63eaac0aedff (diff)
Add support for config.build file versioning
Diffstat (limited to 'build2/file')
-rw-r--r--build2/file8
1 files changed, 8 insertions, 0 deletions
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<value, bool>
+ 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