X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffiletarget.h;h=3d4d004d9611c6e39316a39c1175bec8a3a9afa8;hb=8d7926359d2477a9928d7367678314bcbc1f6e81;hp=3b8bfcc4a0f0212f43bc23a058ecbf6f422215c2;hpb=66d1078c04849ec17a7343d0494d6ed087e04318;p=builder.git diff --git a/source/filetarget.h b/source/filetarget.h index 3b8bfcc..3d4d004 100644 --- a/source/filetarget.h +++ b/source/filetarget.h @@ -19,10 +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