qBittorrent/src/src.pro

80 lines
1.6 KiB
Prolog
Raw Normal View History

# Global
TEMPLATE = app
CONFIG += qt thread silent
2015-08-26 20:44:42 +03:00
# C++11 support
CONFIG += c++11
DEFINES += BOOST_NO_CXX11_RVALUE_REFERENCES
2017-08-28 10:25:57 +03:00
# Platform specific configuration
win32: include(../winconf.pri)
macx: include(../macxconf.pri)
unix:!macx: include(../unixconf.pri)
os2: include(../os2conf.pri)
2017-08-28 10:25:57 +03:00
QT += network xml
nogui {
2017-08-28 10:25:57 +03:00
TARGET = qbittorrent-nox
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
QT += xml concurrent svg widgets
2017-08-28 10:25:57 +03:00
CONFIG(static) {
DEFINES += QBT_STATIC_QT
QTPLUGIN += qico
}
win32 {
QT += winextras
}
2017-08-28 10:25:57 +03:00
macx {
QT += macextras
LIBS += -lobjc
}
}
nowebui {
DEFINES += DISABLE_WEBUI
}
strace_win {
DEFINES += STACKTRACE_WIN
DEFINES += STACKTRACE_WIN_PROJECT_PATH=$$PWD
DEFINES += STACKTRACE_WIN_MAKEFILE_PATH=$$OUT_PWD
}
2010-08-22 22:52:54 +04: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
# Disable debug output in release mode
2011-01-02 01:26:17 +03:00
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
2015-04-19 18:17:47 +03:00
INCLUDEPATH += $$PWD
include(app/app.pri)
2015-09-25 11:10:05 +03:00
include(base/base.pri)
!nowebui: include(webui/webui.pri)
2015-08-26 20:18:33 +03:00
!nogui: include(gui/gui.pri)
2010-05-30 21:51:40 +04:00
# Resource files
QMAKE_RESOURCE_FLAGS += -compress 9 -threshold 5
RESOURCES += \
icons.qrc \
2015-08-26 20:18:33 +03:00
lang.qrc \
searchengine.qrc
# Translations
TRANSLATIONS += $$files(lang/qbittorrent_*.ts)
2010-06-08 19:17:15 +04:00
DESTDIR = .