From 9e6303e86dae25096ee62d74abfca4456be6a96f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Apr 2015 14:51:53 +0200 Subject: 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. --- build/file | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'build/file') 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 -- cgit v1.1