]> git.tdb.fi Git - builder.git/blobdiff - source/pkgconfiggenerator.cpp
Make tools capable of reporting a system-wide path used to locate input files
[builder.git] / source / pkgconfiggenerator.cpp
index b18402a6d28001c671d46e59a4ff547c57c4805e..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)
 { }
 
@@ -69,4 +69,6 @@ void PkgConfigGenerator::Worker::main()
                else
                        IO::print(out, " -D%s=%s", i->first, i->second);
        out.put('\n');
+
+       status = Task::SUCCESS;
 }