aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/init.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-24 17:41:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-28 15:01:48 +0300
commit4bdf53837e010073de802070d4e6087410662d3e (patch)
tree2820d3964877d1a7d498833da325aa3d3a699353 /libbuild2/cc/init.hxx
parentea24f530048cbce0c5335ca3fd3632c8ce34315a (diff)
Move cc build system module to separate library
Diffstat (limited to 'libbuild2/cc/init.hxx')
-rw-r--r--libbuild2/cc/init.hxx36
1 files changed, 36 insertions, 0 deletions
diff --git a/libbuild2/cc/init.hxx b/libbuild2/cc/init.hxx
new file mode 100644
index 0000000..b98e816
--- /dev/null
+++ b/libbuild2/cc/init.hxx
@@ -0,0 +1,36 @@
+// file : libbuild2/cc/init.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef LIBBUILD2_CC_INIT_HXX
+#define LIBBUILD2_CC_INIT_HXX
+
+#include <libbuild2/types.hxx>
+#include <libbuild2/utility.hxx>
+
+#include <libbuild2/module.hxx>
+
+#include <libbuild2/cc/export.hxx>
+
+namespace build2
+{
+ namespace cc
+ {
+ // Module `cc` does not require bootstrapping.
+ //
+ // Submodules:
+ //
+ // `cc.core.vars` -- registers some variables.
+ // `cc.core.guess` -- loads cc.core.vars and sets some variables.
+ // `cc.core.config` -- loads cc.core.guess and sets more variables.
+ // `cc.core` -- loads cc.core.config and registers target types and
+ // rules.
+ // `cc.config` -- loads {c,cxx}.config.
+ // `cc` -- loads c and cxx.
+ //
+ extern "C" LIBBUILD2_CC_SYMEXPORT const module_functions*
+ build2_cc_load ();
+ }
+}
+
+#endif // LIBBUILD2_CC_INIT_HXX