Distributed under the LGPL
*/
-#include <iostream>
+#include <msp/io/print.h>
#include <msp/strings/lexicalcast.h>
#include <msp/strings/utils.h>
#include "binarypackage.h"
{
unsigned flags=0;
for(ComponentList::iterator i=components.begin(); i!=components.end(); ++i)
- {
if(i->get_install())
{
if(i->get_type()==Component::PROGRAM)
flags|=BIN;
else if(i->get_type()==Component::LIBRARY || i->get_type()==Component::MODULE)
flags|=LIB;
+ else if(i->get_type()==Component::HEADERS)
+ flags|=INCLUDE;
}
- if(!i->get_install_headers().empty())
- flags|=INCLUDE;
- }
return flags;
}
if(flag && config.update(opts))
{
if(builder.get_verbose()>=2)
- cout<<"Configuration of "<<name<<" changed\n";
+ IO::print("Configuration of %s changed\n", name);
if(!builder.get_dry_run())
config.save();
}