X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdatafile.cpp;h=bb61d7dea7babecc4bafb8cbbe9f4b029f11d15a;hb=ac1f35e436dbe86f903dce2f49b002ff17f1ca50;hp=afde084d4b1504698de48d537c2c342a1292103f;hpb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;p=builder.git diff --git a/source/datafile.cpp b/source/datafile.cpp index afde084..bb61d7d 100644 --- a/source/datafile.cpp +++ b/source/datafile.cpp @@ -1,21 +1,16 @@ #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)