X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpkgconfig.cpp;h=4169f1eaed5267de40e6fe887fe4194a60bd0ca5;hb=f4a10e1dc189f28367eafe3b91723d275928ced7;hp=8f4578044279d529aab4caf465e5d5bc9895cd1e;hpb=7aeaa4ba965f596edad438c02e345a8843f7469a;p=builder.git diff --git a/source/pkgconfig.cpp b/source/pkgconfig.cpp index 8f45780..4169f1e 100644 --- a/source/pkgconfig.cpp +++ b/source/pkgconfig.cpp @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -9,14 +9,13 @@ Distributed under the LGPL #include "pkgconfig.h" #include "pkgconfigaction.h" -PkgConfig::PkgConfig(Builder &b, const Package &p): - Target(b, &p, (p.get_source()/(p.get_name()+".pc")).str()), - pkg(p) +PkgConfig::PkgConfig(Builder &b, const SourcePackage &p): + FileTarget(b, &p, p.get_source()/(p.get_name()+".pc")) { - buildable=true; + buildable = true; } -Action *PkgConfig::build() +Action *PkgConfig::create_action() { - return Target::build(new PkgConfigAction(builder, *this)); + return new PkgConfigAction(builder, *this); }