X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farchive.cpp;h=a7b86c7cc4b945769fc82f404ea0f8de61ee799a;hb=329dc80e392faf7354338621e73dba1880fc767d;hp=cd25de1e2d90f4ef0516edf29f4efb4c1a9980eb;hpb=0fd98b61eb112fe397c67b7735627b7bbdd01e41;p=builder.git diff --git a/source/archive.cpp b/source/archive.cpp index cd25de1..a7b86c7 100644 --- a/source/archive.cpp +++ b/source/archive.cpp @@ -1,9 +1,16 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include #include "archive.h" #include "builder.h" #include "component.h" #include "objectfile.h" -#include "package.h" +#include "sourcepackage.h" #include "staticlibrary.h" using namespace std; @@ -14,7 +21,8 @@ Archive::Archive(Builder &b, const StaticLibrary &lib): { const Component &comp=lib.get_component(); - argv.push_back(builder.get_tool("AR", lib.get_package()->get_arch())); + std::string tool="AR"; + argv.push_back(builder.get_architecture(comp.get_package().get_arch()).get_tool(tool)); argv.push_back("rc"); argv.push_back(lib.get_name()); @@ -27,7 +35,7 @@ Archive::Archive(Builder &b, const StaticLibrary &lib): if(!builder.get_dry_run()) Path::mkpath(lpath.subpath(0, lpath.size()-1), 0755); - announce(comp.get_package().get_name(), "AR ", relative(lpath, comp.get_package().get_source()).str()); + announce(comp.get_package().get_name(), tool, relative(lpath, comp.get_package().get_source()).str()); launch(); }