X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilder.h;h=67b337553b2ebbfba0df6427b798cb876c7d465e;hb=0dea0d850f6690de07933794592916d11c9d3f49;hp=af31f6942c4bf6117eead01cec3943628f60d2f6;hpb=91fb392b7303262274cbffeaad268c0a680f906d;p=builder.git diff --git a/source/builder.h b/source/builder.h index af31f69..67b3375 100644 --- a/source/builder.h +++ b/source/builder.h @@ -11,7 +11,6 @@ #include "buildtype.h" #include "config.h" #include "logger.h" -#include "misc.h" #include "packagemanager.h" #include "problem.h" #include "target.h" @@ -46,9 +45,11 @@ public: typedef std::map TargetMap; private: + typedef std::list NameList; typedef std::map BuildTypeMap; + typedef std::list ProblemList; - StringList cmdline_targets; + NameList cmdline_targets; Config::InputOptions cmdline_options; Msp::FS::Path cwd; @@ -74,7 +75,7 @@ private: bool show_progress; std::string build_file; unsigned jobs; - StringList what_if; + NameList what_if; bool conf_all; bool conf_only; bool build_all; @@ -118,13 +119,17 @@ public: virtual target. */ void add_primary_target(Target &); + /** Adds a target that will be installed. A new InstalledFile target is + created and added as a dependency to the "install" virtual target. */ + void add_installed_target(Target &); + void problem(const std::string &, const std::string &); static void usage(const char *, const char *, bool); /** Loads a build file. Returns 0 on success or -1 if the file could not be opened. */ - int load_build_file(const Msp::FS::Path &); + void load_build_file(const Msp::FS::Path &); private: /** Prepares packages and targets for building. Returns true if everything