X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbuilder.h;h=830d356b28959c1d35e22c5eedbc1959256f7d5f;hb=40eb101a642b9ed2e898eec39e0916fa71066b23;hp=1016498f08b736e3517e45f269079e78b76cc13f;hpb=74266a6e650f019063cdcd1c9a7bd26d8f99041b;p=builder.git diff --git a/source/builder.h b/source/builder.h index 1016498..830d356 100644 --- a/source/builder.h +++ b/source/builder.h @@ -27,12 +27,12 @@ public: Package *get_package(const std::string &); Target *get_target(const std::string &); Target *get_header(const std::string &, const std::string &, const StringList &); - Target *get_library(const std::string &, const StringList &); + Target *get_library(const std::string &, const StringList &, unsigned); const Msp::Path::Path &get_cwd() const { return cwd; } int main(); ~Builder(); - static void usage(const char *, bool); + static void usage(const char *, const char *, bool); private: class Loader: public Msp::Parser::Loader { @@ -71,15 +71,17 @@ private: bool help; unsigned verbose; bool chrome; - Msp::Path::Path build_file; + std::string build_file; unsigned jobs; StringList what_if; bool conf_all; + bool conf_only; bool build_all; int load_build_file(const Msp::Path::Path &); int create_targets(); - Target *check_header(const Msp::Path::Path &); + Target *get_header(const Msp::Path::Path &); + Target *get_library(const std::string &, const Msp::Path::Path &, unsigned); void add_target(Target *); void update_hash(std::string &, const std::string &); int build();