return;
builder.get_logger().log("files", format("Traversing %s", platforms_dir.str()));
- list<string> platforms = list_filtered(platforms_dir, "^android-[1-9][0-9]*$");
+ vector<string> platforms = list_filtered(platforms_dir, "^android-[1-9][0-9]*$");
- for(list<string>::const_iterator i=platforms.begin(); i!=platforms.end(); ++i)
+ for(vector<string>::const_iterator i=platforms.begin(); i!=platforms.end(); ++i)
supported_api_levels.insert(lexical_cast<unsigned>(i->substr(8)));
}
}
builder.get_logger().log("files", format("Traversing %s", bt_dir.str()));
- list<string> tool_versions = list_files(bt_dir);
+ vector<string> tool_versions = list_files(bt_dir);
string use_tools;
unsigned latest_version = 0;
- for(list<string>::const_iterator i=tool_versions.begin(); i!=tool_versions.end(); ++i)
+ for(vector<string>::const_iterator i=tool_versions.begin(); i!=tool_versions.end(); ++i)
{
unsigned version = parse_version(*i);
if(version>latest_version)
builder.get_logger().log("files", format("Traversing %s", toolchains_dir.str()));
string prefix = architecture.get_cross_prefix()+"-";
- list<string> toolchains = list_filtered(toolchains_dir, "^"+prefix);
+ vector<string> toolchains = list_filtered(toolchains_dir, "^"+prefix);
string use_toolchain;
unsigned latest_version = 0;
- for(list<string>::const_iterator i=toolchains.begin(); i!=toolchains.end(); ++i)
+ for(vector<string>::const_iterator i=toolchains.begin(); i!=toolchains.end(); ++i)
{
string version_str = i->substr(prefix.size());
string compiler = "gcc";
{
FS::Path platform_archs_dir = root/"platforms"/format("android-%d", api);
builder.get_logger().log("files", format("Traversing %s", platform_archs_dir.str()));
- list<string> platform_archs = list_filtered(platform_archs_dir, "^arch-");
- for(list<string>::iterator i=platform_archs.begin(); i!=platform_archs.end(); ++i)
+ vector<string> platform_archs = list_filtered(platform_archs_dir, "^arch-");
+ for(vector<string>::iterator i=platform_archs.begin(); i!=platform_archs.end(); ++i)
i->erase(0, 5);
string use_arch = architecture.best_match(platform_archs);
return !negate;
}
-string Architecture::best_match(const list<string> &names) const
+string Architecture::best_match(const vector<string> &names) const
{
string best;
unsigned best_size = 0;
- for(list<string>::const_iterator i=names.begin(); i!=names.end(); ++i)
+ for(vector<string>::const_iterator i=names.begin(); i!=names.end(); ++i)
if(match_name(*i))
{
/* TODO Do full parse and alias resolution here? Otherwise x86 and
const std::string &get_fpu() const { return fpu; }
const std::string &get_toolchain() const { return toolchain; }
bool match_name(const std::string &) const;
- std::string best_match(const std::list<std::string> &) const;
+ std::string best_match(const std::vector<std::string> &) const;
bool is_native() const { return native; }
bool is_cross() const { return !cross_prefix.empty(); }
for(SourceList::const_iterator j=dirs.begin(); j!=dirs.end(); ++j)
{
package.get_builder().get_logger().log("files", format("Traversing %s", *j));
- list<string> sfiles = list_files(*j);
- for(list<string>::iterator k=sfiles.begin(); k!=sfiles.end(); ++k)
+ vector<string> sfiles = list_files(*j);
+ for(vector<string>::iterator k=sfiles.begin(); k!=sfiles.end(); ++k)
{
if(j!=dirs.begin())
{
IO::File in(path.str());
DataFile::Parser parser(in, path.str());
- list<string> dir_files;
+ vector<string> dir_files;
while(!in.eof())
{
DataFile::Statement st = parser.parse();
for(DataFile::Statement::Arguments::const_iterator i=st.args.begin(); i!=st.args.end(); ++i)
{
Regex re(i->get<string>());
- for(list<string>::const_iterator j=dir_files.begin(); j!=dir_files.end(); ++j)
+ for(vector<string>::const_iterator j=dir_files.begin(); j!=dir_files.end(); ++j)
if(re.match(*j))
files.push_back(*j);
}
for(SearchPath::const_iterator i=pkg_path.begin(); i!=pkg_path.end(); ++i)
{
builder.get_logger().log("files", format("Traversing %s", *i));
- list<string> files = list_files(*i);
+ vector<string> files = list_files(*i);
unsigned count = 0;
- for(list<string>::const_iterator j=files.begin(); j!=files.end(); ++j)
+ for(vector<string>::const_iterator j=files.begin(); j!=files.end(); ++j)
{
FS::Path full = *i / *j;
if(FS::exists(full/"Build"))
for(list<FS::Path>::const_iterator i=binpkg_path.begin(); i!=binpkg_path.end(); ++i)
{
builder.get_logger().log("files", format("Traversing %s", *i));
- list<string> files = list_filtered(*i, "\\.bpk$");
- for(list<string>::const_iterator j=files.begin(); j!=files.end(); ++j)
+ vector<string> files = list_filtered(*i, "\\.bpk$");
+ for(vector<string>::const_iterator j=files.begin(); j!=files.end(); ++j)
binpkg_files.push_back(*i / *j);
builder.get_logger().log("packagemgr", format("%d binary packages found in %s", files.size(), *i));
}