aboutsummaryrefslogtreecommitdiff
path: root/build/file
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-07 14:51:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-07 14:51:53 +0200
commit9e6303e86dae25096ee62d74abfca4456be6a96f (patch)
tree58be935e7a1cc2843d251456478d8cc6ec1ad01a /build/file
parent088a60c512aff26eeb026c516d0afe724880cb2b (diff)
Initial support for amalgamation/subprojects
For now both need to be manually specified in src bootstrap. At this stage main() loads any outer root scopes while include loads any inner.
Diffstat (limited to 'build/file')
-rw-r--r--build/file17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/file b/build/file
index 669d040..9975e06 100644
--- a/build/file
+++ b/build/file
@@ -25,6 +25,23 @@ namespace build
void
source_once (const path& buildfile, scope& root, scope& base, scope& once);
+ // Create project's root scope. Only set the src_root variable is the
+ // passed src_root value is not empty.
+ //
+ scope&
+ create_root (const path& out_root, const path& src_root);
+
+ // Bootstrap the project's root scope, the out part.
+ //
+ void
+ bootstrap_out (scope& root);
+
+ // Bootstrap the project's root scope, the src part. Return true if
+ // we loaded anything.
+ //
+ bool
+ bootstrap_src (scope& root);
+
// Load project's root[-pre].build unless already loaded.
//
void