X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdatafile.cpp;h=bb61d7dea7babecc4bafb8cbbe9f4b029f11d15a;hb=7606161ee4a6fd13c2f5ddca413ba3582df66f03;hp=66e610c6f9c1369c824ef0240a8884cb9002b7f3;hpb=b3ce9052ba98a4585aec75117265d170b7ccfdb8;p=builder.git diff --git a/source/datafile.cpp b/source/datafile.cpp index 66e610c..bb61d7d 100644 --- a/source/datafile.cpp +++ b/source/datafile.cpp @@ -1,28 +1,16 @@ -/* $Id$ - -This file is part of builder -Copyright © 2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "component.h" -#include "datacompile.h" #include "datafile.h" #include "file.h" #include "sourcepackage.h" DataFile::DataFile(Builder &b, const Component &c, File &s): - FileTarget(b, &c.get_package(), generate_target_path(c)), + FileTarget(b, c.get_package(), generate_target_path(c)), component(c), source(s) { - buildable=true; - add_depend(&source); -} + add_dependency(source); -Action *DataFile::create_action() -{ - return new DataCompile(builder, *this); + install_location = Msp::FS::Path("share")/package->get_name(); } Msp::FS::Path DataFile::generate_target_path(const Component &comp)