#4978 Link Bonjour statically

This commit is contained in:
Andrew Nelless
2016-06-27 08:59:33 +01:00
parent 342b3d1e8d
commit bb3be59c91
6 changed files with 25 additions and 31 deletions

View File

@@ -134,18 +134,24 @@ release {
MOC_DIR = tmp/release
RCC_DIR = tmp/release
}
win32-g++ {
LIBS += -L"../../ext/bonjour/x64" -ldnssd
INCLUDEPATH += "$$(BONJOUR_SDK_HOME)/Include/"
}
win32-msvc2015 {
LIBS += -L"$$(BONJOUR_SDK_HOME)/Lib/x64" -ldnssd
LIBS += -lAdvapi32
QMAKE_LFLAGS += /NODEFAULTLIB:LIBCMT
INCLUDEPATH += "$$(BONJOUR_SDK_HOME)/Include/"
}
win32-msvc* {
contains(QMAKE_HOST.arch, x86):{
QMAKE_LFLAGS *= /MACHINE:X86
LIBS += -L"$$(BONJOUR_SDK_HOME)/Lib/Win32" -ldnssd
}
contains(QMAKE_HOST.arch, x86_64):{
QMAKE_LFLAGS *= /MACHINE:X64
LIBS += -L"$$(BONJOUR_SDK_HOME)/Lib/x64" -ldnssd
}
}
win32 {
Debug:DESTDIR = ../../bin/Debug
Release:DESTDIR = ../../bin/Release
INCLUDEPATH += "$$(BONJOUR_SDK_HOME)/Include"
}
else:DESTDIR = ../../bin