]> git.tdb.fi Git - builder.git/blobdiff - source/component.h
Allow requirements for components
[builder.git] / source / component.h
index b1ce222de40ce0bed9694ec9d585b2bb9dce77ba..04a0a41103b858a2a483c7b97e8ff75c2b3fcb68 100644 (file)
@@ -6,6 +6,7 @@
 #include <msp/path/path.h>
 #include "buildinfo.h"
 #include "misc.h"
+#include "packageref.h"
 
 class Package;
 
@@ -21,6 +22,7 @@ public:
                Component &comp;
 
                void source(const std::string &);
+               void require(const std::string &);
                void build_info();
        };
        
@@ -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<PackageRef> requires;
 };
 typedef std::list<Component> ComponentList;