]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Make install_location a path
[builder.git] / source / target.h
index 790a7e33626670ecc6ef546e4bb4e7caaab3191a..885ef4b567f00d69d9f04921cd5fca9c46c06568 100644 (file)
@@ -14,8 +14,6 @@ class SourcePackage;
 class Task;
 class Tool;
 
-class Target;
-
 /**
 Targets make up the build graph.  This class is a base for all target types and
 handles many common tasks.  See also FileTarget and VirtualTarget.
@@ -47,7 +45,7 @@ protected:
        const Tool *tool;
        State state;
        std::string rebuild_reason;
-       std::string install_location;
+       Msp::FS::Path install_location;
 
        Dependencies depends;
 
@@ -90,7 +88,7 @@ public:
        void force_rebuild();
 
        bool is_installable() const { return !install_location.empty(); }
-       const std::string &get_install_location() const { return install_location; }
+       const Msp::FS::Path &get_install_location() const { return install_location; }
        void add_depend(Target *);
        const Dependencies &get_depends() const { return depends; }