diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-01-03 20:27:29 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-01-03 20:58:01 +0100 |
commit | add60913a0ff5cd13be18ed594eab6102e78640c (patch) | |
tree | b438201bfdf6810ce85ebf4de5bc3fe4babb561b /backend/ninja | |
parent | 46257ab7cf017f0f35a2025257ad5f45a9e985f0 (diff) |
Add _CONSOLE and _LIB define for windows
Diffstat (limited to 'backend/ninja')
-rw-r--r-- | backend/ninja/Ninja.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 3a46af5..a5fdb0d 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -450,6 +450,18 @@ namespace backend defines += " /DWIN32 /D_WIN32"; break; } + +#if OS_TYPE == OS_TYPE_WINDOWS + switch(libraryType) + { + case LibraryType::EXECUTABLE: + defines += " _CONSOLE"; + break; + case LibraryType::STATIC: + defines += " _LIB"; + break; + } +#endif if(!defines.empty()) printf("Custom define: %s\n", defines.c_str()); |