summaryrefslogtreecommitdiff
path: root/src/task_ld.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/task_ld.h')
-rw-r--r--src/task_ld.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/task_ld.h b/src/task_ld.h
new file mode 100644
index 0000000..f56f00d
--- /dev/null
+++ b/src/task_ld.h
@@ -0,0 +1,42 @@
+// -*- c++ -*-
+#pragma once
+
+#include "task.h"
+
+#include <vector>
+#include <string>
+#include <future>
+#include <filesystem>
+
+struct BuildConfiguration;
+struct Settings;
+
+class TaskLD
+ : public Task
+{
+public:
+ TaskLD(const BuildConfiguration& config,
+ const Settings& settings,
+ const std::string& target,
+ const std::vector<std::string>& objects);
+
+ bool dirtyInner() override;
+
+ int runInner() override;
+ int clean() override;
+
+ std::vector<std::string> depends() const override;
+
+ std::string target() const override;
+
+private:
+ std::string flagsString() const;
+
+ std::vector<std::filesystem::path> objectFiles;
+ std::vector<std::filesystem::path> depFiles;
+ std::filesystem::path targetFile;
+ std::filesystem::path flagsFile;
+
+ const BuildConfiguration& config;
+ const Settings& settings;
+};