aboutsummaryrefslogtreecommitdiff
path: root/backend/BackendUtils.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-04 08:15:07 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit9f9507d75ccdff561a390c441d45c000382c42fc (patch)
tree90f73400643791efbb1c33a497926d27b2df636e /backend/BackendUtils.hpp
parentf1a80658b08c8b489772052b5569cb1d3086db08 (diff)
Use dll files for mingw, use mingw cmake
Diffstat (limited to 'backend/BackendUtils.hpp')
-rw-r--r--backend/BackendUtils.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/backend/BackendUtils.hpp b/backend/BackendUtils.hpp
index f99d7e5..d53620c 100644
--- a/backend/BackendUtils.hpp
+++ b/backend/BackendUtils.hpp
@@ -5,6 +5,14 @@
namespace backend
{
class Ninja;
+
+ enum class RuntimeCompilerType
+ {
+ NONE,
+ OTHER,
+ CLANG,
+ EMSCRIPTEN
+ };
class BackendUtils
{
@@ -13,5 +21,10 @@ namespace backend
static sibs::Language getFileLanguage(const _tinydir_char_t *extension);
static sibs::Language getFileLanguage(tinydir_file *file);
static void collectSourceFiles(const _tinydir_char_t *projectPath, Ninja *ninjaProject, const sibs::SibsConfig &sibsConfig, bool recursive = true);
+ static std::string getCompilerCExecutable(sibs::Compiler compiler);
+ static std::string getCompilerCppExecutable(sibs::Compiler compiler);
+ static std::string getCompilerLinker(sibs::Compiler compiler);
+ static RuntimeCompilerType getCCompilerType(sibs::Compiler compiler);
+ static RuntimeCompilerType getCppCompilerType(sibs::Compiler compiler);
};
}