[PATCH 1/2] Add the WIN32_CONSOLE_APP flag

Lubomir I. Ivanov neolit123 at gmail.com
Tue Mar 25 07:55:55 PDT 2014


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

If the user passes 'CONFIG += console' to qmake, we define
WIN32_CONSOLE_APP that will be used in the source code
to determine if this is a console or a GUI application on Win32.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
i wasn't able to find a predefined macro for that.
---
 subsurface-configure.pri | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index dff3b6f..c01af7a 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -150,6 +150,10 @@ else: LIBS += -lmarblewidget
 libgit21-api {
 	DEFINES += USE_LIBGIT21_API
 }
+
+win32: console {
+	DEFINES += WIN32_CONSOLE_APP
+}
 #
 # Platform-specific changes
 #
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list