aboutsummaryrefslogtreecommitdiff
path: root/build/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-24 13:53:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-24 13:53:28 +0200
commite815af118562c68794efbd310c887acd8eae800c (patch)
treecedd8745cce259693c038c309d663a682c982e98 /build/b.cxx
parent4f52c4ed65883dacef32587cf066fbb1182c6628 (diff)
First take on the cli module plus necessary infrastructure
Diffstat (limited to 'build/b.cxx')
-rw-r--r--build/b.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/build/b.cxx b/build/b.cxx
index 8e75c14..ef39446 100644
--- a/build/b.cxx
+++ b/build/b.cxx
@@ -78,14 +78,16 @@ namespace build
#include <build/config/module>
-#include <build/bin/target>
-#include <build/bin/rule>
+#include <build/bin/target> //@@ tmp
+#include <build/bin/rule> //@@ tmp
#include <build/bin/module>
-#include <build/cxx/target>
-#include <build/cxx/rule>
+#include <build/cxx/target> //@@ tmp
+#include <build/cxx/rule> //@@ tmp
#include <build/cxx/module>
+#include <build/cli/module>
+
using namespace build;
int
@@ -95,7 +97,7 @@ main (int argc, char* argv[])
{
tracer trace ("main");
- cli::argv_scanner scan (argc, argv, true);
+ cl::argv_scanner scan (argc, argv, true);
options ops (scan);
// Version.
@@ -134,6 +136,7 @@ main (int argc, char* argv[])
modules["config"] = &config::init;
modules["bin"] = &bin::init;
modules["cxx"] = &cxx::init;
+ modules["cli"] = &cli::init;
// Register target types.
//