]> git.tdb.fi Git - builder.git/blobdiff - source/install.cpp
Move variable expansion from Config to SourcePackage
[builder.git] / source / install.cpp
index e59e0d93b090d802e26ed9949eedbb036238826d..0578ba7173db105f0e983ceed43d8d4a185a5fa0 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-2010  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -28,6 +28,11 @@ Install::Install(Builder &b, const SourcePackage &p, FileTarget &s, const std::s
        add_depend(&source);
 }
 
+Target *Install::get_real_target()
+{
+       return source.get_real_target();
+}
+
 void Install::check_rebuild()
 {
        if(!mtime)
@@ -66,7 +71,11 @@ FS::Path Install::generate_target_path(const FileTarget &tgt, const std::string
        {
                const Component &comp = shlib->get_component();
                if(comp.get_type()==Component::LIBRARY)
+               {
                        mid = "lib";
+                       if(!shlib->get_soname().empty())
+                               tgtname = shlib->get_soname();
+               }
                else if(comp.get_type()==Component::MODULE)
                        mid = "lib/"+tgt.get_package()->get_name();
        }