From 074a8c04a384a9752466bd2af69b695333b2955c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 29 Nov 2017 17:44:48 +0200 Subject: Reimplement module sidebuilding using an ad hoc subproject --- build2/config/utility.hxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'build2/config/utility.hxx') diff --git a/build2/config/utility.hxx b/build2/config/utility.hxx index 33a3985..c09dc07 100644 --- a/build2/config/utility.hxx +++ b/build2/config/utility.hxx @@ -92,6 +92,8 @@ namespace build2 // // Return the value (as always defined lookup), which can be NULL. // + // @@ Rename since clashes with the optional class template. + // lookup optional (scope& root, const variable&); @@ -144,6 +146,20 @@ namespace build2 // void save_module (scope& root, const char* name, int prio = 0); + + // Create a project in the specified directory. + // + void + create_project (const dir_path& d, + const build2::optional& amalgamation, + const strings& boot_modules, // Bootstrap modules. + const string& root_pre, // Extra root.build text. + const strings& root_modules, // Root modules. + const string& root_post, // Extra root.build text. + bool config, // Load config module. + bool buildfile, // Create root buildfile. + const char* who, // Who is creating it. + uint16_t verbosity = 1); // Diagnostic verbosity. } } -- cgit v1.1