2015-08-26 20:44:42 +03:00
|
|
|
# C++11 support
|
|
|
|
lessThan(QT_MAJOR_VERSION, 5): QMAKE_CXXFLAGS += -std=gnu++11
|
|
|
|
|
2015-07-27 10:33:35 +03:00
|
|
|
strace_win{
|
|
|
|
contains(QMAKE_HOST.arch, x86) {
|
2013-03-03 02:52:51 +04:00
|
|
|
# i686 arch requires frame pointer preservation
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -fno-omit-frame-pointer
|
|
|
|
QMAKE_CXXFLAGS_DEBUG += -fno-omit-frame-pointer
|
|
|
|
}
|
2014-11-27 22:08:16 +03:00
|
|
|
|
|
|
|
QMAKE_LFLAGS += -Wl,--export-all-symbols
|
|
|
|
|
2013-03-03 02:52:51 +04:00
|
|
|
LIBS += libdbghelp
|
|
|
|
}
|
|
|
|
|
2014-11-28 16:40:08 +03:00
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
# Make sure binary is not relocatable, otherwise debugging will fail
|
|
|
|
QMAKE_LFLAGS -= -Wl,--dynamicbase
|
|
|
|
}
|
|
|
|
|
2011-03-23 20:02:26 +03:00
|
|
|
RC_FILE = qbittorrent_mingw.rc
|
|
|
|
|
2015-07-27 10:33:35 +03:00
|
|
|
# Adapt the lib names/versions accordingly
|
2011-03-23 20:02:26 +03:00
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
LIBS += libtorrent \
|
2011-08-29 00:24:13 +04:00
|
|
|
libboost_system-mgw45-mt-d-1_47 \
|
|
|
|
libboost_filesystem-mgw45-mt-d-1_47 \
|
|
|
|
libboost_thread-mgw45-mt-d-1_47
|
2011-03-23 20:02:26 +03:00
|
|
|
} else {
|
|
|
|
LIBS += libtorrent \
|
2011-08-29 00:24:13 +04:00
|
|
|
libboost_system-mgw45-mt-1_47 \
|
|
|
|
libboost_filesystem-mgw45-mt-1_47 \
|
|
|
|
libboost_thread-mgw45-mt-1_47
|
2011-03-23 20:02:26 +03:00
|
|
|
}
|
|
|
|
|
2013-09-27 14:07:47 +04:00
|
|
|
LIBS += libadvapi32 libshell32 libuser32
|
2011-03-23 20:02:26 +03:00
|
|
|
LIBS += libcrypto.dll libssl.dll libwsock32 libws2_32 libz libiconv.dll
|
|
|
|
LIBS += libpowrprof
|