]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Better use of OOP in determining file install locations
[builder.git] / source / target.h
index a47eb756f868cc0663939f7d255c6b31f3f15d8d..891d75752396471978048d65cb7ffefc2f49cecf 100644 (file)
@@ -33,6 +33,7 @@ protected:
        bool building;
        bool rebuild;
        std::string rebuild_reason;
+       std::string install_location;
 
        Dependencies depends;
        bool deps_ready;
@@ -69,6 +70,8 @@ public:
        bool is_buildable() const { return buildable; }
        bool get_rebuild() const { return rebuild; }
        const std::string &get_rebuild_reason() const { return rebuild_reason; }
+       bool is_installable() const { return !install_location.empty(); }
+       const std::string &get_install_location() const { return install_location; }
        void add_depend(Target *);
        const Dependencies &get_depends() const { return depends; }
        bool get_depends_ready() const { return deps_ready; }