]> git.tdb.fi Git - builder.git/blobdiff - source/archive.cpp
Split class Package into SourcePackage and BinaryPackage
[builder.git] / source / archive.cpp
index cd25de1e2d90f4ef0516edf29f4efb4c1a9980eb..4dee50899f123ad580b5f3f66997527446442fec 100644 (file)
@@ -1,9 +1,16 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #include <msp/path/utils.h>
 #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,7 @@ 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()));
+       argv.push_back(builder.get_tool("AR", comp.get_package().get_arch()));
        argv.push_back("rc");
 
        argv.push_back(lib.get_name());