From 39c1729d8dcfffb0f72985411b8b489835d4fd5f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 May 2024 17:34:13 +0200 Subject: Multitarget build --- Builder.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Builder.h') diff --git a/Builder.h b/Builder.h index 12338f0..2a7a6f4 100644 --- a/Builder.h +++ b/Builder.h @@ -15,20 +15,19 @@ public: Builder(const boost::property_tree::ptree& ptree); void build(); - void clean(); + void clean() const; private: - std::vector dependencies_of(const std::filesystem::path& p); - bool is_outdated(const std::filesystem::path& p); + std::vector 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 _objects; - std::vector _sources; + std::vector _all_targets; + std::vector _all_objects; std::unordered_map> _dependencies; ProcessRunner _runner; -- cgit v1.2.3