qBittorrent/unixconf.pri

64 lines
1.7 KiB
Plaintext
Raw Normal View History

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
# COMPILATION SPECIFIC
!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
!haiku: QMAKE_LFLAGS_APP += -rdynamic
# Man page
nogui {
man.files = ../doc/qbittorrent-nox.1
2018-12-21 18:31:49 +08:00
}
else {
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
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