diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-11 21:22:21 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-11 21:22:21 +0200 |
commit | 6e3070181fadbe47511b52c12af5e1409a9a70b0 (patch) | |
tree | 12b7c080c28ecae3fcc344dccbeaa0c5f20dccbb /task.h | |
parent | 799921f0b1f5dcaf8dd2aa2f40adaf8c8490affc (diff) |
Refactor at 4'o clock
Diffstat (limited to 'task.h')
-rw-r--r-- | task.h | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +// -*- c++ -*- +#pragma once + +#include <vector> +#include <string> +#include <future> +#include <filesystem> + +struct BuildConfiguration; +struct Settings; + +class Task +{ +public: + Task(const BuildConfiguration& config, + const Settings& settings, + const std::string& source); + + void start(); + + int wait(); + + int clean(); + + std::vector<std::string> depends(); + + std::filesystem::path sourceFile; + std::filesystem::path targetFile; + std::filesystem::path depsFile; + + std::future<int> future; +}; |