]> git.tdb.fi Git - builder.git/blobdiff - source/sourcepackage.h
Re-stat FileTargets after a successful build
[builder.git] / source / sourcepackage.h
index 20461fb6187f6f975ef31881f538d1de74b53527..b8d19090eed92aa5d653589d14296d50829442b8 100644 (file)
@@ -13,6 +13,7 @@
 
 class Builder;
 class BuildType;
+class FileTarget;
 
 class bad_expansion: public std::runtime_error
 {
@@ -57,7 +58,8 @@ private:
        std::string version;
        std::string description;
 
-       Msp::FS::Path source;
+       FileTarget *build_file;
+       Msp::FS::Path source_dir;
        const BuildType *build_type;
        FeatureList features;
        BuildInfo build_info;
@@ -70,7 +72,8 @@ public:
 
        const std::string &get_version() const { return version; }
        const std::string &get_description() const { return description; }
-       const Msp::FS::Path &get_source() const { return source; }
+       FileTarget &get_build_file() const { return *build_file; }
+       const Msp::FS::Path &get_source_directory() const { return source_dir; }
        Msp::FS::Path get_temp_dir() const;
        Msp::FS::Path get_out_dir() const;
        const ComponentList &get_components() const { return components; }
@@ -79,7 +82,7 @@ public:
        const BuildInfo &get_build_info() const { return build_info; }
        Builder &get_builder() const { return builder; }
 
-       DependencyCache &get_deps_cache() const { return deps_cache; }
+       DependencyCache &get_dependency_cache() const { return deps_cache; }
 private:
        virtual void create_build_info();