]> git.tdb.fi Git - builder.git/blobdiff - source/component.h
Add gcc's private library directory to ClangLinker's system path
[builder.git] / source / component.h
index 1db925928a9a88cea2221bf98fbc7736cfd0a412..7ddd97297f267b96e865b82c5ef3f24b1390aa18 100644 (file)
@@ -35,16 +35,16 @@ public:
 protected:
        SourcePackage &package;
        std::string name;
-       std::list<Msp::FS::Path> sources;
-       std::list<std::string> overlays;
-       bool install;
+       std::vector<Msp::FS::Path> sources;
+       std::vector<std::string> overlays;
+       bool install = false;
        BuildInfo build_info;
        Package::Requirements requires;
-       bool deflt;
+       bool deflt = true;
        InstallMap install_map;
-       std::list<std::string> problems;
+       std::vector<std::string> problems;
 
-       Component(SourcePackage &, const std::string &);
+       Component(SourcePackage &p, const std::string &n): package(p), name(n) { }
 public:
        virtual ~Component() { }
 
@@ -53,20 +53,20 @@ public:
 
        /** Returns a list of sources for the component.  They may refer to
        directories or individual files. */
-       const std::list<Msp::FS::Path> &get_sources() const { return sources; }
+       const std::vector<Msp::FS::Path> &get_sources() const { return sources; }
 
-       const std::list<std::string> &get_overlays() const { return overlays; }
+       const std::vector<std::string> &get_overlays() const { return overlays; }
 
 protected:
        /** Returns a list of all source files for the component. */
-       std::list<Msp::FS::Path> collect_source_files() const;
+       std::vector<Msp::FS::Path> collect_source_files() const;
 
 public:
        bool get_install() const { return install; }
        const InstallMap &get_install_map() const { return install_map; }
        const Package::Requirements &get_required_packages() const { return requires; }
        bool is_default() const { return deflt; }
-       const std::list<std::string> &get_problems() const { return problems; }
+       const std::vector<std::string> &get_problems() const { return problems; }
 
        /** Prepares any required packages. */
        void prepare();