From 81bcfee54362c736e865ebeb638aeadfa9cc9e24 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 5 May 2024 17:15:49 +0200 Subject: Factored out LanguageSettings --- Builder.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Builder.h') diff --git a/Builder.h b/Builder.h index 52fc17a..3169c3b 100644 --- a/Builder.h +++ b/Builder.h @@ -7,6 +7,7 @@ #include +#include "LanguageSettings.h" #include "ProcessRunner.h" class Builder @@ -18,8 +19,12 @@ public: void clean() const; private: + std::unordered_map> get_dependencies(const boost::property_tree::ptree& ptree) const; std::vector dependencies_of(const std::filesystem::path& p) const; + std::vector link_libs_of(const std::filesystem::path& p) const; bool is_outdated(const std::filesystem::path& p) const; + bool is_outdated(const std::filesystem::path& p, const std::vector &dependencies) const; + std::vector make_depfile_from(const std::filesystem::path& p) const; void build_file(const std::filesystem::path& p); void build_filelist(); @@ -30,7 +35,9 @@ private: std::vector _all_targets; std::vector _all_objects; std::unordered_map> _dependencies; + std::unordered_map> _link_libs; + LanguageSettings _lang; ProcessRunner _runner; std::unordered_set _buildlist; // build done -- cgit v1.2.3