diff options
author | Roland Reichwein <mail@reichwein.it> | 2024-05-04 17:34:13 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2024-05-04 17:34:13 +0200 |
commit | 39c1729d8dcfffb0f72985411b8b489835d4fd5f (patch) | |
tree | 7530dd78c723d36da540d0a937bf7248f758978a /Builder.h | |
parent | 44479895f325cbbc283553dcb10b29a0af3b480b (diff) |
Multitarget build
Diffstat (limited to 'Builder.h')
-rw-r--r-- | Builder.h | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -15,20 +15,19 @@ public: Builder(const boost::property_tree::ptree& ptree); void build(); - void clean(); + void clean() const; private: - std::vector<std::filesystem::path> dependencies_of(const std::filesystem::path& p); - bool is_outdated(const std::filesystem::path& p); + std::vector<std::filesystem::path> dependencies_of(const std::filesystem::path& p) const; + bool is_outdated(const std::filesystem::path& p) const; void build_file(const std::filesystem::path& p); - void build_list(); + void build_filelist(); void cleanup(); - std::filesystem::path _target; - std::vector<std::filesystem::path> _objects; - std::vector<std::filesystem::path> _sources; + std::vector<std::filesystem::path> _all_targets; + std::vector<std::filesystem::path> _all_objects; std::unordered_map<std::filesystem::path, std::vector<std::filesystem::path>> _dependencies; ProcessRunner _runner; |