diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-29 17:44:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-29 17:44:48 +0200 |
commit | 074a8c04a384a9752466bd2af69b695333b2955c (patch) | |
tree | 707454105647db7886268551ffc661a359e4637c /build2/config/utility.hxx | |
parent | f588f2e5a62d7621d20b2a567b8835bb87ff31f4 (diff) |
Reimplement module sidebuilding using an ad hoc subproject
Diffstat (limited to 'build2/config/utility.hxx')
-rw-r--r-- | build2/config/utility.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
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<dir_path>& 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. } } |