aboutsummaryrefslogtreecommitdiff
path: root/backend/ninja/Ninja.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ninja/Ninja.cpp')
-rw-r--r--backend/ninja/Ninja.cpp12
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());