build: Windows link against setupapi (hidapi dependency)

This commit is contained in:
xiphon 2019-05-22 11:19:09 +00:00
parent fbd6d683ed
commit 07bda54c41

View file

@ -258,6 +258,14 @@ win32 {
QMAKE_LFLAGS += -static-libgcc -static-libstdc++ QMAKE_LFLAGS += -static-libgcc -static-libstdc++
LIBS+= \ LIBS+= \
-Wl,-Bdynamic \
-lwinscard \
-lws2_32 \
-lwsock32 \
-lIphlpapi \
-lcrypt32 \
-lhidapi \
-lgdi32 $$TREZOR_LINKER \
-Wl,-Bstatic \ -Wl,-Bstatic \
-lboost_serialization-mt \ -lboost_serialization-mt \
-lboost_thread-mt \ -lboost_thread-mt \
@ -275,17 +283,10 @@ win32 {
-licutu \ -licutu \
-liconv \ -liconv \
-lpthread \ -lpthread \
-lsetupapi \
-lssl \ -lssl \
-lsodium \ -lsodium \
-lcrypto \ -lcrypto
-Wl,-Bdynamic \
-lwinscard \
-lws2_32 \
-lwsock32 \
-lIphlpapi \
-lcrypt32 \
-lhidapi \
-lgdi32 $$TREZOR_LINKER
!contains(QMAKE_TARGET.arch, x86_64) { !contains(QMAKE_TARGET.arch, x86_64) {
message("Target is 32bit") message("Target is 32bit")