]> git.tdb.fi Git - builder.git/blobdiff - source/pkgconfig.h
Support for creating .pc files
[builder.git] / source / pkgconfig.h
diff --git a/source/pkgconfig.h b/source/pkgconfig.h
new file mode 100644 (file)
index 0000000..2ddcce8
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef PKGCONFIG_H_
+#define PKGCONFIG_H_
+
+#include "target.h"
+
+/**
+Creates a .pc file to enable other packages fetch build options with pkg-config.
+*/
+class PkgConfig: public Target
+{
+public:
+       PkgConfig(Builder &, const Package &);
+       const char *get_type() const { return "PkgConfig"; }
+       Action     *build();
+private:
+       const Package &pkg;
+};
+
+#endif