]> git.tdb.fi Git - builder.git/blobdiff - source/pkgconfig.h
Rework the Target class hierarchy
[builder.git] / source / pkgconfig.h
index 20e5fbfaac88380040283198ed7f42cdc4429cee..75280dc90d99820b46adf5d176058f6be7a4f7f1 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-200 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -9,19 +9,17 @@ Distributed under the LGPL
 #define PKGCONFIG_H_
 
 #include "sourcepackage.h"
-#include "target.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 SourcePackage &);
-       const char *get_type() const { return "PkgConfig"; }
+       virtual const char *get_type() const { return "PkgConfig"; }
 private:
-       const Package &pkg;
-
        virtual Action *create_action();
 };