]> git.tdb.fi Git - builder.git/blobdiff - source/lib/sourcepackage.h
Install headers of non-installed components in a staging directory
[builder.git] / source / lib / sourcepackage.h
index 6644262c2f710c15844e69b014c15cd018ca1359..c311c210e86431f06fffd6a2932ffa49604deaea 100644 (file)
@@ -43,6 +43,7 @@ public:
        private:
                void finish() override;
 
+               void exported();
                void feature(const std::string &, const std::string &);
                template<typename C, typename... Args>
                void component(Args..., const std::string &);
@@ -57,6 +58,15 @@ public:
        using ComponentRegistry = Msp::TypeRegistry<Loader::AddComponent, Loader &>;
 
 private:
+       class ExportLoader: public Msp::DataFile::ObjectLoader<SourcePackage>
+       {
+       public:
+               ExportLoader(SourcePackage &);
+
+       private:
+               void build_info();
+       };
+
        std::string version;
        std::string interface_version;
        std::string description;
@@ -84,6 +94,7 @@ public:
        const Msp::FS::Path &get_source_directory() const { return source_dir; }
        Msp::FS::Path get_temp_directory() const;
        Msp::FS::Path get_output_directory() const;
+       Msp::FS::Path get_staging_directory() const;
 
        const Toolchain &get_toolchain() const { return local_tools; }
        const Component &get_component(const std::string &) const;