summaryrefslogtreecommitdiffhomepage
path: root/Builder.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2024-05-04 17:34:13 +0200
committerRoland Reichwein <mail@reichwein.it>2024-05-04 17:34:13 +0200
commit39c1729d8dcfffb0f72985411b8b489835d4fd5f (patch)
tree7530dd78c723d36da540d0a937bf7248f758978a /Builder.h
parent44479895f325cbbc283553dcb10b29a0af3b480b (diff)
Multitarget build
Diffstat (limited to 'Builder.h')
-rw-r--r--Builder.h13
1 files changed, 6 insertions, 7 deletions
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<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;