X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffiletarget.cpp;h=dd20a0e8554d8cb5795af04e1e09b33fa279c2cb;hb=c01dc113eca278100ad0b4572082da619d52662e;hp=decb4bf793d68015066e1dede84f044e340ae836;hpb=25900e0f84f72de6208f30529f9bcaae11570f8f;p=builder.git diff --git a/source/filetarget.cpp b/source/filetarget.cpp index decb4bf..dd20a0e 100644 --- a/source/filetarget.cpp +++ b/source/filetarget.cpp @@ -10,10 +10,12 @@ using namespace std; using namespace Msp; FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a): - Target(b, p, make_name(p, a)), + Target(b, generate_name(p, a)), path(a), size(0) { + package = p; + builder.get_vfs().register_path(path, this); if(FS::Stat st = FS::lstat(path)) @@ -60,7 +62,7 @@ void FileTarget::check_rebuild() mark_rebuild("Package options changed"); } -string FileTarget::make_name(const Package *pkg, const FS::Path &pth) +string FileTarget::generate_name(const Package *pkg, const FS::Path &pth) { if(const SourcePackage *spkg = dynamic_cast(pkg)) {