forked from qbittorrent/qBittorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unixconf.pri
63 lines (52 loc) · 1.73 KB
/
unixconf.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# 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)
}
else {
include(conf.pri)
}
# COMPILATION SPECIFIC
!nogui:dbus: QT += dbus
QMAKE_CXXFLAGS += -Wall -Wextra -Wpedantic -Wformat-security
!haiku: QMAKE_LFLAGS_APP += -rdynamic
# Man page
nogui {
man.files = ../doc/qbittorrent-nox.1
}
else {
man.files = ../doc/qbittorrent.1
}
man.path = $$MANPREFIX/man1
INSTALLS += man
DIST_PATH = ../dist/unix
# Systemd Service file
nogui:systemd {
systemdService.files = $$DIST_PATH/systemd/[email protected]
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