-/* $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)