X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpkgconfig.h;h=c196e4f4701ea75b7d52d83c7e6625ff0b465794;hb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;hp=2ddcce8e1356c73c25681a0f3a7dfda48d5111ef;hpb=6613371a07a1a9a8d5dead488092015261a9bf5f;p=builder.git diff --git a/source/pkgconfig.h b/source/pkgconfig.h index 2ddcce8..c196e4f 100644 --- a/source/pkgconfig.h +++ b/source/pkgconfig.h @@ -1,19 +1,19 @@ #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(); + PkgConfig(Builder &, const SourcePackage &); + virtual const char *get_type() const { return "PkgConfig"; } private: - const Package &pkg; + virtual Action *create_action(); }; #endif