X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpkgconfig.cpp;h=4169f1eaed5267de40e6fe887fe4194a60bd0ca5;hb=0458300fda4f345f865a7f3ee4fc0f2020a91983;hp=d31ab9d2d9ce01cc4d8be570ba37d3fe428ea9f0;hpb=654de39b62a9a58fd8e1b5a557361d628345788b;p=builder.git diff --git a/source/pkgconfig.cpp b/source/pkgconfig.cpp index d31ab9d..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 */ @@ -10,13 +10,12 @@ Distributed under the LGPL #include "pkgconfigaction.h" PkgConfig::PkgConfig(Builder &b, const SourcePackage &p): - Target(b, &p, (p.get_source()/(p.get_name()+".pc")).str()), - pkg(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); }