mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
# C++11 support
|
|
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=gnu++11
|
|
|
|
strace_win{
|
|
contains(QMAKE_HOST.arch, x86) {
|
|
# i686 arch requires frame pointer preservation
|
|
QMAKE_CXXFLAGS_RELEASE += -fno-omit-frame-pointer
|
|
QMAKE_CXXFLAGS_DEBUG += -fno-omit-frame-pointer
|
|
}
|
|
|
|
QMAKE_LFLAGS += -Wl,--export-all-symbols
|
|
|
|
LIBS += libdbghelp
|
|
}
|
|
|
|
CONFIG(debug, debug|release) {
|
|
# Make sure binary is not relocatable, otherwise debugging will fail
|
|
QMAKE_LFLAGS -= -Wl,--dynamicbase
|
|
}
|
|
|
|
RC_FILE = qbittorrent_mingw.rc
|
|
|
|
# Adapt the lib names/versions accordingly
|
|
CONFIG(debug, debug|release) {
|
|
LIBS += libtorrent \
|
|
libboost_system-mgw45-mt-d-1_47 \
|
|
libboost_filesystem-mgw45-mt-d-1_47 \
|
|
libboost_thread-mgw45-mt-d-1_47
|
|
} else {
|
|
LIBS += libtorrent \
|
|
libboost_system-mgw45-mt-1_47 \
|
|
libboost_filesystem-mgw45-mt-1_47 \
|
|
libboost_thread-mgw45-mt-1_47
|
|
}
|
|
|
|
LIBS += libadvapi32 libshell32 libuser32
|
|
LIBS += libcrypto.dll libssl.dll libwsock32 libws2_32 libz libiconv.dll
|
|
LIBS += libpowrprof
|