]> git.tdb.fi Git - builder.git/blobdiff - source/component.h
Flexible way to specify install locations for components
[builder.git] / source / component.h
index 0f9d581bcfb1695805036437edb73ed5bf2eea39..0d67fdeb874deaa60c1438f01764bbb1c697bf9c 100644 (file)
@@ -5,6 +5,7 @@
 #include <msp/datafile/loader.h>
 #include <msp/fs/path.h>
 #include "buildinfo.h"
+#include "installmap.h"
 #include "misc.h"
 #include "package.h"
 
@@ -33,6 +34,7 @@ public:
                void source(const std::string &);
                void require(const std::string &);
                void build_info();
+               void install_map();
        };
 
        enum Type
@@ -55,6 +57,7 @@ protected:
        BuildInfo build_info;
        PackageList requires;
        bool deflt;
+       InstallMap install_map;
 
 public:
        Component(SourcePackage &, Type, const std::string &);
@@ -66,6 +69,7 @@ public:
        bool get_install() const { return install; }
        const PackageList &get_requires() const { return requires; }
        bool is_default() const { return deflt; }
+       const InstallMap &get_install_map() const { return install_map; }
 
        void configure(const StringMap &, unsigned);