2006-09-30 20:02:39 +04:00
|
|
|
# Global
|
|
|
|
TEMPLATE = app
|
2015-08-04 19:17:01 +03:00
|
|
|
CONFIG += qt thread silent
|
2006-09-30 20:02:39 +04:00
|
|
|
|
2017-08-28 10:25:57 +03:00
|
|
|
# Platform specific configuration
|
2015-01-18 15:13:06 +03:00
|
|
|
win32: include(../winconf.pri)
|
|
|
|
macx: include(../macxconf.pri)
|
|
|
|
unix:!macx: include(../unixconf.pri)
|
2010-06-09 19:13:52 +04:00
|
|
|
|
2021-03-24 11:53:47 +03:00
|
|
|
QT += network sql xml
|
2017-08-28 10:25:57 +03:00
|
|
|
|
2021-01-06 07:04:11 +03:00
|
|
|
macx|*-clang*: QMAKE_CXXFLAGS_WARN_ON += -Wno-range-loop-analysis
|
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
nogui {
|
2017-08-28 10:25:57 +03:00
|
|
|
TARGET = qbittorrent-nox
|
2015-01-18 15:13:06 +03:00
|
|
|
QT -= gui
|
2016-01-17 10:11:55 +03:00
|
|
|
DEFINES += DISABLE_GUI
|
2010-06-17 15:55:47 +04:00
|
|
|
} else {
|
2017-08-28 10:25:57 +03:00
|
|
|
TARGET = qbittorrent
|
2017-10-04 17:33:49 +03:00
|
|
|
QT += xml svg widgets
|
2017-08-28 10:25:57 +03:00
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
CONFIG(static) {
|
|
|
|
DEFINES += QBT_STATIC_QT
|
|
|
|
QTPLUGIN += qico
|
|
|
|
}
|
2021-10-12 09:15:24 +03:00
|
|
|
win32: lessThan(QT_MAJOR_VERSION, 6) {
|
2016-12-30 03:14:13 +03:00
|
|
|
QT += winextras
|
|
|
|
}
|
2017-08-28 10:25:57 +03:00
|
|
|
macx {
|
|
|
|
LIBS += -lobjc
|
|
|
|
}
|
|
|
|
}
|
2018-04-09 23:30:20 +03:00
|
|
|
|
2017-08-28 10:25:57 +03:00
|
|
|
nowebui {
|
|
|
|
DEFINES += DISABLE_WEBUI
|
2010-01-05 01:29:48 +03:00
|
|
|
}
|
2018-04-09 23:30:20 +03:00
|
|
|
|
|
|
|
stacktrace {
|
|
|
|
DEFINES += STACKTRACE
|
2022-05-12 06:06:05 +03:00
|
|
|
|
|
|
|
macx {
|
|
|
|
DEFINES += BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED
|
|
|
|
QMAKE_LFLAGS += -rdynamic
|
|
|
|
}
|
|
|
|
unix {
|
|
|
|
LIBS += -ldl
|
|
|
|
QMAKE_LFLAGS += -rdynamic
|
2018-04-09 23:30:20 +03:00
|
|
|
}
|
2016-03-03 00:04:55 +03:00
|
|
|
}
|
2010-08-22 22:52:54 +04:00
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
CONFIG(debug, debug|release): message(Project is built in DEBUG mode.)
|
|
|
|
CONFIG(release, debug|release): message(Project is built in RELEASE mode.)
|
2010-02-11 01:28:01 +03:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# Disable debug output in release mode
|
2011-01-02 01:26:17 +03:00
|
|
|
CONFIG(release, debug|release) {
|
2015-01-18 15:13:06 +03:00
|
|
|
message(Disabling debug output.)
|
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
2010-08-16 21:35:32 +04:00
|
|
|
}
|
2010-02-28 18:15:00 +03:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# VERSION DEFINES
|
|
|
|
include(../version.pri)
|
2007-08-29 14:20:39 +04:00
|
|
|
|
2019-02-27 10:14:38 +03:00
|
|
|
# Qt defines
|
2022-05-18 08:37:13 +03:00
|
|
|
DEFINES += \
|
|
|
|
QT_DISABLE_DEPRECATED_BEFORE=0x050f02 \
|
|
|
|
QT_NO_CAST_FROM_ASCII \
|
|
|
|
QT_NO_CAST_TO_ASCII \
|
|
|
|
QT_NO_CAST_FROM_BYTEARRAY \
|
|
|
|
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT \
|
|
|
|
QT_USE_QSTRINGBUILDER \
|
|
|
|
QT_STRICT_ITERATORS
|
2010-11-20 20:21:40 +03:00
|
|
|
|
2015-04-19 18:17:47 +03:00
|
|
|
INCLUDEPATH += $$PWD
|
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
include(app/app.pri)
|
2015-09-25 11:10:05 +03:00
|
|
|
include(base/base.pri)
|
2015-08-26 20:18:33 +03:00
|
|
|
!nogui: include(gui/gui.pri)
|
2017-12-27 07:26:10 +03:00
|
|
|
!nowebui: include(webui/webui.pri)
|
2009-12-07 23:54:47 +03:00
|
|
|
|
2018-12-20 10:28:49 +03:00
|
|
|
isEmpty(QMAKE_LRELEASE) {
|
2020-06-22 16:48:14 +03:00
|
|
|
win32: QMAKE_LRELEASE = $$[QT_HOST_BINS]/lrelease.exe
|
|
|
|
else: QMAKE_LRELEASE = $$[QT_HOST_BINS]/lrelease
|
2018-12-20 10:28:49 +03:00
|
|
|
unix {
|
|
|
|
equals(QT_MAJOR_VERSION, 5) {
|
|
|
|
!exists($$QMAKE_LRELEASE): QMAKE_LRELEASE = lrelease-qt5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
!exists($$QMAKE_LRELEASE): QMAKE_LRELEASE = lrelease
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lrelease.input = TS_SOURCES
|
|
|
|
lrelease.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
|
|
|
lrelease.commands = @echo "lrelease ${QMAKE_FILE_NAME}" && $$QMAKE_LRELEASE -silent ${QMAKE_FILE_NAME} -qm ${QMAKE_FILE_OUT}
|
|
|
|
lrelease.CONFIG += no_link target_predeps
|
|
|
|
QMAKE_EXTRA_COMPILERS += lrelease
|
|
|
|
|
|
|
|
TRANSLATIONS = $$files($$PWD/lang/qbittorrent_*.ts)
|
|
|
|
TS_SOURCES += $$TRANSLATIONS
|
|
|
|
|
2010-05-30 21:51:40 +04:00
|
|
|
# Resource files
|
2015-05-08 10:33:40 +03:00
|
|
|
QMAKE_RESOURCE_FLAGS += -compress 9 -threshold 5
|
2015-01-18 15:13:06 +03:00
|
|
|
RESOURCES += \
|
2018-06-11 12:11:07 +03:00
|
|
|
icons/icons.qrc \
|
|
|
|
lang/lang.qrc \
|
|
|
|
searchengine/searchengine.qrc
|
2011-09-24 16:39:27 +04:00
|
|
|
|
2010-06-08 19:17:15 +04:00
|
|
|
DESTDIR = .
|