X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpackage.cpp;h=c4710bca79a4f6082b7dd3e7b62297e85a247599;hb=dcaf06c2bba4e02a312cd6af24ddc96410e7be4e;hp=b35a0d8f0ab0af20eaa65acd03636592b86493ce;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/package.cpp b/source/package.cpp index b35a0d8..c4710bc 100644 --- a/source/package.cpp +++ b/source/package.cpp @@ -1,10 +1,4 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - +#include #include #include #include "builder.h" @@ -14,8 +8,6 @@ Distributed under the LGPL using namespace std; using namespace Msp; -#include - Package::Package(Builder &b, const string &n): builder(b), name(n), @@ -23,29 +15,13 @@ Package::Package(Builder &b, const string &n): use_pkgconfig(true) { } -PackageList Package::collect_requires() -{ - PackageList result; - result.push_back(this); - for(PackageList::const_iterator i=requires.begin(); i!=requires.end(); ++i) - { - PackageList r=(*i)->collect_requires(); - result.splice(result.end(), r); - } - - result.sort(); - result.unique(); - - return result; -} - void Package::configure(const StringMap &opts, unsigned flag) { if(conf_done) return; if(builder.get_verbose()>=3) - cout<<"Configuring "<