#ifndef PACKAGEMANAGER_H_
#define PACKAGEMANAGER_H_
-#include <list>
#include <map>
+#include <set>
#include <string>
+#include <vector>
#include <msp/fs/path.h>
class Builder;
{
private:
Builder &builder;
- std::list<Msp::FS::Path> pkg_path;
- std::list<Msp::FS::Path> pkg_dirs;
- std::list<Msp::FS::Path> binpkg_path;
- std::list<Msp::FS::Path> binpkg_files;
- bool no_externals;
+ std::vector<Msp::FS::Path> pkg_path;
+ std::vector<Msp::FS::Path> pkg_dirs;
+ std::vector<Msp::FS::Path> binpkg_path;
+ std::vector<Msp::FS::Path> binpkg_files;
+ bool no_externals = false;
std::map<std::string, Package *> packages;
- Package *main_pkg;
+ Package *main_pkg = 0;
std::set<std::string> not_found;
- bool env_set;
+ bool env_set = false;
public:
- PackageManager(Builder &);
+ PackageManager(Builder &b): builder(b) { }
~PackageManager();
/// Adds a location to look for source packages from.