3 This file is part of builder
4 Copyright © 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #include <msp/fs/stat.h>
9 #include <msp/fs/utils.h>
11 #include "filetarget.h"
16 FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a):
17 Target(b, p, FS::basename(a.str())),
21 builder.add_target(this);
24 if(!FS::stat(path, st))
26 mtime = Time::TimeStamp::from_unixtime(st.st_mtime);