X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Fcomponent.h;h=7d9aa1af704e195efed112cbfbd08e3163f9e285;hb=19de47d18af9c3021d77a7f84622a352adbd6ae5;hp=7ddd97297f267b96e865b82c5ef3f24b1390aa18;hpb=c8e829c219c65ff8e93b6c7b66212ff0876441c5;p=builder.git diff --git a/source/lib/component.h b/source/lib/component.h index 7ddd972..7d9aa1a 100644 --- a/source/lib/component.h +++ b/source/lib/component.h @@ -7,6 +7,7 @@ #include "buildinfo.h" #include "conditionalloader.h" #include "installmap.h" +#include "libbuilder_api.h" #include "package.h" class SourcePackage; @@ -17,10 +18,10 @@ may also build none), as well as install a bunch of headers. Components inherit dependencies and build info from the package they belong to, and may also add their own. */ -class Component +class LIBBUILDER_API Component { public: - class Loader: public Msp::DataFile::ObjectLoader, public ConditionalLoader + class LIBBUILDER_API Loader: public Msp::DataFile::ObjectLoader, public ConditionalLoader { public: Loader(Component &); @@ -42,6 +43,7 @@ protected: Package::Requirements requires; bool deflt = true; InstallMap install_map; + bool broken = false; std::vector problems; Component(SourcePackage &p, const std::string &n): package(p), name(n) { } @@ -66,6 +68,7 @@ public: const InstallMap &get_install_map() const { return install_map; } const Package::Requirements &get_required_packages() const { return requires; } bool is_default() const { return deflt; } + bool is_broken() const { return broken; } const std::vector &get_problems() const { return problems; } /** Prepares any required packages. */