From 6c58913899b84cfe026bf652f230fc92334e0ebe Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Thu, 23 Jun 2016 11:42:38 +0100 Subject: [PATCH] #5389 Support for building GUI with VS2015 --- src/gui/gui.pro | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/gui/gui.pro b/src/gui/gui.pro index 408d44dd..93e9bbf2 100644 --- a/src/gui/gui.pro +++ b/src/gui/gui.pro @@ -134,11 +134,18 @@ release { MOC_DIR = tmp/release RCC_DIR = tmp/release } -win32 { +win32-g++ { Debug:DESTDIR = ../../bin/Debug Release:DESTDIR = ../../bin/Release - LIBS += -L"../../ext/bonjour/x64" \ - -ldnssd - INCLUDEPATH += "$(BONJOUR_SDK_HOME)/Include" + LIBS += -L"../../ext/bonjour/x64" -ldnssd + INCLUDEPATH += "$$(BONJOUR_SDK_HOME)/Include/" +} +win32-msvc2015 { + Debug:DESTDIR = ../../bin/Debug + Release:DESTDIR = ../../bin/Release + LIBS += -L"$$(BONJOUR_SDK_HOME)/Lib/x64" -ldnssd + LIBS += -lAdvapi32 + QMAKE_LFLAGS += /NODEFAULTLIB:LIBCMT + INCLUDEPATH += "$$(BONJOUR_SDK_HOME)/Include/" } else:DESTDIR = ../../bin