blob: 029fc66f8303b5bbf0fbf677d31a6138abc78fa3 (
plain)
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
|
###################### DESKTOP INTEGRATION ##################################
unix {
desktop_entry.files = scidavis.desktop
desktop_entry.path = "$$INSTALLBASE/share/applications"
mime_package.files = scidavis.xml
mime_package.path = "$$INSTALLBASE/share/mime/packages"
#deprecated
mime_link.files = x-sciprj.desktop
mime_link.path = "$$INSTALLBASE/share/mimelnk/application"
contains(INSTALLS, icons) {
# scalable icon
icons.files = icons/scidavis.svg
icons.path = "$$INSTALLBASE/share/icons/hicolor/scalable/apps"
# hicolor icons for different resolutions
resolutions = 16 22 32 48 64 128
for(res, resolutions) {
eval(icon_hicolor_$${res}.files = icons/hicolor-$${res}/scidavis.png)
eval(icon_hicolor_$${res}.path = "$$INSTALLBASE/share/icons/hicolor/$${res}x$${res}/apps")
INSTALLS += icon_hicolor_$${res}
}
# locolor icons for different resolutions
resolutions = 16 22 32
for(res, resolutions) {
eval(icon_locolor_$${res}.files = icons/locolor-$${res}/scidavis.png)
eval(icon_locolor_$${res}.path = "$$INSTALLBASE/share/icons/locolor/$${res}x$${res}/apps")
INSTALLS += icon_locolor_$${res}
}
}
}
|