qBittorrent/src/src.pro

270 lines
7.4 KiB
Prolog
Raw Normal View History

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