3 CONFIG
+= qt thread silent
5 # Platform specific configuration
6 win32
: include(../winconf
.pri
)
7 macx
: include(../macxconf
.pri
)
8 unix
:!macx
: include(../unixconf
.pri
)
12 macx
|*-clang
*: QMAKE_CXXFLAGS_WARN_ON
+= -Wno
-range
-loop
-analysis
15 TARGET
= qbittorrent
-nox
17 DEFINES
+= DISABLE_GUI
23 DEFINES
+= QBT_STATIC_QT
26 win32
: lessThan(QT_MAJOR_VERSION
, 6) {
35 DEFINES
+= DISABLE_WEBUI
42 DEFINES
+= BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED
43 QMAKE_LFLAGS
+= -rdynamic
47 QMAKE_LFLAGS
+= -rdynamic
51 CONFIG(debug
, debug
|release
): message(Project
is built in DEBUG mode
.)
52 CONFIG(release
, debug
|release
): message(Project
is built in RELEASE mode
.)
54 # Disable debug output in release mode
55 CONFIG(release
, debug
|release
) {
56 message(Disabling debug output
.)
57 DEFINES
+= QT_NO_DEBUG_OUTPUT
61 include(../version
.pri
)
65 QT_DISABLE_DEPRECATED_BEFORE
=0x050f02 \
66 QT_NO_CAST_FROM_ASCII \
68 QT_NO_CAST_FROM_BYTEARRAY \
69 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT \
70 QT_USE_QSTRINGBUILDER \
76 include(base
/base
.pri
)
77 !nogui
: include(gui
/gui
.pri
)
78 !nowebui
: include(webui
/webui
.pri
)
80 isEmpty(QMAKE_LRELEASE
) {
81 win32
: QMAKE_LRELEASE
= $$
[QT_HOST_BINS
]/lrelease
.exe
82 else
: QMAKE_LRELEASE
= $$
[QT_HOST_BINS
]/lrelease
84 equals(QT_MAJOR_VERSION
, 5) {
85 !exists($$QMAKE_LRELEASE
): QMAKE_LRELEASE
= lrelease
-qt5
89 !exists($$QMAKE_LRELEASE
): QMAKE_LRELEASE
= lrelease
92 lrelease
.input
= TS_SOURCES
93 lrelease
.output
= $
{QMAKE_FILE_PATH
}/$
{QMAKE_FILE_BASE
}.qm
94 lrelease
.commands
= @echo
"lrelease ${QMAKE_FILE_NAME}" && $$QMAKE_LRELEASE
-silent $
{QMAKE_FILE_NAME
} -qm $
{QMAKE_FILE_OUT
}
95 lrelease
.CONFIG
+= no_link target_predeps
96 QMAKE_EXTRA_COMPILERS
+= lrelease
98 TRANSLATIONS
= $$
files($$PWD
/lang
/qbittorrent_
*.ts
)
99 TS_SOURCES
+= $$TRANSLATIONS
102 QMAKE_RESOURCE_FLAGS
+= -compress
9 -threshold
5
106 searchengine
/searchengine
.qrc