diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-04-13 13:55:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-04-13 13:55:00 +0200 |
commit | 894813b993963de006d0a8aa7480b0403daaa87a (patch) | |
tree | bfc4f5a57da17089f93da5035e1d156b5adebd54 /libbuild2/cli/init.hxx | |
parent | e9a3804c2ea5972dd84a7d4759d4ea965c2490fb (diff) |
Move cli module to libbuild2-cli library
This is a temporary measure (until we unboundle this module) needed for
in-process configure support in bpkg.
Diffstat (limited to 'libbuild2/cli/init.hxx')
-rw-r--r-- | libbuild2/cli/init.hxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libbuild2/cli/init.hxx b/libbuild2/cli/init.hxx new file mode 100644 index 0000000..6d23795 --- /dev/null +++ b/libbuild2/cli/init.hxx @@ -0,0 +1,31 @@ +// file : libbuild2/cli/init.hxx -*- C++ -*- +// license : MIT; see accompanying LICENSE file + +#ifndef LIBBUILD2_CLI_INIT_HXX +#define LIBBUILD2_CLI_INIT_HXX + +#include <libbuild2/types.hxx> +#include <libbuild2/utility.hxx> + +#include <libbuild2/module.hxx> + +#include <libbuild2/cli/export.hxx> + +namespace build2 +{ + namespace cli + { + // Module `cli` does not require bootstrapping. + // + // Submodules: + // + // `cli.guess` -- set variables describing the compiler. + // `cli.config` -- load `cli.guess` and set the rest of the variables. + // `cli` -- load `cli.config` and register targets and rules. + // + extern "C" LIBBUILD2_CLI_SYMEXPORT const module_functions* + build2_cli_load (); + } +} + +#endif // LIBBUILD2_CLI_INIT_HXX |