#include "installedfile.h"
#include "misc.h"
#include "package.h"
-#include "pkgconfig.h"
+#include "pkgconfigfile.h"
#include "pkgconfiggenerator.h"
#include "sharedlibrary.h"
#include "sourcepackage.h"
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));
}
}
#include "datafile.h"
#include "installedfile.h"
#include "package.h"
-#include "pkgconfig.h"
#include "sharedlibrary.h"
#include "staticlibrary.h"
+++ /dev/null
-#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";
-}
+++ /dev/null
-#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
--- /dev/null
+#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";
+}
--- /dev/null
+#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
#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;
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)
{ }
class Worker: public InternalTask::Worker
{
private:
- const PkgConfig ⌖
+ const PkgConfigFile ⌖
public:
- Worker(const PkgConfig &);
+ Worker(const PkgConfigFile &);
private:
virtual void main();