2013-11-20 06:28:18 +08: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 18:31:49 +08:00
|
|
|
}
|
|
|
|
else {
|
2013-11-20 06:28:18 +08:00
|
|
|
include(conf.pri)
|
|
|
|
}
|
2011-01-02 01:16:37 +08:00
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
# COMPILATION SPECIFIC
|
2015-09-20 20:45:40 +08:00
|
|
|
!nogui:dbus: QT += dbus
|
2011-03-26 17:03:12 +08:00
|
|
|
|
2018-05-10 06:38:50 +08:00
|
|
|
QMAKE_CXXFLAGS += -Wall -Wextra -Wpedantic -Wformat-security
|
2015-09-20 20:45:40 +08:00
|
|
|
!haiku: QMAKE_LFLAGS_APP += -rdynamic
|
2010-11-21 01:21:40 +08:00
|
|
|
|
|
|
|
# Man page
|
2015-01-18 20:13:06 +08:00
|
|
|
nogui {
|
2010-11-21 01:21:40 +08:00
|
|
|
man.files = ../doc/qbittorrent-nox.1
|
2018-12-21 18:31:49 +08:00
|
|
|
}
|
|
|
|
else {
|
2010-11-21 01:21:40 +08:00
|
|
|
man.files = ../doc/qbittorrent.1
|
|
|
|
}
|
2011-01-15 17:30:41 +08:00
|
|
|
|
2014-04-20 03:47:08 +08:00
|
|
|
man.path = $$MANPREFIX/man1
|
2010-11-21 01:21:40 +08:00
|
|
|
INSTALLS += man
|
|
|
|
|
2015-01-18 20:13:06 +08:00
|
|
|
DIST_PATH = ../dist/unix
|
|
|
|
|
2015-04-05 20:12:36 +08:00
|
|
|
# Systemd Service file
|
|
|
|
nogui:systemd {
|
2017-05-18 21:51:50 +08:00
|
|
|
systemdService.files = $$DIST_PATH/systemd/qbittorrent-nox@.service
|
2021-04-10 16:24:10 +08:00
|
|
|
systemdService.path = $$PREFIX/lib/systemd/system
|
2015-04-05 20:12:36 +08:00
|
|
|
INSTALLS += systemdService
|
|
|
|
}
|
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
# Menu Icon
|
2015-01-18 20:13:06 +08:00
|
|
|
!nogui {
|
2021-04-10 16:24:10 +08:00
|
|
|
desktopEntry.files = $$DIST_PATH/org.qbittorrent.qBittorrent.desktop
|
|
|
|
desktopEntry.path = $$DATADIR/applications
|
|
|
|
INSTALLS += desktopEntry
|
2010-11-21 01:21:40 +08:00
|
|
|
|
2019-01-05 10:01:32 +08:00
|
|
|
appdata.files = $$DIST_PATH/org.qbittorrent.qBittorrent.appdata.xml
|
2021-04-10 16:24:10 +08:00
|
|
|
appdata.path = $$DATADIR/metainfo
|
2015-04-06 00:01:23 +08:00
|
|
|
INSTALLS += appdata
|
|
|
|
|
2021-04-10 16:24:10 +08:00
|
|
|
menuicons.files = $$DIST_PATH/menuicons/*
|
|
|
|
menuicons.path = $$DATADIR/icons/hicolor
|
2020-05-18 23:00:51 +08:00
|
|
|
statusIconScalable.files = $$PWD/src/icons/qbittorrent-tray.svg \
|
|
|
|
$$PWD/src/icons/qbittorrent-tray-dark.svg \
|
|
|
|
$$PWD/src/icons/qbittorrent-tray-light.svg
|
2021-04-10 16:24:10 +08:00
|
|
|
statusIconScalable.path = $$DATADIR/icons/hicolor/scalable/status
|
2015-01-18 20:13:06 +08:00
|
|
|
INSTALLS += \
|
2021-04-10 16:24:10 +08:00
|
|
|
menuicons \
|
2017-07-05 19:16:57 +08:00
|
|
|
statusIconScalable
|
2011-03-19 06:49:28 +08:00
|
|
|
|
2015-01-18 20:13:06 +08:00
|
|
|
pixmap.files = $$DIST_PATH/menuicons/128x128/apps/qbittorrent.png
|
2021-04-10 16:24:10 +08:00
|
|
|
pixmap.path = $$DATADIR/pixmaps
|
2015-01-18 20:13:06 +08:00
|
|
|
INSTALLS += pixmap
|
2010-11-21 01:21:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# INSTALL
|
2021-04-10 16:24:10 +08:00
|
|
|
target.path = $$PREFIX/bin
|
2010-11-21 01:21:40 +08:00
|
|
|
INSTALLS += target
|