From 8a4dfbbbe76a2aef35427b7915d6e28bab165c43 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 May 2024 16:07:53 +0200 Subject: Build static and dynamic libs --- Builder.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Builder.h') diff --git a/Builder.h b/Builder.h index 42c5af4..bd11599 100644 --- a/Builder.h +++ b/Builder.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include #include @@ -19,10 +20,10 @@ public: void build(); void run_tests(); - void clean() const; + void clean(); private: - std::unordered_map> get_dependencies(const boost::property_tree::ptree& ptree) const; + std::unordered_map> get_dependencies(const boost::property_tree::ptree& ptree, bool include_sources = true) const; std::vector dependencies_of(const std::filesystem::path& p) const; std::vector include_paths_of_object(const std::filesystem::path& p) const; std::filesystem::path target_from_object(const std::filesystem::path& object) const; @@ -31,6 +32,7 @@ private: bool is_outdated(const std::filesystem::path& p, const std::vector &dependencies) const; std::vector make_depfile_from(const std::filesystem::path& p) const; std::filesystem::path get_compile_unit_source_from_object(const std::filesystem::path& path); + std::unordered_set get_buildlist(std::function outdated_pred); void build_file(const std::filesystem::path& p); void build_filelist(); -- cgit v1.2.3