X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.h;h=04a0a41103b858a2a483c7b97e8ff75c2b3fcb68;hb=7e17b52f23dbbf06b425f69f4b8a84867e2f0597;hp=d0b3cc2aff060c8031ff8111ad3c0725bfcc8ece;hpb=b1a6e6dcdd7e0da272ab0ebbed4e295f83f1165a;p=builder.git diff --git a/source/component.h b/source/component.h index d0b3cc2..04a0a41 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,7 +22,8 @@ public: Component ∁ void source(const std::string &); - void cflag(const std::string &); + void require(const std::string &); + void build_info(); }; enum Type @@ -40,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; @@ -49,6 +52,7 @@ protected: bool install; std::string install_headers; BuildInfo build_info; + std::list requires; }; typedef std::list ComponentList;