X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffiletarget.h;h=3d4d004d9611c6e39316a39c1175bec8a3a9afa8;hb=af2dac0d09df4782060dd131f2a761e8a46a8d55;hp=982b8cb6abce166751d05cd4f5c4b82021503d56;hpb=a40db37e1e681d397d4bfc6c893e15945c533b72;p=builder.git diff --git a/source/filetarget.h b/source/filetarget.h index 982b8cb..3d4d004 100644 --- a/source/filetarget.h +++ b/source/filetarget.h @@ -19,12 +19,22 @@ class FileTarget: public Target { protected: Msp::FS::Path path; + Msp::Time::TimeStamp mtime; unsigned size; FileTarget(Builder &, const Package *, const Msp::FS::Path &); public: const Msp::FS::Path &get_path() const { return path; } + const Msp::Time::TimeStamp &get_mtime() const { return mtime; } unsigned get_size() const { return size; } + + /** + Changes the mtime of the target to the current time. + */ + void touch(); + +protected: + virtual void check_rebuild(); }; #endif