X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilder.h;h=bdc5e2fb931e36d6df53229702197ed04447f504;hb=59ac0a44d6edf179c01604c6ced744873213f855;hp=f66b31096773f35c04c01aac3a343314a066271d;hpb=4dc31cca056ea293d320928f61fef0558089d32d;p=builder.git diff --git a/source/builder.h b/source/builder.h index f66b310..bdc5e2f 100644 --- a/source/builder.h +++ b/source/builder.h @@ -4,9 +4,10 @@ #include #include #include -#include +#include #include #include +#include "config.h" class Package; class Target; @@ -32,10 +33,12 @@ private: void package(const std::string &); }; - typedef std::map PackageMap; - typedef std::map TargetMap; + typedef std::map PackageMap; + typedef std::map TargetMap; + typedef std::map ToolMap; std::list cmdline_targets; + RawOptionMap cmdline_options; TargetMap targets; PackageMap packages; unsigned verbose; @@ -44,11 +47,13 @@ private: std::list new_pkgs; TargetMap includes; std::list new_tgts; + ToolMap tools; int load_build_file(const Msp::Path::Path &); - void create_targets(); + int create_targets(); Target *check_header(const Msp::Path::Path &); void add_target(Target *); + int build(); static Msp::Application::RegApp reg; };