2006-09-30 20:02:39 +04:00
|
|
|
# Vars
|
|
|
|
LANG_PATH = lang
|
|
|
|
ICONS_PATH = Icons
|
|
|
|
|
|
|
|
#Set the following variable to 1 to enable debug
|
2008-10-05 15:34:52 +04:00
|
|
|
DEBUG_MODE = 0
|
2006-09-30 20:02:39 +04:00
|
|
|
|
|
|
|
# Global
|
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = qbittorrent
|
2007-03-20 00:15:29 +03:00
|
|
|
CONFIG += qt thread x11 network
|
2006-09-30 20:02:39 +04:00
|
|
|
|
2007-03-09 02:32:54 +03:00
|
|
|
# Update this VERSION for each release
|
2008-10-29 00:39:12 +03:00
|
|
|
DEFINES += VERSION=\\\"v1.2.0\\\"
|
2007-04-13 02:17:33 +04:00
|
|
|
DEFINES += VERSION_MAJOR=1
|
2008-07-11 00:19:28 +04:00
|
|
|
DEFINES += VERSION_MINOR=2
|
2007-03-09 02:32:54 +03:00
|
|
|
DEFINES += VERSION_BUGFIX=0
|
|
|
|
|
2008-08-19 17:46:13 +04:00
|
|
|
!mac {
|
|
|
|
QMAKE_LFLAGS += -Wl,--as-needed
|
|
|
|
}
|
2008-07-03 18:59:31 +04:00
|
|
|
|
2006-09-30 20:02:39 +04:00
|
|
|
contains(DEBUG_MODE, 1){
|
2007-11-18 21:06:44 +03:00
|
|
|
CONFIG += debug
|
|
|
|
CONFIG -= release
|
|
|
|
message(Debug build!)
|
2006-09-30 20:02:39 +04:00
|
|
|
}
|
|
|
|
contains(DEBUG_MODE, 0){
|
2007-11-18 21:06:44 +03:00
|
|
|
CONFIG -= debug
|
|
|
|
CONFIG += release
|
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
|
|
|
message(Release build!)
|
2006-09-30 20:02:39 +04:00
|
|
|
}
|
|
|
|
|
2007-09-21 00:57:41 +04:00
|
|
|
# For libtorrent stuff
|
|
|
|
# (comment this if you are using libtorrent with debug enabled)
|
2008-08-02 23:51:24 +04:00
|
|
|
DEFINES += NDEBUG
|
2007-09-21 00:57:41 +04:00
|
|
|
|
2006-09-30 20:02:39 +04:00
|
|
|
# Install
|
2007-03-12 16:20:29 +03:00
|
|
|
|
|
|
|
!win32 {
|
2007-11-18 21:06:44 +03:00
|
|
|
# Binary
|
|
|
|
exists(../conf.pri){
|
|
|
|
include(../conf.pri)
|
|
|
|
# Target
|
|
|
|
target.path = $$BINDIR
|
|
|
|
INSTALLS += target
|
|
|
|
}
|
2008-07-03 18:59:31 +04:00
|
|
|
|
|
|
|
# DBUS
|
|
|
|
QT += dbus
|
2007-11-18 21:06:44 +03:00
|
|
|
|
|
|
|
# Man page
|
2008-05-08 18:55:46 +04:00
|
|
|
man.files = ../doc/qbittorrent.1
|
2007-11-18 21:06:44 +03:00
|
|
|
man.path = $$PREFIX/share/man/man1/
|
|
|
|
INSTALLS += man
|
|
|
|
|
|
|
|
# Menu Icon
|
|
|
|
menuicon.files = Icons/qBittorrent.desktop
|
|
|
|
menuicon.path = $$PREFIX/share/applications/
|
|
|
|
INSTALLS += menuicon
|
|
|
|
icon16.files = menuicons/16x16/apps/qbittorrent.png
|
|
|
|
icon16.path = $$PREFIX/share/icons/hicolor/16x16/apps/
|
|
|
|
icon22.files = menuicons/22x22/apps/qbittorrent.png
|
|
|
|
icon22.path = $$PREFIX/share/icons/hicolor/22x22/apps/
|
|
|
|
icon24.files = menuicons/24x24/apps/qbittorrent.png
|
|
|
|
icon24.path = $$PREFIX/share/icons/hicolor/24x24/apps/
|
|
|
|
icon32.files = menuicons/32x32/apps/qbittorrent.png
|
|
|
|
icon32.path = $$PREFIX/share/icons/hicolor/32x32/apps/
|
|
|
|
icon36.files = menuicons/36x36/apps/qbittorrent.png
|
|
|
|
icon36.path = $$PREFIX/share/icons/hicolor/36x36/apps/
|
|
|
|
icon48.files = menuicons/48x48/apps/qbittorrent.png
|
|
|
|
icon48.path = $$PREFIX/share/icons/hicolor/48x48/apps/
|
|
|
|
icon64.files = menuicons/64x64/apps/qbittorrent.png
|
|
|
|
icon64.path = $$PREFIX/share/icons/hicolor/64x64/apps/
|
|
|
|
icon72.files = menuicons/72x72/apps/qbittorrent.png
|
|
|
|
icon72.path = $$PREFIX/share/icons/hicolor/72x72/apps/
|
|
|
|
icon96.files = menuicons/96x96/apps/qbittorrent.png
|
|
|
|
icon96.path = $$PREFIX/share/icons/hicolor/96x96/apps/
|
|
|
|
icon128.files = menuicons/128x128/apps/qbittorrent.png
|
|
|
|
icon128.path = $$PREFIX/share/icons/hicolor/128x128/apps/
|
|
|
|
icon192.files = menuicons/192x192/apps/qbittorrent.png
|
|
|
|
icon192.path = $$PREFIX/share/icons/hicolor/192x192/apps/
|
|
|
|
INSTALLS += icon16 icon22 icon24 icon32 icon36 icon48 icon64 icon72 icon96 icon128 icon192
|
2006-09-30 20:02:39 +04:00
|
|
|
}
|
|
|
|
|
2007-08-29 14:20:39 +04:00
|
|
|
QMAKE_CXXFLAGS_RELEASE += -fwrapv -O2
|
|
|
|
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O1
|
|
|
|
|
|
|
|
CONFIG += link_pkgconfig
|
2008-07-02 19:06:22 +04:00
|
|
|
PKGCONFIG += "libtorrent-rasterbar libcurl"
|
2007-08-29 14:20:39 +04:00
|
|
|
|
2007-09-04 02:59:46 +04:00
|
|
|
!contains(DEFINES, HAVE_MAGICK){
|
2007-11-18 21:06:44 +03:00
|
|
|
message(ImageMagick disabled)
|
2007-08-29 14:20:39 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
QT += network xml
|
|
|
|
|
|
|
|
DEFINES += QT_NO_CAST_TO_ASCII
|
|
|
|
#QT_NO_CAST_FROM_ASCII
|
|
|
|
|
2007-03-12 16:20:29 +03:00
|
|
|
# Windows
|
|
|
|
win32 {
|
2007-11-18 21:06:44 +03:00
|
|
|
LIBS += -ltorrent -lccext2 -lccgnu2
|
|
|
|
#-lMagick++ -lWand -lMagick
|
2007-03-12 15:54:47 +03:00
|
|
|
}
|
2006-09-30 20:02:39 +04:00
|
|
|
|
|
|
|
RESOURCES = icons.qrc \
|
|
|
|
lang.qrc \
|
2008-05-16 11:10:50 +04:00
|
|
|
search.qrc \
|
|
|
|
webui.qrc
|
2006-09-30 20:02:39 +04:00
|
|
|
|
|
|
|
# Translations
|
|
|
|
TRANSLATIONS = $$LANG_PATH/qbittorrent_fr.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_zh.ts \
|
2008-08-25 14:54:14 +04:00
|
|
|
$$LANG_PATH/qbittorrent_zh_TW.ts \
|
2006-09-30 20:02:39 +04:00
|
|
|
$$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 \
|
2006-09-30 22:48:16 +04:00
|
|
|
$$LANG_PATH/qbittorrent_pt.ts \
|
2006-10-22 03:58:08 +04:00
|
|
|
$$LANG_PATH/qbittorrent_nb.ts \
|
2007-03-23 17:10:16 +03:00
|
|
|
$$LANG_PATH/qbittorrent_fi.ts \
|
2007-04-07 11:43:57 +04:00
|
|
|
$$LANG_PATH/qbittorrent_da.ts \
|
2007-07-13 16:28:18 +04:00
|
|
|
$$LANG_PATH/qbittorrent_ja.ts \
|
2007-07-29 07:51:42 +04:00
|
|
|
$$LANG_PATH/qbittorrent_hu.ts \
|
2008-08-18 14:38:40 +04:00
|
|
|
$$LANG_PATH/qbittorrent_pt_BR.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_cs.ts
|
2006-09-30 20:02:39 +04:00
|
|
|
|
|
|
|
# Source code
|
|
|
|
HEADERS += GUI.h misc.h options_imp.h about_imp.h \
|
2006-10-19 00:40:40 +04:00
|
|
|
properties_imp.h createtorrent_imp.h \
|
2006-09-30 20:02:39 +04:00
|
|
|
DLListDelegate.h SearchListDelegate.h \
|
2008-05-16 11:10:50 +04:00
|
|
|
PropListDelegate.h previewSelect.h \
|
2006-09-30 20:02:39 +04:00
|
|
|
PreviewListDelegate.h trackerLogin.h \
|
2006-10-24 01:42:37 +04:00
|
|
|
downloadThread.h downloadFromURLImp.h \
|
2007-03-05 20:35:38 +03:00
|
|
|
torrentAddition.h deleteThread.h \
|
2007-03-29 19:43:08 +04:00
|
|
|
bittorrent.h searchEngine.h \
|
2007-04-10 13:07:33 +04:00
|
|
|
rss.h rss_imp.h FinishedTorrents.h \
|
2007-08-20 10:29:18 +04:00
|
|
|
allocationDlg.h FinishedListDelegate.h \
|
2007-08-31 16:06:31 +04:00
|
|
|
qtorrenthandle.h downloadingTorrents.h \
|
2007-09-16 13:19:22 +04:00
|
|
|
engineSelectDlg.h pluginSource.h \
|
2007-11-18 21:06:44 +03:00
|
|
|
arborescence.h qgnomelook.h realprogressbar.h \
|
2008-05-16 11:10:50 +04:00
|
|
|
realprogressbarthread.h qrealarray.h \
|
|
|
|
httpserver.h httpconnection.h \
|
|
|
|
httprequestparser.h httpresponsegenerator.h \
|
2008-05-18 15:44:50 +04:00
|
|
|
json.h eventmanager.h filterParserThread.h \
|
2008-09-07 16:09:41 +04:00
|
|
|
TrackersAdditionDlg.h searchTab.h console_imp.h
|
2006-09-30 20:02:39 +04:00
|
|
|
FORMS += MainWindow.ui options.ui about.ui \
|
|
|
|
properties.ui createtorrent.ui preview.ui \
|
2007-03-27 22:49:29 +04:00
|
|
|
login.ui downloadFromURL.ui addTorrentDialog.ui \
|
2007-08-26 20:25:22 +04:00
|
|
|
search.ui rss.ui seeding.ui bandwidth_limit.ui \
|
2008-05-18 15:44:50 +04:00
|
|
|
download.ui engineSelect.ui pluginSource.ui \
|
2008-09-07 16:09:41 +04:00
|
|
|
trackersAdd.ui console.ui
|
2006-09-30 20:02:39 +04:00
|
|
|
SOURCES += GUI.cpp \
|
|
|
|
main.cpp \
|
|
|
|
options_imp.cpp \
|
2008-05-16 11:10:50 +04:00
|
|
|
properties_imp.cpp \
|
|
|
|
createtorrent_imp.cpp \
|
|
|
|
bittorrent.cpp \
|
|
|
|
searchEngine.cpp \
|
|
|
|
rss_imp.cpp \
|
|
|
|
FinishedTorrents.cpp \
|
2007-08-26 20:25:22 +04:00
|
|
|
qtorrenthandle.cpp \
|
2007-08-31 16:06:31 +04:00
|
|
|
downloadingTorrents.cpp \
|
2007-09-29 12:00:14 +04:00
|
|
|
engineSelectDlg.cpp \
|
2007-11-18 21:06:44 +03:00
|
|
|
downloadThread.cpp \
|
|
|
|
realprogressbar.cpp \
|
2008-05-16 11:10:50 +04:00
|
|
|
realprogressbarthread.cpp \
|
|
|
|
qrealarray.cpp \
|
|
|
|
httpserver.cpp \
|
|
|
|
httpconnection.cpp \
|
|
|
|
httprequestparser.cpp \
|
|
|
|
httpresponsegenerator.cpp \
|
|
|
|
json.cpp \
|
2008-06-25 23:29:29 +04:00
|
|
|
eventmanager.cpp \
|
|
|
|
SearchTab.cpp
|
2007-11-18 21:06:44 +03:00
|
|
|
|
|
|
|
DESTDIR = .
|
2006-09-30 20:02:39 +04:00
|
|
|
|