]> git.tdb.fi Git - builder.git/commitdiff
Rename PkgConfig to PkgConfigFile
authorMikko Rasa <tdb@tdb.fi>
Wed, 30 May 2012 19:12:24 +0000 (19:12 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:52 +0000 (00:08 +0300)
source/builder.cpp
source/installedfile.cpp
source/pkgconfig.cpp [deleted file]
source/pkgconfig.h [deleted file]
source/pkgconfigfile.cpp [new file with mode: 0644]
source/pkgconfigfile.h [new file with mode: 0644]
source/pkgconfiggenerator.cpp
source/pkgconfiggenerator.h

index 42dc4646291bfca2c1650f44338a94e090cb93fd..b3e096848f5de0db856a644450f2482ca90e20bc 100644 (file)
@@ -24,7 +24,7 @@
 #include "installedfile.h"
 #include "misc.h"
 #include "package.h"
-#include "pkgconfig.h"
+#include "pkgconfigfile.h"
 #include "pkgconfiggenerator.h"
 #include "sharedlibrary.h"
 #include "sourcepackage.h"
@@ -504,7 +504,7 @@ int Builder::create_targets()
 
                if(spkg->get_install_flags()&(SourcePackage::LIB|SourcePackage::INCLUDE))
                {
-                       PkgConfig *pc = new PkgConfig(*this, *spkg);
+                       PkgConfigFile *pc = new PkgConfigFile(*this, *spkg);
                        install->add_depend(toolchain.get_tool("CP").create_target(*pc));
                }
        }
index 5ed3139cd38d5d9fdd407dafb5813e1b3d7cd896..fff8c3b4ef83ba850e8f736bcf081e252e8bac32 100644 (file)
@@ -5,7 +5,6 @@
 #include "datafile.h"
 #include "installedfile.h"
 #include "package.h"
-#include "pkgconfig.h"
 #include "sharedlibrary.h"
 #include "staticlibrary.h"
 
diff --git a/source/pkgconfig.cpp b/source/pkgconfig.cpp
deleted file mode 100644 (file)
index 9c5b720..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "builder.h"
-#include "package.h"
-#include "pkgconfig.h"
-
-PkgConfig::PkgConfig(Builder &b, const SourcePackage &p):
-       FileTarget(b, &p, p.get_source()/(p.get_name()+".pc"))
-{
-       tool = &builder.get_toolchain().get_tool("PCG");
-
-       install_location = "lib/pkgconfig";
-}
diff --git a/source/pkgconfig.h b/source/pkgconfig.h
deleted file mode 100644 (file)
index 4b2505d..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifndef PKGCONFIG_H_
-#define PKGCONFIG_H_
-
-#include "sourcepackage.h"
-#include "filetarget.h"
-
-/**
-Creates a .pc file to enable other packages fetch build options with pkg-config.
-*/
-class PkgConfig: public FileTarget
-{
-public:
-       PkgConfig(Builder &, const SourcePackage &);
-
-       virtual const char *get_type() const { return "PkgConfig"; }
-};
-
-#endif
diff --git a/source/pkgconfigfile.cpp b/source/pkgconfigfile.cpp
new file mode 100644 (file)
index 0000000..45951cc
--- /dev/null
@@ -0,0 +1,11 @@
+#include "builder.h"
+#include "package.h"
+#include "pkgconfigfile.h"
+
+PkgConfigFile::PkgConfigFile(Builder &b, const SourcePackage &p):
+       FileTarget(b, &p, p.get_source()/(p.get_name()+".pc"))
+{
+       tool = &builder.get_toolchain().get_tool("PCG");
+
+       install_location = "lib/pkgconfig";
+}
diff --git a/source/pkgconfigfile.h b/source/pkgconfigfile.h
new file mode 100644 (file)
index 0000000..1a31c38
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef PKGCONFIGFILE_H_
+#define PKGCONFIGFILE_H_
+
+#include "sourcepackage.h"
+#include "filetarget.h"
+
+/**
+Creates a .pc file to enable other packages fetch build options with pkg-config.
+*/
+class PkgConfigFile: public FileTarget
+{
+public:
+       PkgConfigFile(Builder &, const SourcePackage &);
+
+       virtual const char *get_type() const { return "PkgConfig"; }
+};
+
+#endif
index 91d101da440cc4aee56358ba6f81674f8cdf86d1..827f62d4cff20ec108aab4ebc9e439f8abee1b61 100644 (file)
@@ -2,7 +2,7 @@
 #include <msp/io/file.h>
 #include <msp/io/print.h>
 #include "builder.h"
-#include "pkgconfig.h"
+#include "pkgconfigfile.h"
 #include "pkgconfiggenerator.h"
 
 using namespace std;
@@ -20,13 +20,13 @@ Target *PkgConfigGenerator::create_target(const list<Target *> &, const string &
 
 Task *PkgConfigGenerator::run(const Target &target) const
 {
-       const PkgConfig &pkgc = dynamic_cast<const PkgConfig &>(target);
+       const PkgConfigFile &pkgc = dynamic_cast<const PkgConfigFile &>(target);
        Worker *worker = new Worker(pkgc);
        return new InternalTask(worker);
 }
 
 
-PkgConfigGenerator::Worker::Worker(const PkgConfig &t):
+PkgConfigGenerator::Worker::Worker(const PkgConfigFile &t):
        target(t)
 { }
 
index 1f0d99abc1e6f8d90a48ceb5e04ce9411eb3e8d3..0d6c092fd8762142d562f04c7d650c64fd152d4c 100644 (file)
@@ -12,10 +12,10 @@ private:
        class Worker: public InternalTask::Worker
        {
        private:
-               const PkgConfig &target;
+               const PkgConfigFile &target;
 
        public:
-               Worker(const PkgConfig &);
+               Worker(const PkgConfigFile &);
 
        private:
                virtual void main();