Msp::FS::Path path;
Msp::Time::TimeStamp mtime;
unsigned size;
+ Msp::FS::Path install_location;
FileTarget(Builder &, const Msp::FS::Path &);
FileTarget(Builder &, const SourcePackage &, const Msp::FS::Path &);
const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
unsigned get_size() const { return size; }
+ bool is_installable() const { return !install_location.empty(); }
+ const Msp::FS::Path &get_install_location() const { return install_location; }
+
/**
Changes the mtime of the target to the current time.
*/
const Tool *tool;
State state;
std::string rebuild_reason;
- Msp::FS::Path install_location;
Dependencies depends;
/** Forces rebuild of the target. */
void force_rebuild();
- bool is_installable() const { return !install_location.empty(); }
- const Msp::FS::Path &get_install_location() const { return install_location; }
void add_depend(Target *);
const Dependencies &get_depends() const { return depends; }