FileTarget(b, 0, p)
{ }
-Binary::Binary(Builder &b, const Component &c, const std::string &p, const list<ObjectFile *> &objs):
+Binary::Binary(Builder &b, const Component &c, const string &p, const list<ObjectFile *> &objs):
FileTarget(b, &c.get_package(), c.get_package().get_out_dir()/p)
{
component = &c;
*i = path/i->subpath(1);
}
-BinaryPackage *BinaryPackage::from_flags(Builder &builder, const std::string &name, const vector<string> &flags)
+BinaryPackage *BinaryPackage::from_flags(Builder &builder, const string &name, const vector<string> &flags)
{
BinaryPackage *pkg = new BinaryPackage(builder, name);
pkg->use_pkgconfig = true;
add("warning", &Loader::warning);
}
-void BuildInfo::Loader::incpath(const std::string &s)
+void BuildInfo::Loader::incpath(const string &s)
{
obj.incpath.push_back(s);
}
-void BuildInfo::Loader::define(const std::string &d, const std::string &v)
+void BuildInfo::Loader::define(const string &d, const string &v)
{
obj.defines[d] = v;
}
-void BuildInfo::Loader::libpath(const std::string &s)
+void BuildInfo::Loader::libpath(const string &s)
{
obj.libpath.push_back(s);
}
-void BuildInfo::Loader::library(const std::string &s)
+void BuildInfo::Loader::library(const string &s)
{
obj.libs.push_back(s);
}
-void BuildInfo::Loader::warning(const std::string &s)
+void BuildInfo::Loader::warning(const string &s)
{
obj.warnings.push_back(s);
}
Binary(b, p)
{ }
-Executable::Executable(Builder &b, const Component &c, const std::list<ObjectFile *> &objs):
+Executable::Executable(Builder &b, const Component &c, const list<ObjectFile *> &objs):
Binary(b, c, generate_filename(c), objs)
{
install_location = "bin";
system_path.push_back("/usr/"+arch.get_cross_prefix()+"/include");
}
-Target *GnuCompiler::create_target(const list<Target *> &sources, const std::string &) const
+Target *GnuCompiler::create_target(const list<Target *> &sources, const string &) const
{
if(sources.size()!=1)
throw invalid_argument("GnuCCompiler::create_target");
delete cxx_linker;
}
-Target *GnuLinker::create_target(const list<Target *> &sources, const std::string &arg) const
+Target *GnuLinker::create_target(const list<Target *> &sources, const string &arg) const
{
if(sources.empty())
throw invalid_argument("GnuLinker::create_target");
using namespace std;
using namespace Msp;
-InstalledFile::InstalledFile(Builder &b, const SourcePackage &p, FileTarget &s, const std::string &loc):
+InstalledFile::InstalledFile(Builder &b, const SourcePackage &p, FileTarget &s, const string &loc):
FileTarget(b, &p, generate_target_path(b.get_prefix(), s, loc)),
source(s)
{
mark_rebuild(source.get_name()+" needs rebuilding");
}
-FS::Path InstalledFile::generate_target_path(const FS::Path &prefix, const FileTarget &tgt, const std::string &loc)
+FS::Path InstalledFile::generate_target_path(const FS::Path &prefix, const FileTarget &tgt, const string &loc)
{
if(!tgt.is_installable() && loc.empty())
throw invalid_argument(tgt.get_name()+" is not installable");
return task;
}
-void Target::mark_rebuild(const std::string &reason)
+void Target::mark_rebuild(const string &reason)
{
if(reason.empty())
throw invalid_argument("No reason given for rebuilding "+name);