]> git.tdb.fi Git - builder.git/blobdiff - source/filetarget.cpp
Refactor transitive dependencies to work on all targets
[builder.git] / source / filetarget.cpp
diff --git a/source/filetarget.cpp b/source/filetarget.cpp
deleted file mode 100644 (file)
index 8f35cfc..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include <msp/fs/stat.h>
-#include <msp/fs/utils.h>
-#include "builder.h"
-#include "filetarget.h"
-
-using namespace std;
-using namespace Msp;
-
-FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a):
-       Target(b, p, FS::basename(a.str())),
-       path(a),
-       size(0)
-{
-       builder.add_target(this);
-
-       struct stat st;
-       if(!FS::stat(path, st))
-       {
-               mtime = Time::TimeStamp::from_unixtime(st.st_mtime);
-               size = st.st_size;
-       }
-}