aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/c/init.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-24 22:10:09 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-28 15:01:48 +0300
commitf7adb1ce7a13753a6acf5c9eeb9577ecdada630c (patch)
tree5bd0bb1488c0a6fb35788ea815cbd7533a0de72a /libbuild2/c/init.hxx
parent4bdf53837e010073de802070d4e6087410662d3e (diff)
Move c build system module to separate library
Diffstat (limited to 'libbuild2/c/init.hxx')
-rw-r--r--libbuild2/c/init.hxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/libbuild2/c/init.hxx b/libbuild2/c/init.hxx
new file mode 100644
index 0000000..92d12a3
--- /dev/null
+++ b/libbuild2/c/init.hxx
@@ -0,0 +1,32 @@
+// file : libbuild2/c/init.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef LIBBUILD2_C_INIT_HXX
+#define LIBBUILD2_C_INIT_HXX
+
+#include <libbuild2/types.hxx>
+#include <libbuild2/utility.hxx>
+
+#include <libbuild2/module.hxx>
+
+#include <libbuild2/c/export.hxx>
+
+namespace build2
+{
+ namespace c
+ {
+ // Module `c` does not require bootstrapping.
+ //
+ // Submodules:
+ //
+ // `c.guess` -- registers and sets some variables.
+ // `c.config` -- loads c.guess and sets more variables.
+ // `c` -- loads c.config and registers target types and rules.
+ //
+ extern "C" LIBBUILD2_C_SYMEXPORT const module_functions*
+ build2_c_load ();
+ }
+}
+
+#endif // LIBBUILD2_C_INIT_HXX