mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Adjust the goldendict.pro file to handle MSVC++
This commit is contained in:
parent
148fd1f275
commit
f03cd6f41d
|
@ -36,6 +36,20 @@ LIBS += \
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
TARGET = GoldenDict
|
TARGET = GoldenDict
|
||||||
|
|
||||||
|
win32-msvc* {
|
||||||
|
VERSION = 1.5.0 # More complicated things cause errors during compilation under MSVC++
|
||||||
|
DEFINES += __WIN32 DISABLE_INTERNAL_PLAYER
|
||||||
|
DISABLE_INTERNAL_PLAYER=1 # Currently ffmeg is not supported with msvc
|
||||||
|
QMAKE_CXXFLAGS += /wd4290 # silence the warning C4290: C++ exception specification ignored
|
||||||
|
LIBS += -lshell32 -luser32 -lsapi -lole32 -lhunspell
|
||||||
|
LIBS += -L$${PWD}/winlibs/lib/msvc
|
||||||
|
} else {
|
||||||
|
LIBS += lhunspell-1.3.2
|
||||||
|
LIBS += -L$${PWD}/winlibs/lib
|
||||||
|
!x64:QMAKE_LFLAGS += -Wl,--large-address-aware
|
||||||
|
}
|
||||||
|
|
||||||
LIBS += -liconv \
|
LIBS += -liconv \
|
||||||
-lwsock32 \
|
-lwsock32 \
|
||||||
-lpsapi \
|
-lpsapi \
|
||||||
|
@ -45,8 +59,8 @@ win32 {
|
||||||
-lcomdlg32
|
-lcomdlg32
|
||||||
LIBS += -lvorbisfile \
|
LIBS += -lvorbisfile \
|
||||||
-lvorbis \
|
-lvorbis \
|
||||||
-logg \
|
-logg
|
||||||
-lhunspell-1.3.2
|
|
||||||
isEmpty(DISABLE_INTERNAL_PLAYER) {
|
isEmpty(DISABLE_INTERNAL_PLAYER) {
|
||||||
LIBS += -lao \
|
LIBS += -lao \
|
||||||
-lavutil-gd \
|
-lavutil-gd \
|
||||||
|
@ -55,14 +69,12 @@ win32 {
|
||||||
}
|
}
|
||||||
RC_FILE = goldendict.rc
|
RC_FILE = goldendict.rc
|
||||||
INCLUDEPATH += winlibs/include
|
INCLUDEPATH += winlibs/include
|
||||||
LIBS += -L$${PWD}/winlibs/lib
|
|
||||||
|
|
||||||
# Enable console in Debug mode on Windows, with useful logging messages
|
# Enable console in Debug mode on Windows, with useful logging messages
|
||||||
Debug:CONFIG += console
|
Debug:CONFIG += console
|
||||||
|
|
||||||
Release:DEFINES += NO_CONSOLE
|
Release:DEFINES += NO_CONSOLE
|
||||||
|
|
||||||
!x64:QMAKE_LFLAGS += -Wl,--large-address-aware
|
|
||||||
gcc48:QMAKE_CXXFLAGS += -Wno-unused-local-typedefs
|
gcc48:QMAKE_CXXFLAGS += -Wno-unused-local-typedefs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue