-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <msp/io/print.h>
#include <msp/strings/lexicalcast.h>
#include <msp/strings/utils.h>
#include "builder.h"
using namespace std;
using namespace Msp;
-#include <iostream>
-
-/**
-Creates a buildable package.
-*/
Package::Package(Builder &b, const string &n):
builder(b),
name(n),
use_pkgconfig(true)
{ }
-/**
-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 "<<name<<'\n';
+ IO::print("Configuring %s\n", name);
do_configure(opts, flag);
create_build_info();
- conf_done=true;
+ conf_done = true;
}
-/*** private ***/
Package::Loader::Loader(Package &p):
pkg(p)
void Package::Loader::require(const string &n)
{
- Package *req=pkg.builder.get_package(n);
+ Package *req = pkg.builder.get_package(n);
if(req)
pkg.requires.push_back(req);
}