mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-26 14:34:30 +00:00
7712d0ada0
Enable backtrace stuff only if GNU C library used, because current backtrace implementation based on <execinfo.h> , which is not a part of standard C library, it is a GNU extension. This will be usefull when building with custom POSIX-compilant C library (like musl) and no <execinfo.h> available. Note: configure script will detect presence of <execinfo.h> and enable/disable feature depending on it. Feature is enabled by default.
84 lines
1.6 KiB
Prolog
84 lines
1.6 KiB
Prolog
# Global
|
|
TEMPLATE = app
|
|
CONFIG += qt thread silent
|
|
|
|
# C++11 support
|
|
CONFIG += c++11
|
|
DEFINES += BOOST_NO_CXX11_RVALUE_REFERENCES
|
|
|
|
# Platform specific configuration
|
|
win32: include(../winconf.pri)
|
|
macx: include(../macxconf.pri)
|
|
unix:!macx: include(../unixconf.pri)
|
|
|
|
QT += network xml
|
|
|
|
nogui {
|
|
TARGET = qbittorrent-nox
|
|
QT -= gui
|
|
DEFINES += DISABLE_GUI
|
|
} else {
|
|
TARGET = qbittorrent
|
|
QT += xml svg widgets
|
|
|
|
CONFIG(static) {
|
|
DEFINES += QBT_STATIC_QT
|
|
QTPLUGIN += qico
|
|
}
|
|
win32 {
|
|
QT += winextras
|
|
}
|
|
macx {
|
|
QT += macextras
|
|
LIBS += -lobjc
|
|
}
|
|
}
|
|
|
|
nowebui {
|
|
DEFINES += DISABLE_WEBUI
|
|
}
|
|
|
|
stacktrace {
|
|
DEFINES += STACKTRACE
|
|
win32 {
|
|
DEFINES += STACKTRACE_WIN_PROJECT_PATH=$$PWD
|
|
DEFINES += STACKTRACE_WIN_MAKEFILE_PATH=$$OUT_PWD
|
|
}
|
|
}
|
|
|
|
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
|
|
# Efficient construction for QString & QByteArray (Qt >= 4.8)
|
|
DEFINES += QT_USE_QSTRINGBUILDER
|
|
DEFINES += QT_STRICT_ITERATORS
|
|
|
|
INCLUDEPATH += $$PWD
|
|
|
|
include(app/app.pri)
|
|
include(base/base.pri)
|
|
!nogui: include(gui/gui.pri)
|
|
!nowebui: include(webui/webui.pri)
|
|
|
|
# Resource files
|
|
QMAKE_RESOURCE_FLAGS += -compress 9 -threshold 5
|
|
RESOURCES += \
|
|
icons.qrc \
|
|
lang.qrc \
|
|
searchengine.qrc
|
|
|
|
# Translations
|
|
TRANSLATIONS += $$files(lang/qbittorrent_*.ts)
|
|
|
|
DESTDIR = .
|