]> git.tdb.fi Git - builder.git/blobdiff - source/pkgconfig.h
Rework the Target class hierarchy
[builder.git] / source / pkgconfig.h
index 2ddcce8e1356c73c25681a0f3a7dfda48d5111ef..75280dc90d99820b46adf5d176058f6be7a4f7f1 100644 (file)
@@ -1,19 +1,26 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2009  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();
+       PkgConfig(Builder &, const SourcePackage &);
+       virtual const char *get_type() const { return "PkgConfig"; }
 private:
-       const Package &pkg;
+       virtual Action *create_action();
 };
 
 #endif