X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpackage.cpp;h=c3d7d75a0fcb037e021a9cfd45c219f8a694c552;hb=49ee08bb6f63f6b3a8cdd3b7cf032dea9b2cba8a;hp=b35a0d8f0ab0af20eaa65acd03636592b86493ce;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/package.cpp b/source/package.cpp index b35a0d8..c3d7d75 100644 --- a/source/package.cpp +++ b/source/package.cpp @@ -5,6 +5,7 @@ Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ +#include #include #include #include "builder.h" @@ -14,8 +15,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 +22,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 "<