summaryrefslogtreecommitdiffhomepage
path: root/LanguageSettings.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2024-05-05 17:15:49 +0200
committerRoland Reichwein <mail@reichwein.it>2024-05-05 17:15:49 +0200
commit81bcfee54362c736e865ebeb638aeadfa9cc9e24 (patch)
tree4da9b8f2f233dacf4c0da72e1f26b55181a58be3 /LanguageSettings.h
parent28609f436966f731f91e84d10c1d7d0621b4abe8 (diff)
Factored out LanguageSettings
Diffstat (limited to 'LanguageSettings.h')
-rw-r--r--LanguageSettings.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/LanguageSettings.h b/LanguageSettings.h
new file mode 100644
index 0000000..97519e3
--- /dev/null
+++ b/LanguageSettings.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <filesystem>
+#include <string>
+#include <vector>
+
+class LanguageSettings
+{
+public:
+ LanguageSettings();
+
+ std::string getCompileCommand(const std::filesystem::path& target, const std::filesystem::path &source) const;
+ std::string getLinkCommand(const std::filesystem::path& target,
+ const std::vector<std::filesystem::path> &inputs,
+ const std::vector<std::string>& link_libs) const;
+ std::string getDepCommand(const std::filesystem::path& target, const std::filesystem::path &source) const;
+
+private:
+ std::string CXX;
+ std::string CXXFLAGS;
+
+ std::string LDFLAGS;
+ std::string LDLIBS;
+ std::string LIBS;
+};
+