2006-09-30 20:02:39 +04:00
|
|
|
# Vars
|
|
|
|
LANG_PATH = lang
|
|
|
|
ICONS_PATH = Icons
|
|
|
|
|
2008-11-05 01:39:43 +03:00
|
|
|
# Set the following variable to 1 to enable debug
|
2009-12-08 19:43:48 +03:00
|
|
|
DEBUG_MODE = 0
|
2006-09-30 20:02:39 +04:00
|
|
|
|
|
|
|
# Global
|
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = qbittorrent
|
2008-11-05 01:39:43 +03:00
|
|
|
CONFIG += qt \
|
2009-12-07 23:54:47 +03:00
|
|
|
thread
|
2006-09-30 20:02:39 +04:00
|
|
|
|
2007-03-09 02:32:54 +03:00
|
|
|
# Update this VERSION for each release
|
2009-12-08 22:31:17 +03:00
|
|
|
DEFINES += VERSION=\\\"v2.0.0rc7\\\"
|
2009-11-09 23:39:40 +03:00
|
|
|
DEFINES += VERSION_MAJOR=2
|
|
|
|
DEFINES += VERSION_MINOR=0
|
2009-01-26 19:14:52 +03:00
|
|
|
DEFINES += VERSION_BUGFIX=0
|
2009-11-18 15:11:15 +03:00
|
|
|
|
|
|
|
# !mac:QMAKE_LFLAGS += -Wl,--as-needed
|
2008-11-05 01:39:43 +03: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
|
|
|
}
|
2008-11-05 01:39:43 +03: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
|
|
|
}
|
|
|
|
|
|
|
|
# Install
|
2008-11-05 01:39:43 +03:00
|
|
|
!win32 {
|
2007-11-18 21:06:44 +03:00
|
|
|
# Binary
|
2008-11-05 01:39:43 +03:00
|
|
|
exists(../conf.pri) {
|
2007-11-18 21:06:44 +03:00
|
|
|
include(../conf.pri)
|
2008-11-05 01:39:43 +03:00
|
|
|
|
2007-11-18 21:06:44 +03:00
|
|
|
# Target
|
|
|
|
target.path = $$BINDIR
|
|
|
|
INSTALLS += target
|
|
|
|
}
|
2008-07-03 18:59:31 +04:00
|
|
|
|
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
|
2008-11-05 01:39:43 +03:00
|
|
|
|
2007-11-18 21:06:44 +03:00
|
|
|
# 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/
|
2008-11-05 01:39:43 +03:00
|
|
|
INSTALLS += icon16 \
|
|
|
|
icon22 \
|
|
|
|
icon24 \
|
|
|
|
icon32 \
|
|
|
|
icon36 \
|
|
|
|
icon48 \
|
|
|
|
icon64 \
|
|
|
|
icon72 \
|
|
|
|
icon96 \
|
|
|
|
icon128 \
|
|
|
|
icon192
|
2006-09-30 20:02:39 +04:00
|
|
|
}
|
2008-12-28 04:17:57 +03:00
|
|
|
|
2009-08-14 19:57:08 +04:00
|
|
|
# QMAKE_CXXFLAGS_RELEASE += -fwrapv
|
|
|
|
# QMAKE_CXXFLAGS_DEBUG += -fwrapv
|
|
|
|
unix:QMAKE_LFLAGS_SHAPP += -rdynamic
|
2007-08-29 14:20:39 +04:00
|
|
|
CONFIG += link_pkgconfig
|
2009-11-06 17:30:14 +03:00
|
|
|
PKGCONFIG += "libtorrent-rasterbar"
|
2009-08-14 19:57:08 +04:00
|
|
|
QT += network \
|
|
|
|
xml
|
2007-08-29 14:20:39 +04:00
|
|
|
DEFINES += QT_NO_CAST_TO_ASCII
|
|
|
|
|
2007-03-12 16:20:29 +03:00
|
|
|
# Windows
|
2009-01-04 22:48:16 +03:00
|
|
|
# usually built as static
|
2009-11-06 17:30:14 +03:00
|
|
|
# win32:LIBS += -ltorrent -lboost_system
|
2009-08-14 19:57:08 +04:00
|
|
|
# win32:LIBS += -lz ?
|
|
|
|
win32:LIBS += -lssl32 \
|
|
|
|
-lws2_32 \
|
|
|
|
-lwsock32 \
|
|
|
|
-ladvapi32 \
|
|
|
|
-lwinmm
|
2009-12-07 23:54:47 +03:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
DEFINES += WITH_GEOIP_EMBEDDED
|
|
|
|
message("On Windows, GeoIP database must be embedded.")
|
|
|
|
}
|
|
|
|
|
|
|
|
macx {
|
|
|
|
DEFINES += WITH_GEOIP_EMBEDDED
|
|
|
|
message("On Mac OS X, GeoIP database must be embedded.")
|
|
|
|
}
|
|
|
|
|
|
|
|
unix:!macx {
|
|
|
|
contains(DEFINES, WITH_GEOIP_EMBEDDED) {
|
|
|
|
message("You chose to embed GeoIP database in qBittorrent executable.")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-09-30 20:02:39 +04:00
|
|
|
RESOURCES = icons.qrc \
|
2008-11-05 01:39:43 +03:00
|
|
|
lang.qrc \
|
|
|
|
search.qrc \
|
2009-12-07 23:54:47 +03:00
|
|
|
webui.qrc
|
|
|
|
|
|
|
|
# Add GeoIP resource file if the GeoIP database
|
|
|
|
# should be embedded in qBittorrent executable
|
|
|
|
contains(DEFINES, WITH_GEOIP_EMBEDDED) {
|
|
|
|
exists("geoip/GeoIP.dat") {
|
|
|
|
message("GeoIP.dat was found in src/geoip/.")
|
|
|
|
RESOURCES += geoip.qrc
|
|
|
|
} else {
|
|
|
|
DEFINES -= WITH_GEOIP_EMBEDDED
|
|
|
|
error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.")
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
message("GeoIP database will not be embedded in qBittorrent executable.")
|
|
|
|
}
|
2006-09-30 20:02:39 +04:00
|
|
|
|
|
|
|
# Translations
|
|
|
|
TRANSLATIONS = $$LANG_PATH/qbittorrent_fr.ts \
|
2008-11-05 01:39:43 +03:00
|
|
|
$$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 \
|
2009-12-06 14:37:20 +03:00
|
|
|
$$LANG_PATH/qbittorrent_cs.ts \
|
|
|
|
$$LANG_PATH/qbittorrent_sr.ts
|
2006-09-30 20:02:39 +04:00
|
|
|
|
|
|
|
# Source code
|
2008-11-05 01:39:43 +03:00
|
|
|
HEADERS += GUI.h \
|
|
|
|
misc.h \
|
|
|
|
options_imp.h \
|
|
|
|
about_imp.h \
|
|
|
|
createtorrent_imp.h \
|
2009-11-20 10:48:44 +03:00
|
|
|
searchlistdelegate.h \
|
|
|
|
proplistdelegate.h \
|
|
|
|
previewselect.h \
|
|
|
|
previewlistdelegate.h \
|
|
|
|
trackerlogin.h \
|
|
|
|
downloadthread.h \
|
|
|
|
downloadfromurldlg.h \
|
|
|
|
torrentadditiondlg.h \
|
2008-11-05 01:39:43 +03:00
|
|
|
bittorrent.h \
|
|
|
|
searchEngine.h \
|
|
|
|
rss.h \
|
|
|
|
rss_imp.h \
|
2009-11-17 16:11:32 +03:00
|
|
|
speedlimitdlg.h \
|
2008-11-05 01:39:43 +03:00
|
|
|
qtorrenthandle.h \
|
2009-11-20 10:48:44 +03:00
|
|
|
engineselectdlg.h \
|
2009-11-20 11:20:05 +03:00
|
|
|
pluginsource.h \
|
2008-11-05 01:39:43 +03:00
|
|
|
qgnomelook.h \
|
|
|
|
httpserver.h \
|
|
|
|
httpconnection.h \
|
|
|
|
httprequestparser.h \
|
|
|
|
httpresponsegenerator.h \
|
|
|
|
json.h \
|
|
|
|
eventmanager.h \
|
2009-11-20 10:48:44 +03:00
|
|
|
filterparserthread.h \
|
2009-11-19 14:09:03 +03:00
|
|
|
trackersadditiondlg.h \
|
2009-11-20 10:48:44 +03:00
|
|
|
searchtab.h \
|
2008-11-05 01:39:43 +03:00
|
|
|
console_imp.h \
|
2009-01-18 18:12:38 +03:00
|
|
|
ico.h \
|
2009-08-14 19:57:08 +04:00
|
|
|
stacktrace.h \
|
2009-11-20 10:48:44 +03:00
|
|
|
torrentpersistentdata.h \
|
|
|
|
feeddownloader.h \
|
2009-08-25 06:31:36 +04:00
|
|
|
feedList.h \
|
2009-11-20 10:48:44 +03:00
|
|
|
supportedengines.h \
|
|
|
|
transferlistwidget.h \
|
|
|
|
transferlistdelegate.h \
|
|
|
|
transferlistfilterswidget.h \
|
2009-11-10 23:47:48 +03:00
|
|
|
propertieswidget.h \
|
2009-11-20 10:48:44 +03:00
|
|
|
torrentfilesmodel.h \
|
2009-11-14 13:37:45 +03:00
|
|
|
filesystemwatcher.h \
|
|
|
|
peerlistwidget.h \
|
2009-11-14 16:33:55 +03:00
|
|
|
peerlistdelegate.h \
|
2009-11-14 22:08:28 +03:00
|
|
|
reverseresolution.h \
|
2009-11-15 23:03:23 +03:00
|
|
|
preferences.h \
|
2009-11-17 14:46:43 +03:00
|
|
|
geoip.h \
|
2009-11-18 15:11:15 +03:00
|
|
|
peeraddition.h \
|
2009-11-18 16:18:55 +03:00
|
|
|
deletionconfirmationdlg.h \
|
2009-11-19 14:09:03 +03:00
|
|
|
statusbar.h \
|
2009-11-21 21:36:12 +03:00
|
|
|
trackerlist.h \
|
2009-11-21 22:40:24 +03:00
|
|
|
downloadedpiecesbar.h \
|
|
|
|
pieceavailabilitybar.h
|
2009-11-20 11:20:05 +03:00
|
|
|
FORMS += ui/mainwindow.ui \
|
|
|
|
ui/options.ui \
|
|
|
|
ui/about.ui \
|
|
|
|
ui/createtorrent.ui \
|
|
|
|
ui/preview.ui \
|
|
|
|
ui/login.ui \
|
|
|
|
ui/downloadfromurldlg.ui \
|
|
|
|
ui/torrentadditiondlg.ui \
|
|
|
|
ui/search.ui \
|
|
|
|
ui/rss.ui \
|
|
|
|
ui/bandwidth_limit.ui \
|
|
|
|
ui/engineselect.ui \
|
|
|
|
ui/pluginsource.ui \
|
|
|
|
ui/trackersadditiondlg.ui \
|
|
|
|
ui/console.ui \
|
|
|
|
ui/feeddownloader.ui \
|
|
|
|
ui/propertieswidget.ui \
|
|
|
|
ui/peer.ui \
|
|
|
|
ui/confirmdeletiondlg.ui
|
2006-09-30 20:02:39 +04:00
|
|
|
SOURCES += GUI.cpp \
|
2008-11-05 01:39:43 +03:00
|
|
|
main.cpp \
|
|
|
|
options_imp.cpp \
|
|
|
|
createtorrent_imp.cpp \
|
|
|
|
bittorrent.cpp \
|
2009-11-20 10:48:44 +03:00
|
|
|
searchengine.cpp \
|
2008-11-05 01:39:43 +03:00
|
|
|
rss_imp.cpp \
|
|
|
|
qtorrenthandle.cpp \
|
2009-11-20 10:48:44 +03:00
|
|
|
engineselectdlg.cpp \
|
|
|
|
downloadthread.cpp \
|
2008-11-05 01:39:43 +03:00
|
|
|
httpserver.cpp \
|
|
|
|
httpconnection.cpp \
|
|
|
|
httprequestparser.cpp \
|
|
|
|
httpresponsegenerator.cpp \
|
|
|
|
eventmanager.cpp \
|
2009-11-20 10:48:44 +03:00
|
|
|
searchtab.cpp \
|
2009-08-22 18:06:05 +04:00
|
|
|
ico.cpp \
|
2009-11-07 22:55:33 +03:00
|
|
|
rss.cpp \
|
2009-11-20 10:48:44 +03:00
|
|
|
transferlistwidget.cpp \
|
2009-11-14 13:37:45 +03:00
|
|
|
propertieswidget.cpp \
|
|
|
|
peerlistwidget.cpp
|
2007-11-18 21:06:44 +03:00
|
|
|
DESTDIR = .
|