2006-09-30 20:02:39 +04:00
|
|
|
# Global
|
|
|
|
TEMPLATE = app
|
2010-11-20 20:21:40 +03:00
|
|
|
CONFIG += qt thread
|
2006-09-30 20:02:39 +04:00
|
|
|
|
2010-11-20 21:51:31 +03:00
|
|
|
unix:!macx {
|
2010-11-20 20:21:40 +03:00
|
|
|
exists(../conf.pri) {
|
|
|
|
# generated by configure
|
|
|
|
include(../conf.pri)
|
2010-10-05 05:11:46 +04:00
|
|
|
}
|
2010-06-09 19:13:52 +04:00
|
|
|
}
|
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
nox {
|
2010-02-28 18:15:00 +03:00
|
|
|
QT = core
|
2010-01-05 01:29:48 +03:00
|
|
|
TARGET = qbittorrent-nox
|
2010-11-20 20:21:40 +03:00
|
|
|
DEFINES += DISABLE_GUI
|
2010-06-17 15:55:47 +04:00
|
|
|
} else {
|
2010-11-20 20:21:40 +03:00
|
|
|
QT += xml
|
2010-06-17 15:55:47 +04:00
|
|
|
TARGET = qbittorrent
|
2010-01-05 01:29:48 +03:00
|
|
|
}
|
2010-11-20 20:21:40 +03:00
|
|
|
QT += network
|
2010-01-05 01:29:48 +03:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# Vars
|
|
|
|
LANG_PATH = lang
|
|
|
|
ICONS_PATH = Icons
|
2010-08-22 22:52:54 +04:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# use "CONFIG -= debug" to disable debug
|
|
|
|
CONFIG += debug
|
2010-02-11 01:28:01 +03:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# Disable debug output in release mode
|
|
|
|
!debug {
|
|
|
|
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
|
|
|
# Windows specific configuration
|
2010-04-28 15:45:13 +04:00
|
|
|
win32 {
|
2010-11-20 20:21:40 +03:00
|
|
|
include(../winconf.pri)
|
|
|
|
}
|
2010-06-05 17:43:36 +04:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# Mac specific configuration
|
|
|
|
macx {
|
|
|
|
include(../macxconf.pri)
|
|
|
|
}
|
2010-06-05 17:43:36 +04:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# Unix specific configuration
|
|
|
|
unix:!macx {
|
|
|
|
include(../unixconf.pri)
|
2010-04-28 15:45:13 +04:00
|
|
|
}
|
2009-12-07 23:54:47 +03:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# eCS(OS/2) specific configuration
|
2010-06-22 23:17:47 +04:00
|
|
|
os2 {
|
2010-11-20 20:21:40 +03:00
|
|
|
include(../os2conf.pri)
|
2010-06-22 23:17:47 +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
|
|
|
|
|
2009-12-07 23:54:47 +03:00
|
|
|
|
2010-05-30 21:51:40 +04:00
|
|
|
# Resource files
|
2010-10-09 18:06:35 +04:00
|
|
|
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
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# Source code
|
2010-11-20 20:26:47 +03:00
|
|
|
usesystemqtsingleapplication {
|
2010-11-20 20:21:40 +03:00
|
|
|
nox {
|
|
|
|
CONFIG += qtsinglecoreapplication
|
|
|
|
} else {
|
|
|
|
CONFIG += qtsingleapplication
|
2009-12-07 23:54:47 +03:00
|
|
|
}
|
2010-06-17 15:55:47 +04:00
|
|
|
} else {
|
2010-11-20 20:21:40 +03:00
|
|
|
nox {
|
|
|
|
include(qtsingleapp/qtsinglecoreapplication.pri)
|
|
|
|
} else {
|
|
|
|
include(qtsingleapp/qtsingleapplication.pri)
|
|
|
|
}
|
2009-12-07 23:54:47 +03:00
|
|
|
}
|
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
include(qtlibtorrent/qtlibtorrent.pri)
|
|
|
|
include(webui/webui.pri)
|
|
|
|
include(tracker/tracker.pri)
|
|
|
|
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)
|
|
|
|
}
|
2006-09-30 20:02:39 +04:00
|
|
|
|
2009-12-15 13:56:41 +03:00
|
|
|
HEADERS += misc.h \
|
2010-06-08 19:17:15 +04:00
|
|
|
downloadthread.h \
|
|
|
|
filterparserthread.h \
|
|
|
|
stacktrace.h \
|
|
|
|
torrentpersistentdata.h \
|
|
|
|
filesystemwatcher.h \
|
2010-07-16 18:39:19 +04:00
|
|
|
scannedfoldersmodel.h \
|
2010-08-19 22:47:57 +04:00
|
|
|
qinisettings.h \
|
2010-10-23 00:17:47 +04:00
|
|
|
smtp.h
|
2010-06-08 19:17:15 +04:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
SOURCES += main.cpp \
|
|
|
|
downloadthread.cpp \
|
|
|
|
scannedfoldersmodel.cpp \
|
|
|
|
misc.cpp \
|
|
|
|
smtp.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 \
|
|
|
|
torrentfilesmodel.h \
|
|
|
|
deletionconfirmationdlg.h \
|
|
|
|
statusbar.h \
|
|
|
|
reverseresolution.h \
|
|
|
|
console_imp.h \
|
|
|
|
ico.h \
|
|
|
|
speedlimitdlg.h \
|
|
|
|
about_imp.h \
|
|
|
|
previewselect.h \
|
|
|
|
previewlistdelegate.h \
|
|
|
|
downloadfromurldlg.h \
|
|
|
|
torrentadditiondlg.h \
|
|
|
|
trackerlogin.h \
|
2010-10-02 00:03:27 +04:00
|
|
|
hidabletabwidget.h \
|
2010-10-23 00:17:47 +04:00
|
|
|
sessionapplication.h \
|
2010-11-20 20:21:40 +03:00
|
|
|
torrentimportdlg.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 \
|
2010-06-22 17:39:49 +04:00
|
|
|
torrentadditiondlg.cpp \
|
2010-10-23 00:17:47 +04:00
|
|
|
sessionapplication.cpp \
|
2010-11-20 20:21:40 +03:00
|
|
|
torrentimportdlg.cpp
|
2010-06-08 19:17:15 +04:00
|
|
|
|
2010-10-24 01:46:05 +04:00
|
|
|
win32 {
|
2010-11-20 20:21:40 +03:00
|
|
|
HEADERS += programupdater.h
|
2010-10-24 01:46:05 +04:00
|
|
|
SOURCES += programupdater.cpp
|
|
|
|
}
|
|
|
|
|
2010-06-08 19:17:15 +04:00
|
|
|
macx {
|
2010-11-20 20:21:40 +03:00
|
|
|
HEADERS += qmacapplication.h \
|
|
|
|
programupdater.h
|
|
|
|
|
2010-10-24 01:46:05 +04:00
|
|
|
SOURCES += qmacapplication.cpp \
|
|
|
|
programupdater.cpp
|
2010-06-08 19:17:15 +04:00
|
|
|
}
|
2010-11-20 20:21:40 +03:00
|
|
|
|
|
|
|
FORMS += mainwindow.ui \
|
|
|
|
about.ui \
|
|
|
|
preview.ui \
|
|
|
|
login.ui \
|
|
|
|
downloadfromurldlg.ui \
|
|
|
|
torrentadditiondlg.ui \
|
|
|
|
bandwidth_limit.ui \
|
|
|
|
console.ui \
|
|
|
|
confirmdeletiondlg.ui \
|
|
|
|
torrentimportdlg.ui
|
2010-06-08 19:17:15 +04:00
|
|
|
}
|
2010-05-17 18:57:45 +04:00
|
|
|
|
2010-06-08 19:17:15 +04:00
|
|
|
DESTDIR = .
|
2010-11-20 20:21:40 +03:00
|
|
|
|
|
|
|
# OS specific config
|
|
|
|
OTHER_FILES += ../winconf.pri ../macxconf.pri ../unixconf.pri ../os2conf.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_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 \
|
|
|
|
$$LANG_PATH/qbittorrent_hr.ts
|