mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Handle MSVC++ x64
This commit is contained in:
parent
bb8f14ed9d
commit
b254127b3a
|
@ -40,11 +40,17 @@ win32 {
|
|||
win32-msvc* {
|
||||
VERSION = 1.5.0 # More complicated things cause errors during compilation under MSVC++
|
||||
DEFINES += __WIN32 _CRT_SECURE_NO_WARNINGS
|
||||
contains(QMAKE_TARGET.arch, x86_64) {
|
||||
DEFINES += NOMINMAX __WIN64
|
||||
LIBS += -L$${PWD}/winlibs/lib/msvc/x64
|
||||
} else {
|
||||
LIBS += -L$${PWD}/winlibs/lib/msvc
|
||||
}
|
||||
QMAKE_CXXFLAGS += /wd4290 # silence the warning C4290: C++ exception specification ignored
|
||||
QMAKE_LFLAGS_RELEASE += /LTCG /OPT:REF /OPT:ICF
|
||||
QMAKE_CXXFLAGS_RELEASE += /GL
|
||||
# QMAKE_CXXFLAGS_RELEASE += /GL # slows down the linking significantly
|
||||
LIBS += -lshell32 -luser32 -lsapi -lole32 -lhunspell
|
||||
LIBS += -L$${PWD}/winlibs/lib/msvc
|
||||
HUNSPELL_LIB = hunspell
|
||||
} else {
|
||||
LIBS += -lhunspell-1.3.2
|
||||
LIBS += -L$${PWD}/winlibs/lib
|
||||
|
|
Loading…
Reference in a new issue