diff options
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; +}; |