From 242b03bc8da841a9527ad845eb60275008155afb Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 9 May 2024 15:37:06 +0200 Subject: Run tests --- Builder.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Builder.h') diff --git a/Builder.h b/Builder.h index 3169c3b..b167e65 100644 --- a/Builder.h +++ b/Builder.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include #include @@ -13,14 +14,17 @@ class Builder { public: - Builder(const boost::property_tree::ptree& ptree); + Builder(const boost::property_tree::ptree& ptree, const std::string& target); void build(); + void run_tests(); + 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 include_paths_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; @@ -29,12 +33,14 @@ private: void build_file(const std::filesystem::path& p); void build_filelist(); - void cleanup(); + void cleanup_buildlist(); const boost::property_tree::ptree _ptree; + std::string _target; std::vector _all_targets; std::vector _all_objects; std::unordered_map> _dependencies; + std::unordered_map> _include_paths; std::unordered_map> _link_libs; LanguageSettings _lang; -- cgit v1.2.3