|
|
|
# Global
|
|
|
|
TEMPLATE = app
|
|
|
|
CONFIG += qt thread silent
|
|
|
|
|
|
|
|
# C++11 support
|
|
|
|
CONFIG += c++11
|
|
|
|
DEFINES += BOOST_NO_CXX11_RVALUE_REFERENCES
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): DEFINES += QBT_USES_QT5
|
|
|
|
|
|
|
|
# Windows specific configuration
|
|
|
|
win32: include(../winconf.pri)
|
|
|
|
|
|
|
|
# Mac specific configuration
|
|
|
|
macx: include(../macxconf.pri)
|
|
|
|
|
|
|
|
# Unix specific configuration
|
|
|
|
unix:!macx: include(../unixconf.pri)
|
|
|
|
|
|
|
|
# eCS(OS/2) specific configuration
|
|
|
|
os2: include(../os2conf.pri)
|
|
|
|
|
|
|
|
nogui {
|
|
|
|
QT -= gui
|
|
|
|
DEFINES += DISABLE_GUI
|
|
|
|
TARGET = qbittorrent-nox
|
|
|
|
} else {
|
|
|
|
QT += xml
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += concurrent widgets
|
|
|
|
CONFIG(static) {
|
|
|
|
DEFINES += QBT_STATIC_QT
|
|
|
|
QTPLUGIN += qico
|
|
|
|
}
|
|
|
|
TARGET = qbittorrent
|
|
|
|
}
|
|
|
|
nowebui: DEFINES += DISABLE_WEBUI
|
|
|
|
strace_win: DEFINES += STACKTRACE_WIN
|
|
|
|
QT += network xml
|
|
|
|
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release): message(Project is built in DEBUG mode.)
|
|
|
|
CONFIG(release, debug|release): message(Project is built in RELEASE mode.)
|
|
|
|
|
|
|
|
# Disable debug output in release mode
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
message(Disabling debug output.)
|
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
|
|
|
}
|
|
|
|
|
|
|
|
# VERSION DEFINES
|
|
|
|
include(../version.pri)
|
|
|
|
|
|
|
|
DEFINES += QT_NO_CAST_TO_ASCII
|
|
|
|
# Fast concatenation (Qt >= 4.6)
|
|
|
|
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
|
|
|
|
|
|
|
|
win32: DEFINES += NOMINMAX
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD
|
|
|
|
|
|
|
|
include(app/app.pri)
|
|
|
|
include(base/base.pri)
|
|
|
|
!nowebui: include(webui/webui.pri)
|
|
|
|
!nogui: include(gui/gui.pri)
|
|
|
|
|
|
|
|
# Resource files
|
|
|
|
QMAKE_RESOURCE_FLAGS += -compress 9 -threshold 5
|
|
|
|
RESOURCES += \
|
|
|
|
icons.qrc \
|
|
|
|
lang.qrc \
|
|
|
|
searchengine.qrc
|
|
|
|
|
|
|
|
# Translations
|
|
|
|
TRANSLATIONS += $$files(lang/qbittorrent_*.ts)
|
|
|
|
|
|
|
|
DESTDIR = .
|