]> git.tdb.fi Git - builder.git/blobdiff - source/lib/component.h
Rearrange generated source paths
[builder.git] / source / lib / component.h
index 246bd44edd2e07c7fa1fedfb7cc8d7dcce1c1c3d..2901f1b1fc53f3ba2c0e6deddbcca98f8143637b 100644 (file)
@@ -37,6 +37,7 @@ protected:
        SourcePackage &package;
        std::string name;
        std::vector<Msp::FS::Path> sources;
+       Msp::FS::Path source_base_path;
        std::vector<std::string> overlays;
        bool install = false;
        BuildInfo build_info;
@@ -74,6 +75,9 @@ public:
        /** Prepares any required packages. */
        void prepare();
 
+       Msp::FS::Path get_temp_directory() const;
+       std::string flatten_source_path(const Msp::FS::Path &) const;
+
        /** Prepares the build information for building.  Pulls build info from the
        parent and dependency packages, and adds any component-specific flags. */
        virtual void create_build_info();