X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpackage.cpp;h=c4710bca79a4f6082b7dd3e7b62297e85a247599;hb=51d5a0f618faabfce9a0a5d5dd64b0b0d52b97cb;hp=c905ee464e7041de6372cbcca0f7e7142e20ef35;hpb=1968c546cfb30214e8dc5afc722bec14aa8373f5;p=builder.git diff --git a/source/package.cpp b/source/package.cpp index c905ee4..c4710bc 100644 --- a/source/package.cpp +++ b/source/package.cpp @@ -1,10 +1,4 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - +#include #include #include #include "builder.h" @@ -14,11 +8,6 @@ Distributed under the LGPL using namespace std; using namespace Msp; -#include - -/** -Creates a buildable package. -*/ Package::Package(Builder &b, const string &n): builder(b), name(n), @@ -26,37 +15,13 @@ Package::Package(Builder &b, const string &n): use_pkgconfig(true) { } -/** -Collects all directly and indirectly required packages, including the package -itself. -*/ -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; -} - -/** -Processes configuration options that were most likely obtained from the command -line. -*/ void Package::configure(const StringMap &opts, unsigned flag) { if(conf_done) return; if(builder.get_verbose()>=3) - cout<<"Configuring "<