qBittorrent/unixconf.pri

64 lines
1.7 KiB
Text
Raw Normal View History

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
# COMPILATION SPECIFIC
!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
!haiku: QMAKE_LFLAGS_APP += -rdynamic
# Man page
nogui {
man.files = ../doc/qbittorrent-nox.1
2018-12-21 13:31:49 +03:00
}
else {
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
INSTALLS += man
DIST_PATH = ../dist/unix
# Systemd Service file
nogui:systemd {
systemdService.files = $$DIST_PATH/systemd/qbittorrent-nox@.service
systemdService.path = $$PREFIX/lib/systemd/system
INSTALLS += systemdService
}
# Menu Icon
!nogui {
desktopEntry.files = $$DIST_PATH/org.qbittorrent.qBittorrent.desktop
desktopEntry.path = $$DATADIR/applications
INSTALLS += desktopEntry
appdata.files = $$DIST_PATH/org.qbittorrent.qBittorrent.appdata.xml
appdata.path = $$DATADIR/metainfo
INSTALLS += appdata
menuicons.files = $$DIST_PATH/menuicons/*
menuicons.path = $$DATADIR/icons/hicolor
statusIconScalable.files = $$PWD/src/icons/qbittorrent-tray.svg \
$$PWD/src/icons/qbittorrent-tray-dark.svg \
$$PWD/src/icons/qbittorrent-tray-light.svg
statusIconScalable.path = $$DATADIR/icons/hicolor/scalable/status
INSTALLS += \
menuicons \
statusIconScalable
pixmap.files = $$DIST_PATH/menuicons/128x128/apps/qbittorrent.png
pixmap.path = $$DATADIR/pixmaps
INSTALLS += pixmap
}
# INSTALL
target.path = $$PREFIX/bin
INSTALLS += target