diff --git a/ext/bonjour/x64/dnssd.dll b/ext/bonjour/x64/dnssd.dll
deleted file mode 100644
index 87f9beef..00000000
Binary files a/ext/bonjour/x64/dnssd.dll and /dev/null differ
diff --git a/ext/bonjour/x64/libdnssd.a b/ext/bonjour/x64/libdnssd.a
deleted file mode 100644
index 0e31ab58..00000000
Binary files a/ext/bonjour/x64/libdnssd.a and /dev/null differ
diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py
index 8bedc9a1..3cdfb1da 100644
--- a/ext/toolchain/commands1.py
+++ b/ext/toolchain/commands1.py
@@ -208,7 +208,7 @@ class InternalCommands:
qmake_cmd = 'qmake'
make_cmd = 'make'
xcodebuild_cmd = 'xcodebuild'
- w32_make_cmd = 'mingw32-make'
+ w32_make_cmd = 'nmake'
w32_qt_version = '5.6.1'
defaultTarget = 'release'
diff --git a/src/gui/gui.pro b/src/gui/gui.pro
index 5a5d400b..4fe96f66 100644
--- a/src/gui/gui.pro
+++ b/src/gui/gui.pro
@@ -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
diff --git a/src/setup/win32/Include.wxi b/src/setup/win32/Include.wxi
index f6aa2324..a5ed1852 100644
--- a/src/setup/win32/Include.wxi
+++ b/src/setup/win32/Include.wxi
@@ -7,9 +7,6 @@
-
-
-
@@ -23,13 +20,17 @@
+
+
+
+
-
+
diff --git a/src/setup/win32/Product.wxs b/src/setup/win32/Product.wxs
index 9973d8bc..5769427b 100644
--- a/src/setup/win32/Product.wxs
+++ b/src/setup/win32/Product.wxs
@@ -120,26 +120,13 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+