2006-10-01 00:02:39 +08:00
|
|
|
# Global
|
|
|
|
TEMPLATE = app
|
2010-11-21 01:21:40 +08:00
|
|
|
CONFIG += qt thread
|
2006-10-01 00:02:39 +08:00
|
|
|
|
2011-01-02 01:16:37 +08:00
|
|
|
# Windows specific configuration
|
|
|
|
win32 {
|
2011-03-24 01:02:26 +08:00
|
|
|
include(../winconf.pri)
|
2011-01-02 01:16:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# Mac specific configuration
|
|
|
|
macx {
|
|
|
|
include(../macxconf.pri)
|
|
|
|
}
|
|
|
|
|
|
|
|
# Unix specific configuration
|
2010-11-21 02:51:31 +08:00
|
|
|
unix:!macx {
|
2011-01-02 01:16:37 +08:00
|
|
|
include(../unixconf.pri)
|
|
|
|
}
|
|
|
|
|
|
|
|
# eCS(OS/2) specific configuration
|
|
|
|
os2 {
|
|
|
|
include(../os2conf.pri)
|
2010-06-09 23:13:52 +08:00
|
|
|
}
|
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
nox {
|
2011-01-02 01:16:37 +08:00
|
|
|
QT -= gui
|
2010-01-05 06:29:48 +08:00
|
|
|
TARGET = qbittorrent-nox
|
2010-11-21 01:21:40 +08:00
|
|
|
DEFINES += DISABLE_GUI
|
2010-06-17 19:55:47 +08:00
|
|
|
} else {
|
2010-11-21 01:21:40 +08:00
|
|
|
QT += xml
|
2012-12-30 00:06:15 +08:00
|
|
|
CONFIG(static) {
|
|
|
|
DEFINES += QBT_STATIC_QT
|
|
|
|
QTPLUGIN += qico
|
|
|
|
}
|
2010-06-17 19:55:47 +08:00
|
|
|
TARGET = qbittorrent
|
2010-01-05 06:29:48 +08:00
|
|
|
}
|
2010-11-21 01:21:40 +08:00
|
|
|
QT += network
|
2010-01-05 06:29:48 +08:00
|
|
|
|
2013-09-21 15:59:58 +08:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
# Vars
|
|
|
|
LANG_PATH = lang
|
|
|
|
ICONS_PATH = Icons
|
2010-08-23 02:52:54 +08:00
|
|
|
|
2011-01-02 01:03:23 +08: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 06:28:01 +08:00
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
# Disable debug output in release mode
|
2011-01-02 06:26:17 +08:00
|
|
|
CONFIG(release, debug|release) {
|
2011-01-02 01:03:23 +08:00
|
|
|
message(Disabling debug output.)
|
2010-11-21 01:21:40 +08:00
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
2010-08-17 01:35:32 +08:00
|
|
|
}
|
2010-02-28 23:15:00 +08:00
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
# VERSION DEFINES
|
|
|
|
include(../version.pri)
|
2007-08-29 18:20:39 +08:00
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
DEFINES += QT_NO_CAST_TO_ASCII
|
|
|
|
# Fast concatenation (Qt >= 4.6)
|
|
|
|
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
|
|
|
|
|
2011-02-26 23:04:15 +08:00
|
|
|
# Fixes compilation with Boost >= v1.46 where boost
|
|
|
|
# filesystem v3 is the default.
|
|
|
|
DEFINES += BOOST_FILESYSTEM_VERSION=2
|
|
|
|
|
2011-01-19 00:55:49 +08:00
|
|
|
INCLUDEPATH += $$PWD
|
|
|
|
|
2009-12-08 04:54:47 +08:00
|
|
|
|
2010-05-31 01:51:40 +08:00
|
|
|
# Resource files
|
2010-10-09 22:06:35 +08:00
|
|
|
RESOURCES += icons.qrc \
|
2010-06-08 23:17:15 +08:00
|
|
|
lang.qrc \
|
2010-10-09 01:47:34 +08:00
|
|
|
about.qrc
|
2010-05-31 01:51:40 +08:00
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
# Source code
|
2010-11-21 01:26:47 +08:00
|
|
|
usesystemqtsingleapplication {
|
2010-11-21 01:21:40 +08:00
|
|
|
nox {
|
|
|
|
CONFIG += qtsinglecoreapplication
|
|
|
|
} else {
|
|
|
|
CONFIG += qtsingleapplication
|
2009-12-08 04:54:47 +08:00
|
|
|
}
|
2010-06-17 19:55:47 +08:00
|
|
|
} else {
|
2010-11-21 01:21:40 +08:00
|
|
|
nox {
|
|
|
|
include(qtsingleapp/qtsinglecoreapplication.pri)
|
|
|
|
} else {
|
|
|
|
include(qtsingleapp/qtsingleapplication.pri)
|
|
|
|
}
|
2009-12-08 04:54:47 +08:00
|
|
|
}
|
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
include(qtlibtorrent/qtlibtorrent.pri)
|
|
|
|
include(webui/webui.pri)
|
|
|
|
include(tracker/tracker.pri)
|
2014-05-04 20:27:31 +08:00
|
|
|
include(preferences/preferences.pri)
|
2010-11-21 01:21:40 +08:00
|
|
|
|
|
|
|
!nox {
|
|
|
|
include(lineedit/lineedit.pri)
|
|
|
|
include(properties/properties.pri)
|
|
|
|
include(searchengine/searchengine.pri)
|
|
|
|
include(rss/rss.pri)
|
|
|
|
include(torrentcreator/torrentcreator.pri)
|
|
|
|
include(geoip/geoip.pri)
|
2011-02-06 22:27:34 +08:00
|
|
|
include(powermanagement/powermanagement.pri)
|
2010-11-21 01:21:40 +08:00
|
|
|
}
|
2006-10-01 00:02:39 +08:00
|
|
|
|
2009-12-15 18:56:41 +08:00
|
|
|
HEADERS += misc.h \
|
2012-05-17 02:19:05 +08:00
|
|
|
fs_utils.h \
|
2010-06-08 23:17:15 +08:00
|
|
|
downloadthread.h \
|
|
|
|
stacktrace.h \
|
|
|
|
torrentpersistentdata.h \
|
|
|
|
filesystemwatcher.h \
|
2010-07-16 22:39:19 +08:00
|
|
|
scannedfoldersmodel.h \
|
2010-08-20 02:47:57 +08:00
|
|
|
qinisettings.h \
|
2011-04-15 21:02:39 +08:00
|
|
|
smtp.h \
|
2014-02-04 17:35:43 +08:00
|
|
|
dnsupdater.h
|
2011-09-24 20:39:27 +08:00
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
SOURCES += main.cpp \
|
|
|
|
downloadthread.cpp \
|
|
|
|
scannedfoldersmodel.cpp \
|
2014-10-25 19:49:57 +08:00
|
|
|
torrentpersistentdata.cpp \
|
2010-11-21 01:21:40 +08:00
|
|
|
misc.cpp \
|
2012-05-17 02:19:05 +08:00
|
|
|
fs_utils.cpp \
|
2011-04-15 21:02:39 +08:00
|
|
|
smtp.cpp \
|
2014-02-04 17:35:43 +08:00
|
|
|
dnsupdater.cpp
|
2010-11-21 01:21:40 +08:00
|
|
|
|
|
|
|
nox {
|
2010-06-08 23:17:15 +08:00
|
|
|
HEADERS += headlessloader.h
|
|
|
|
} else {
|
2010-11-14 05:15:52 +08:00
|
|
|
HEADERS += mainwindow.h\
|
2010-06-08 23:17:15 +08:00
|
|
|
transferlistwidget.h \
|
|
|
|
transferlistdelegate.h \
|
|
|
|
transferlistfilterswidget.h \
|
2013-07-06 01:24:20 +08:00
|
|
|
transferlistsortmodel.h \
|
2012-02-22 03:54:24 +08:00
|
|
|
torrentcontentmodel.h \
|
|
|
|
torrentcontentmodelitem.h \
|
2012-08-26 23:10:32 +08:00
|
|
|
torrentcontentmodelfolder.h \
|
|
|
|
torrentcontentmodelfile.h \
|
2012-02-22 03:54:24 +08:00
|
|
|
torrentcontentfiltermodel.h \
|
2010-06-08 23:17:15 +08:00
|
|
|
deletionconfirmationdlg.h \
|
|
|
|
statusbar.h \
|
|
|
|
reverseresolution.h \
|
|
|
|
ico.h \
|
|
|
|
speedlimitdlg.h \
|
|
|
|
about_imp.h \
|
|
|
|
previewselect.h \
|
|
|
|
previewlistdelegate.h \
|
|
|
|
downloadfromurldlg.h \
|
|
|
|
trackerlogin.h \
|
2010-10-02 04:03:27 +08:00
|
|
|
hidabletabwidget.h \
|
2010-10-23 04:17:47 +08:00
|
|
|
sessionapplication.h \
|
2010-12-21 02:07:36 +08:00
|
|
|
torrentimportdlg.h \
|
2011-01-01 21:05:28 +08:00
|
|
|
executionlog.h \
|
2011-03-11 03:42:12 +08:00
|
|
|
iconprovider.h \
|
2011-09-24 20:39:27 +08:00
|
|
|
updownratiodlg.h \
|
2012-05-16 00:57:31 +08:00
|
|
|
loglistwidget.h \
|
2013-07-18 23:55:51 +08:00
|
|
|
addnewtorrentdialog.h \
|
2013-11-17 05:16:24 +08:00
|
|
|
autoexpandabledialog.h \
|
2014-02-04 17:35:43 +08:00
|
|
|
statsdialog.h \
|
2014-09-13 21:02:32 +08:00
|
|
|
messageboxraised.h \
|
|
|
|
statussortfilterproxymodel.h \
|
|
|
|
torrentfilterenum.h
|
2010-06-08 23:17:15 +08:00
|
|
|
|
2010-11-14 05:15:52 +08:00
|
|
|
SOURCES += mainwindow.cpp \
|
2010-06-08 23:17:15 +08:00
|
|
|
ico.cpp \
|
|
|
|
transferlistwidget.cpp \
|
2014-10-25 18:53:29 +08:00
|
|
|
transferlistdelegate.cpp \
|
2014-10-25 19:13:37 +08:00
|
|
|
transferlistfilterswidget.cpp \
|
2012-02-22 03:54:24 +08:00
|
|
|
torrentcontentmodel.cpp \
|
|
|
|
torrentcontentmodelitem.cpp \
|
2012-08-26 23:10:32 +08:00
|
|
|
torrentcontentmodelfolder.cpp \
|
|
|
|
torrentcontentmodelfile.cpp \
|
2012-02-22 03:54:24 +08:00
|
|
|
torrentcontentfiltermodel.cpp \
|
2010-10-23 04:17:47 +08:00
|
|
|
sessionapplication.cpp \
|
2010-12-21 02:07:36 +08:00
|
|
|
torrentimportdlg.cpp \
|
2010-12-26 17:51:37 +08:00
|
|
|
executionlog.cpp \
|
2011-01-01 21:05:28 +08:00
|
|
|
previewselect.cpp \
|
2011-03-11 03:42:12 +08:00
|
|
|
iconprovider.cpp \
|
2011-09-24 20:39:27 +08:00
|
|
|
updownratiodlg.cpp \
|
2012-05-16 00:57:31 +08:00
|
|
|
loglistwidget.cpp \
|
2013-07-18 23:55:51 +08:00
|
|
|
addnewtorrentdialog.cpp \
|
2013-11-17 05:16:24 +08:00
|
|
|
autoexpandabledialog.cpp \
|
2014-02-04 17:35:43 +08:00
|
|
|
statsdialog.cpp \
|
2014-09-13 21:02:32 +08:00
|
|
|
messageboxraised.cpp \
|
2014-11-05 07:54:06 +08:00
|
|
|
statussortfilterproxymodel.cpp \
|
2014-11-05 08:05:21 +08:00
|
|
|
statusbar.cpp \
|
|
|
|
trackerlogin.cpp
|
2010-06-08 23:17:15 +08:00
|
|
|
|
2010-10-24 05:46:05 +08:00
|
|
|
win32 {
|
2010-11-21 01:21:40 +08:00
|
|
|
HEADERS += programupdater.h
|
2010-10-24 05:46:05 +08:00
|
|
|
SOURCES += programupdater.cpp
|
2013-09-21 15:59:58 +08:00
|
|
|
DEFINES += NOMINMAX
|
2010-10-24 05:46:05 +08:00
|
|
|
}
|
|
|
|
|
2010-06-08 23:17:15 +08:00
|
|
|
macx {
|
2010-11-21 01:21:40 +08:00
|
|
|
HEADERS += qmacapplication.h \
|
|
|
|
programupdater.h
|
|
|
|
|
2010-10-24 05:46:05 +08:00
|
|
|
SOURCES += qmacapplication.cpp \
|
|
|
|
programupdater.cpp
|
2010-06-08 23:17:15 +08:00
|
|
|
}
|
2010-11-21 01:21:40 +08:00
|
|
|
|
|
|
|
FORMS += mainwindow.ui \
|
|
|
|
about.ui \
|
|
|
|
preview.ui \
|
|
|
|
login.ui \
|
|
|
|
downloadfromurldlg.ui \
|
|
|
|
bandwidth_limit.ui \
|
2011-03-08 03:26:44 +08:00
|
|
|
updownratiodlg.ui \
|
2010-11-21 01:21:40 +08:00
|
|
|
confirmdeletiondlg.ui \
|
2010-12-21 02:07:36 +08:00
|
|
|
torrentimportdlg.ui \
|
2012-05-16 00:57:31 +08:00
|
|
|
executionlog.ui \
|
2013-07-18 23:55:51 +08:00
|
|
|
addnewtorrentdialog.ui \
|
2013-11-17 05:16:24 +08:00
|
|
|
autoexpandabledialog.ui \
|
|
|
|
statsdialog.ui
|
2010-06-08 23:17:15 +08:00
|
|
|
}
|
2010-05-17 22:57:45 +08:00
|
|
|
|
2010-06-08 23:17:15 +08:00
|
|
|
DESTDIR = .
|
2010-11-21 01:21:40 +08:00
|
|
|
|
|
|
|
# OS specific config
|
|
|
|
OTHER_FILES += ../winconf.pri ../macxconf.pri ../unixconf.pri ../os2conf.pri
|
2011-03-24 01:02:26 +08:00
|
|
|
# compiler specific config
|
|
|
|
OTHER_FILES += ../winconf-mingw.pri ../winconf-msvc.pri
|
2010-11-21 01:21:40 +08:00
|
|
|
# version file
|
|
|
|
OTHER_FILES += ../version.pri
|
|
|
|
|
|
|
|
# Translations
|
|
|
|
TRANSLATIONS = $$LANG_PATH/qbittorrent_fr.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_zh.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_zh_TW.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_en.ts \
|
2013-10-21 00:31:01 +08:00
|
|
|
$$LANG_PATH/qbittorrent_en_AU.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_en_GB.ts \
|
2010-11-21 01:21:40 +08:00
|
|
|
$$LANG_PATH/qbittorrent_ca.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_es.ts \
|
|
|
|
$$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 \
|
|
|
|
$$LANG_PATH/qbittorrent_it.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_sk.ts \
|
|
|
|
$$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 \
|
2011-01-06 16:42:08 +08:00
|
|
|
$$LANG_PATH/qbittorrent_hr.ts \
|
2011-01-12 01:12:39 +08:00
|
|
|
$$LANG_PATH/qbittorrent_gl.ts \
|
2011-02-08 01:29:04 +08:00
|
|
|
$$LANG_PATH/qbittorrent_hy.ts \
|
2011-12-27 19:29:35 +08:00
|
|
|
$$LANG_PATH/qbittorrent_lt.ts \
|
2012-02-01 01:25:57 +08:00
|
|
|
$$LANG_PATH/qbittorrent_ka.ts \
|
2012-03-08 00:12:14 +08:00
|
|
|
$$LANG_PATH/qbittorrent_be.ts \
|
2012-09-15 15:05:50 +08:00
|
|
|
$$LANG_PATH/qbittorrent_eu.ts \
|
2013-10-12 21:13:27 +08:00
|
|
|
$$LANG_PATH/qbittorrent_he.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_vi.ts
|