]> git.tdb.fi Git - builder.git/blobdiff - source/buildercli.h
Refactor transitive dependencies to work on all targets
[builder.git] / source / buildercli.h
diff --git a/source/buildercli.h b/source/buildercli.h
deleted file mode 100644 (file)
index 77e58ca..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef BUILDERCLI_H_
-#define BUILDERCLI_H_
-
-#include <msp/core/application.h>
-#include "builder.h"
-
-class Analyzer;
-
-/**
-Provides a command-line interface for Builder.
-*/
-class BuilderCLI: public Msp::RegisteredApplication<BuilderCLI>
-{
-private:
-       typedef std::list<std::string> NameList;
-
-       NameList cmdline_targets;
-       Config::InputOptions cmdline_options;
-       Msp::FS::Path cwd;
-
-       Builder builder;
-       Logger logger;
-       Analyzer *analyzer;
-       bool build;
-       unsigned clean;
-       bool dry_run;
-       bool help;
-       std::string helpmsg;
-       bool show_progress;
-       std::string build_file;
-       unsigned jobs;
-       NameList what_if;
-       bool conf_all;
-       bool conf_only;
-       bool build_all;
-       bool create_makefile;
-
-public:
-       BuilderCLI(int, char **);
-       ~BuilderCLI();
-
-       int main() override;
-
-private:
-       bool prepare_build();
-       Target *resolve_target(const std::string &);
-
-       void package_help();
-};
-
-#endif