builder.get_vfs().register_path(path, this);
+ stat();
+}
+
+void FileTarget::stat()
+{
if(FS::Stat st = FS::lstat(path))
{
mtime = st.get_modify_time();
return Target::build();
}
+
+void FileTarget::build_finished(bool success)
+{
+ if(success)
+ stat();
+
+ Target::build_finished(success);
+}
FileTarget(Builder &, const SourcePackage &, const Msp::FS::Path &);
private:
void init(const SourcePackage *);
+ void stat();
static std::string generate_name(Builder &, const SourcePackage *, const Msp::FS::Path &);
public:
public:
virtual Task *build();
+
+protected:
+ virtual void build_finished(bool);
};
#endif