]> git.tdb.fi Git - builder.git/blobdiff - source/mingwdlltool.cpp
Don't treat using deprecated declarations as errors
[builder.git] / source / mingwdlltool.cpp
index f44f5754a1ef4f8d45ec639ff045716a9f7b830a..03babd4126e09df7ff8869f5da214807094fb530 100644 (file)
@@ -1,7 +1,6 @@
 #include <cstdlib>
 #include <msp/fs/utils.h>
 #include <msp/strings/format.h>
-#include "architecture.h"
 #include "builder.h"
 #include "component.h"
 #include "exportdefinitions.h"
@@ -18,7 +17,9 @@ using namespace Msp;
 
 MingwDllTool::MingwDllTool(Builder &b, const Architecture &a):
        Tool(b, a, "DLL")
-{ }
+{
+       set_command("dlltool", true);
+}
 
 Target *MingwDllTool::create_target(const list<Target *> &sources, const string &)
 {
@@ -56,14 +57,6 @@ Target *MingwDllTool::create_install(Target &target) const
                return 0;
 }
 
-void MingwDllTool::do_prepare()
-{
-       string command = "dlltool";
-       if(architecture->is_cross())
-               command = format("%s-%s", architecture->get_cross_prefix(), command);
-       executable = builder.get_vfs().find_binary(command);
-}
-
 Task *MingwDllTool::run(const Target &target) const
 {
        const ImportLibrary *imp = dynamic_cast<const ImportLibrary *>(&target);