]> git.tdb.fi Git - builder.git/blobdiff - source/component.h
Split class Package into SourcePackage and BinaryPackage
[builder.git] / source / component.h
index 36cd83e8a800795569c5d3a05d26c330677d37ec..387de4c5814e7bcd907ba5f9ee6b228a9131f0d9 100644 (file)
@@ -15,7 +15,7 @@ Distributed under the LGPL
 #include "misc.h"
 #include "packageref.h"
 
-class Package;
+class SourcePackage;
 
 /**
 Components specify things to be built.  Each component may build one binary (it
@@ -50,8 +50,8 @@ public:
                HEADERS
        };
 
-       Component(Package &, Type, const std::string &);
-       const Package     &get_package() const         { return pkg; }
+       Component(SourcePackage &, Type, const std::string &);
+       const SourcePackage &get_package() const         { return pkg; }
        Type              get_type() const             { return type; }
        const std::string &get_name() const            { return name; }
        const PathList    &get_sources() const         { return sources; }
@@ -65,7 +65,7 @@ public:
        void              create_build_info();
        void              create_targets() const;
 protected:
-       Package     &pkg;
+       SourcePackage &pkg;
        Type        type;
        std::string name;
        PathList    sources;