]> git.tdb.fi Git - builder.git/blobdiff - source/builder.h
Add command line options (not all of them work yet)
[builder.git] / source / builder.h
index bdc5e2fb931e36d6df53229702197ed04447f504..34afb92e91aafccdaef1896042404d251b9da8e9 100644 (file)
@@ -9,6 +9,7 @@
 #include <msp/path/path.h>
 #include "config.h"
 
+class Analyzer;
 class Package;
 class Target;
 
@@ -20,7 +21,9 @@ public:
        Package  *get_package(const std::string &);
        Target   *get_target(const std::string &);
        Target   *get_header(const std::string &, const std::string &, const std::list<std::string> &);
+       Target   *get_library(const std::string &, const std::list<std::string> &);
        int      main();
+       ~Builder();
 private:
        class Loader: public Msp::Parser::Loader
        {
@@ -39,15 +42,23 @@ private:
        
        std::list<std::string> cmdline_targets;
        RawOptionMap cmdline_options;
-       TargetMap  targets;
-       PackageMap packages;
-       unsigned   verbose;
-       Package    *default_pkg;
-       Msp::Path::Path cwd;
+       
+       PackageMap  packages;
        std::list<Package *> new_pkgs;
-       TargetMap  includes;
+       Package     *default_pkg;
+
+       TargetMap   targets;
        std::list<Target *> new_tgts;
-       ToolMap    tools;
+       TargetMap   includes;
+       TargetMap   libraries;
+
+       ToolMap     tools;
+       unsigned    verbose;
+       Msp::Path::Path cwd;
+       Analyzer    *analyzer;
+       unsigned    jobs;
+       std::list<std::string> what_if;
+       bool        chrome;
 
        int load_build_file(const Msp::Path::Path &);
        int create_targets();