]> git.tdb.fi Git - builder.git/blobdiff - source/binary.cpp
Replace per-file copyright notices with a single file
[builder.git] / source / binary.cpp
index 590471f3a0f75e286f55c6afd4f04f2c62a4b447..aa75b4599a52486614cd7c8df74a6a3f40bab2ab 100644 (file)
@@ -1,12 +1,5 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/fs/utils.h>
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
 #include "binary.h"
 #include "builder.h"
 #include "component.h"
@@ -53,8 +46,7 @@ void Binary::find_depends()
                        {
                                dep_libs.push_back(lib);
 
-                               if(Install *inst = dynamic_cast<Install *>(lib))
-                                       lib = &inst->get_source();
+                               lib = lib->get_real_target();
                                if(StaticLibrary *stlib = dynamic_cast<StaticLibrary *>(lib))
                                        queue.push_back(&stlib->get_component());
                        }