X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpkgconfig.h;h=4b2505dcefa6213e9ccfef953c878f3771aaf6d4;hb=dc4b917034c9d3718f07139e2f0f3631a080c6f3;hp=8baa9d9c10008ffa28f669156dbdb7fc5a5ac4c6;hpb=7aeaa4ba965f596edad438c02e345a8843f7469a;p=builder.git diff --git a/source/pkgconfig.h b/source/pkgconfig.h index 8baa9d9..4b2505d 100644 --- a/source/pkgconfig.h +++ b/source/pkgconfig.h @@ -1,26 +1,18 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef PKGCONFIG_H_ #define PKGCONFIG_H_ -#include "target.h" +#include "sourcepackage.h" +#include "filetarget.h" /** Creates a .pc file to enable other packages fetch build options with pkg-config. */ -class PkgConfig: public Target +class PkgConfig: public FileTarget { public: - PkgConfig(Builder &, const Package &); - const char *get_type() const { return "PkgConfig"; } - Action *build(); -private: - const Package &pkg; + PkgConfig(Builder &, const SourcePackage &); + + virtual const char *get_type() const { return "PkgConfig"; } }; #endif