diff options
author | Roland Reichwein <mail@reichwein.it> | 2024-05-05 17:15:49 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2024-05-05 17:15:49 +0200 |
commit | 81bcfee54362c736e865ebeb638aeadfa9cc9e24 (patch) | |
tree | 4da9b8f2f233dacf4c0da72e1f26b55181a58be3 /LanguageSettings.h | |
parent | 28609f436966f731f91e84d10c1d7d0621b4abe8 (diff) |
Factored out LanguageSettings
Diffstat (limited to 'LanguageSettings.h')
-rw-r--r-- | LanguageSettings.h | 26 |
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; +}; + |