X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.h;h=ab3906854f79e38ca192fead4ca744f79ff4291f;hb=1a46151c99a406123c4ddfc797a7841baf3e4cc2;hp=af2fc2fae380a3accd0294c25239b268c6c67c1c;hpb=0d80cabf649b931b26e7055385156c75a7385d35;p=builder.git diff --git a/source/component.h b/source/component.h index af2fc2f..ab39068 100644 --- a/source/component.h +++ b/source/component.h @@ -6,6 +6,7 @@ #include #include "buildinfo.h" #include "misc.h" +#include "packageref.h" class Package; @@ -21,6 +22,8 @@ public: Component ∁ void source(const std::string &); + void require(const std::string &); + void build_info(); }; enum Type @@ -39,6 +42,7 @@ public: const BuildInfo &get_build_info() const { return build_info; } bool get_install() const { return install; } const std::string &get_install_headers() const { return install_headers; } + void resolve_refs(); void create_build_info(); protected: Package &pkg; @@ -48,6 +52,7 @@ protected: bool install; std::string install_headers; BuildInfo build_info; + PkgRefList requires; }; typedef std::list ComponentList;