2013-11-20 02:28:18 +04:00
|
|
|
# The first path is used when the source is being build by packagers (pbuilder/sbuild/etc)
|
|
|
|
# The second path is used when you manually run the configure script in the root folder (eg when using qt creator)
|
|
|
|
exists($$OUT_PWD/../conf.pri) {
|
|
|
|
include($$OUT_PWD/../conf.pri)
|
2018-12-21 13:31:49 +03:00
|
|
|
}
|
|
|
|
else {
|
2013-11-20 02:28:18 +04:00
|
|
|
include(conf.pri)
|
|
|
|
}
|
2011-01-01 20:16:37 +03:00
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# COMPILATION SPECIFIC
|
2015-09-20 15:45:40 +03:00
|
|
|
!nogui:dbus: QT += dbus
|
2011-03-26 12:03:12 +03:00
|
|
|
|
2018-05-10 01:38:50 +03:00
|
|
|
QMAKE_CXXFLAGS += -Wall -Wextra -Wpedantic -Wformat-security
|
2015-09-20 15:45:40 +03:00
|
|
|
!haiku: QMAKE_LFLAGS_APP += -rdynamic
|
2010-11-20 20:21:40 +03:00
|
|
|
|
|
|
|
# Man page
|
2015-01-18 15:13:06 +03:00
|
|
|
nogui {
|
2010-11-20 20:21:40 +03:00
|
|
|
man.files = ../doc/qbittorrent-nox.1
|
2018-12-21 13:31:49 +03:00
|
|
|
}
|
|
|
|
else {
|
2010-11-20 20:21:40 +03:00
|
|
|
man.files = ../doc/qbittorrent.1
|
|
|
|
}
|
2011-01-15 12:30:41 +03:00
|
|
|
|
2014-04-19 23:47:08 +04:00
|
|
|
man.path = $$MANPREFIX/man1
|
2010-11-20 20:21:40 +03:00
|
|
|
INSTALLS += man
|
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
DIST_PATH = ../dist/unix
|
|
|
|
|
2015-04-05 15:12:36 +03:00
|
|
|
# Systemd Service file
|
|
|
|
nogui:systemd {
|
2017-05-18 16:51:50 +03:00
|
|
|
systemdService.files = $$DIST_PATH/systemd/qbittorrent-nox@.service
|
2015-04-05 15:12:36 +03:00
|
|
|
systemdService.path = $$PREFIX/lib/systemd/system/
|
|
|
|
INSTALLS += systemdService
|
|
|
|
}
|
|
|
|
|
2010-11-20 20:21:40 +03:00
|
|
|
# Menu Icon
|
2015-01-18 15:13:06 +03:00
|
|
|
!nogui {
|
2019-01-05 05:01:32 +03:00
|
|
|
menuicon.files = $$DIST_PATH/org.qbittorrent.qBittorrent.desktop
|
2015-04-12 22:49:22 +03:00
|
|
|
menuicon.path = $$DATADIR/applications/
|
2015-01-18 15:13:06 +03:00
|
|
|
INSTALLS += menuicon
|
2010-11-20 20:21:40 +03:00
|
|
|
|
2019-01-05 05:01:32 +03:00
|
|
|
appdata.files = $$DIST_PATH/org.qbittorrent.qBittorrent.appdata.xml
|
|
|
|
appdata.path = $$DATADIR/metainfo/
|
2015-04-05 19:01:23 +03:00
|
|
|
INSTALLS += appdata
|
|
|
|
|
2017-03-04 01:02:11 +03:00
|
|
|
# Apps icons
|
2015-01-18 15:13:06 +03:00
|
|
|
icon16.files = $$DIST_PATH/menuicons/16x16/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon16.path = $$DATADIR/icons/hicolor/16x16/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon22.files = $$DIST_PATH/menuicons/22x22/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon22.path = $$DATADIR/icons/hicolor/22x22/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon24.files = $$DIST_PATH/menuicons/24x24/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon24.path = $$DATADIR/icons/hicolor/24x24/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon32.files = $$DIST_PATH/menuicons/32x32/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon32.path = $$DATADIR/icons/hicolor/32x32/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon36.files = $$DIST_PATH/menuicons/36x36/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon36.path = $$DATADIR/icons/hicolor/36x36/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon48.files = $$DIST_PATH/menuicons/48x48/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon48.path = $$DATADIR/icons/hicolor/48x48/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon64.files = $$DIST_PATH/menuicons/64x64/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon64.path = $$DATADIR/icons/hicolor/64x64/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon72.files = $$DIST_PATH/menuicons/72x72/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon72.path = $$DATADIR/icons/hicolor/72x72/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon96.files = $$DIST_PATH/menuicons/96x96/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon96.path = $$DATADIR/icons/hicolor/96x96/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon128.files = $$DIST_PATH/menuicons/128x128/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon128.path = $$DATADIR/icons/hicolor/128x128/apps/
|
2015-01-18 15:13:06 +03:00
|
|
|
icon192.files = $$DIST_PATH/menuicons/192x192/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
icon192.path = $$DATADIR/icons/hicolor/192x192/apps/
|
2017-03-04 01:02:11 +03:00
|
|
|
# Status icons
|
|
|
|
statusIcon16.files = $$DIST_PATH/menuicons/16x16/status/qbittorrent-tray.png
|
|
|
|
statusIcon16.path = $$DATADIR/icons/hicolor/16x16/status/
|
|
|
|
statusIcon22.files = $$DIST_PATH/menuicons/22x22/status/qbittorrent-tray.png
|
|
|
|
statusIcon22.path = $$DATADIR/icons/hicolor/22x22/status/
|
|
|
|
statusIcon24.files = $$DIST_PATH/menuicons/24x24/status/qbittorrent-tray.png
|
|
|
|
statusIcon24.path = $$DATADIR/icons/hicolor/24x24/status/
|
|
|
|
statusIcon32.files = $$DIST_PATH/menuicons/32x32/status/qbittorrent-tray.png
|
|
|
|
statusIcon32.path = $$DATADIR/icons/hicolor/32x32/status/
|
|
|
|
statusIcon36.files = $$DIST_PATH/menuicons/36x36/status/qbittorrent-tray.png
|
|
|
|
statusIcon36.path = $$DATADIR/icons/hicolor/36x36/status/
|
|
|
|
statusIcon48.files = $$DIST_PATH/menuicons/48x48/status/qbittorrent-tray.png
|
|
|
|
statusIcon48.path = $$DATADIR/icons/hicolor/48x48/status/
|
|
|
|
statusIcon64.files = $$DIST_PATH/menuicons/64x64/status/qbittorrent-tray.png
|
|
|
|
statusIcon64.path = $$DATADIR/icons/hicolor/64x64/status/
|
|
|
|
statusIcon72.files = $$DIST_PATH/menuicons/72x72/status/qbittorrent-tray.png
|
|
|
|
statusIcon72.path = $$DATADIR/icons/hicolor/72x72/status/
|
|
|
|
statusIcon96.files = $$DIST_PATH/menuicons/96x96/status/qbittorrent-tray.png
|
|
|
|
statusIcon96.path = $$DATADIR/icons/hicolor/96x96/status/
|
|
|
|
statusIcon128.files = $$DIST_PATH/menuicons/128x128/status/qbittorrent-tray.png
|
|
|
|
statusIcon128.path = $$DATADIR/icons/hicolor/128x128/status/
|
|
|
|
statusIcon192.files = $$DIST_PATH/menuicons/192x192/status/qbittorrent-tray.png
|
|
|
|
statusIcon192.path = $$DATADIR/icons/hicolor/192x192/status/
|
2017-07-05 14:16:57 +03:00
|
|
|
|
2017-09-26 02:17:32 +03:00
|
|
|
statusIconScalable.files = $$PWD/src/icons/skin/qbittorrent-tray.svg \
|
|
|
|
$$PWD/src/icons/skin/qbittorrent-tray-dark.svg \
|
2017-07-05 14:16:57 +03:00
|
|
|
$$PWD/src/icons/skin/qbittorrent-tray-light.svg
|
|
|
|
statusIconScalable.path = $$DATADIR/icons/hicolor/scalable/status/
|
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
INSTALLS += \
|
|
|
|
icon16 \
|
|
|
|
icon22 \
|
|
|
|
icon24 \
|
|
|
|
icon32 \
|
|
|
|
icon36 \
|
|
|
|
icon48 \
|
|
|
|
icon64 \
|
|
|
|
icon72 \
|
|
|
|
icon96 \
|
|
|
|
icon128 \
|
2017-03-04 01:02:11 +03:00
|
|
|
icon192 \
|
|
|
|
statusIcon16 \
|
|
|
|
statusIcon22 \
|
|
|
|
statusIcon24 \
|
|
|
|
statusIcon32 \
|
|
|
|
statusIcon36 \
|
|
|
|
statusIcon48 \
|
|
|
|
statusIcon64 \
|
|
|
|
statusIcon72 \
|
|
|
|
statusIcon96 \
|
|
|
|
statusIcon128 \
|
2017-07-05 14:16:57 +03:00
|
|
|
statusIcon192 \
|
|
|
|
statusIconScalable
|
2011-03-19 01:49:28 +03:00
|
|
|
|
2015-01-18 15:13:06 +03:00
|
|
|
pixmap.files = $$DIST_PATH/menuicons/128x128/apps/qbittorrent.png
|
2015-04-12 22:49:22 +03:00
|
|
|
pixmap.path = $$DATADIR/pixmaps/
|
2015-01-18 15:13:06 +03:00
|
|
|
INSTALLS += pixmap
|
2010-11-20 20:21:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
# INSTALL
|
|
|
|
target.path = $$PREFIX/bin/
|
|
|
|
INSTALLS += target
|