]> git.tdb.fi Git - builder.git/blobdiff - source/datafile.cpp
Move main package tracking to PackageManager
[builder.git] / source / datafile.cpp
index 66e610c6f9c1369c824ef0240a8884cb9002b7f3..bb61d7dea7babecc4bafb8cbbe9f4b029f11d15a 100644 (file)
@@ -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)