X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarypackage.cpp;h=66d1225f81b0643cea6eb4dd384c53366aa90690;hb=aa053d637e8259755af7d2e4b510a242f4d29c7b;hp=2c32d87769a76a48f7ce9a2bb2a5414486b42ff3;hpb=7c2db9e2b91da953701be233336c5bfa1f3c4af0;p=builder.git diff --git a/source/binarypackage.cpp b/source/binarypackage.cpp index 2c32d87..66d1225 100644 --- a/source/binarypackage.cpp +++ b/source/binarypackage.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include "binarypackage.h" @@ -24,7 +24,7 @@ BinaryPackage *BinaryPackage::from_flags(Builder &builder, const string &name, c Flags exclusive_static_flags; for(const string &f: static_flags) - if(find(flags.begin(), flags.end(), f)==flags.end()) + if(!any_equals(flags, f)) exclusive_static_flags.push_back(f); process_flags(exclusive_static_flags, pkg->static_binfo); @@ -60,7 +60,7 @@ void BinaryPackage::do_prepare() bool has_relative_paths = any_of(export_binfo.libpath.begin(), export_binfo.libpath.end(), is_relative) || any_of(export_binfo.incpath.begin(), export_binfo.incpath.end(), is_relative); - list bases; + vector bases; /* If we have any relative paths that need resolving, or we have no paths at all and are not using pkg-config, look for files in prefix */ @@ -83,7 +83,7 @@ void BinaryPackage::do_prepare() prefix /= arch.get_cross_prefix(); } - BuildInfo::PathList libpath = export_binfo.libpath; + VirtualFileSystem::SearchPath libpath = export_binfo.libpath; if(!system && libpath.empty()) libpath.push_back("lib"); for(FS::Path &p: libpath) @@ -93,7 +93,7 @@ void BinaryPackage::do_prepare() for(const string &l: export_binfo.libs) all_found &= (builder.get_vfs().find_library(l, libpath, export_binfo.libmode, system)!=0); - BuildInfo::PathList incpath = export_binfo.incpath; + VirtualFileSystem::SearchPath incpath = export_binfo.incpath; if(!system && incpath.empty()) incpath.push_back("include"); for(FS::Path &p: incpath) @@ -135,7 +135,7 @@ void BinaryPackage::do_prepare() if(!static_binfo.libs.empty()) { - BuildInfo::PathList combined_libpath = static_binfo.libpath; + VirtualFileSystem::SearchPath combined_libpath = static_binfo.libpath; combined_libpath.insert(combined_libpath.end(), export_binfo.libpath.begin(), export_binfo.libpath.end()); for(const string &l: export_binfo.libs)