#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