]> git.tdb.fi Git - builder.git/blobdiff - source/component.h
Add an option to component to specify whether or not it should be built by default
[builder.git] / source / component.h
index e1df73a5b232aefd9c554010b2767f9f7697c297..e5057352f0cf86b91787d8af3a7634c389bd6fed 100644 (file)
@@ -34,7 +34,7 @@ public:
                void host(const std::string &);
                void build_info();
        };
-       
+
        enum Type
        {
                PROGRAM,
@@ -53,6 +53,7 @@ public:
        const std::string &get_install_headers() const { return install_headers; }
        bool              get_modular() const          { return modular; }
        const PkgRefList  &get_requires() const        { return requires; }
+       bool              get_default() const          { return deflt; }
        void              resolve_refs();
        void              create_build_info();
 protected:
@@ -66,6 +67,7 @@ protected:
        bool        modular;
        BuildInfo   build_info;
        PkgRefList  requires;
+       bool        deflt;
 };
 typedef std::list<Component> ComponentList;