From 81bcfee54362c736e865ebeb638aeadfa9cc9e24 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 5 May 2024 17:15:49 +0200 Subject: Factored out LanguageSettings --- LanguageSettings.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 LanguageSettings.h (limited to 'LanguageSettings.h') 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 +#include +#include + +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 &inputs, + const std::vector& 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; +}; + -- cgit v1.2.3