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>
15 FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a):
16 // XXX Builder depends on target name being its path for locating file targets
17 Target(b, p, /*FS::basename*/(a.str())),
22 if(!FS::stat(path, st))
24 mtime = Time::TimeStamp::from_unixtime(st.st_mtime);