summaryrefslogtreecommitdiff
path: root/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'task.h')
-rw-r--r--task.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/task.h b/task.h
new file mode 100644
index 0000000..d788645
--- /dev/null
+++ b/task.h
@@ -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;
+};