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
|
|
|
|
2015-08-26 20:44:42 +03:00
|
|
|
# C++11 support
|
|
|
|
CONFIG += c++11
|
|
|
|
DEFINES += BOOST_NO_CXX11_RVALUE_REFERENCES
|
2015-12-05 22:49:46 +03:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): DEFINES += QBT_USES_QT5
|
2015-08-26 20:44:42 +03:00
|
|
|
|
2011-01-01 20:16:37 +03:00
|
|
|
# Windows specific configuration
|
2015-01-18 15:13:06 +03:00
|
|
|
win32: include(../winconf.pri)
|
2011-01-01 20:16:37 +03:00
|
|
|
|
|
|
|
# Mac specific configuration
|
2015-01-18 15:13:06 +03:00
|
|
|
macx: include(../macxconf.pri)
|
2011-01-01 20:16:37 +03:00
|
|
|
|
|
|
|
# Unix specific configuration
|
2015-01-18 15:13:06 +03:00
|
|
|
unix:!macx: include(../unixconf.pri)
|
2011-01-01 20:16:37 +03:00
|
|
|
|
|
|
|
# eCS(OS/2) specific configuration
|
2015-01-18 15:13:06 +03:00
|
|
|
os2: include(../os2conf.pri)
|
2010-06-09 19:13:52 +04:00
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
nogui {
|
|
|
|
QT -= gui
|
2015-04-19 18:17:47 +03:00
|
|
|
DEFINES += DISABLE_GUI DISABLE_COUNTRIES_RESOLUTION
|
2015-01-18 15:13:06 +03:00
|
|
|
TARGET = qbittorrent-nox
|
2010-06-17 15:55:47 +04:00
|
|
|
} else {
|
2015-01-18 15:13:06 +03:00
|
|
|
QT += xml
|
2015-09-22 19:34:07 +03:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += concurrent
|
2015-01-18 15:13:06 +03:00
|
|
|
CONFIG(static) {
|
|
|
|
DEFINES += QBT_STATIC_QT
|
|
|
|
QTPLUGIN += qico
|
|
|
|
}
|
|
|
|
TARGET = qbittorrent
|
2010-01-05 01:29:48 +03:00
|
|
|
}
|
2015-01-18 15:13:06 +03:00
|
|
|
nowebui: DEFINES += DISABLE_WEBUI
|
|
|
|
strace_win: DEFINES += STACKTRACE_WIN
|
2015-08-27 14:25:14 +03:00
|
|
|
QT += network xml
|
2013-09-21 11:59:58 +04:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# Vars
|
|
|
|
LANG_PATH = lang
|
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
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
DEFINES += QT_NO_CAST_TO_ASCII
|
|
|
|
# Fast concatenation (Qt >= 4.6)
|
|
|
|
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
|
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
win32: DEFINES += NOMINMAX
|
2011-01-18 19:55:49 +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-01-18 15:13:06 +03:00
|
|
|
!nowebui: include(webui/webui.pri)
|
2015-08-26 20:18:33 +03:00
|
|
|
!nogui: include(gui/gui.pri)
|
2009-12-07 23:54:47 +03:00
|
|
|
|
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 += \
|
|
|
|
icons.qrc \
|
2015-08-26 20:18:33 +03:00
|
|
|
lang.qrc \
|
|
|
|
searchengine.qrc
|
2011-09-24 16:39:27 +04:00
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
# Translations
|
|
|
|
TRANSLATIONS = \
|
|
|
|
$$LANG_PATH/qbittorrent_fr.ts \
|
2015-06-28 18:44:31 +03:00
|
|
|
$$LANG_PATH/qbittorrent_zh.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_zh_TW.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_zh_HK.ts \
|
2015-01-18 15:13:06 +03:00
|
|
|
$$LANG_PATH/qbittorrent_en.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_en_AU.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_en_GB.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_ca.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_es.ts \
|
2015-11-22 22:59:47 +03:00
|
|
|
$$LANG_PATH/qbittorrent_eo.ts \
|
2015-01-18 15:13:06 +03:00
|
|
|
$$LANG_PATH/qbittorrent_pl.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_ko.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_de.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_nl.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_tr.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_sv.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_el.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_ru.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_uk.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_bg.ts \
|
2015-06-14 23:43:21 +03:00
|
|
|
$$LANG_PATH/qbittorrent_id.ts \
|
2015-01-18 15:13:06 +03:00
|
|
|
$$LANG_PATH/qbittorrent_it.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_sk.ts \
|
2015-08-04 19:14:02 +03:00
|
|
|
$$LANG_PATH/qbittorrent_sl.ts \
|
2015-01-18 15:13:06 +03:00
|
|
|
$$LANG_PATH/qbittorrent_ro.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_pt.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_nb.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_fi.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_da.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_ja.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_hu.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_pt_BR.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_cs.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_sr.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_ar.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_hr.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_gl.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_hy.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_lt.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_ka.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_be.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_eu.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_he.ts \
|
2015-03-29 17:17:32 +03:00
|
|
|
$$LANG_PATH/qbittorrent_vi.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_hi_IN.ts
|
2010-05-17 18:57:45 +04:00
|
|
|
|
2010-06-08 19:17:15 +04:00
|
|
|
DESTDIR = .
|