mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
add a reasonable default installation path
modifiable in qmake with the PREFIX argument i.e. qmake PREFIX=/usr
This commit is contained in:
parent
14eb302c3d
commit
536e86f919
1 changed files with 18 additions and 9 deletions
|
@ -1,12 +1,3 @@
|
||||||
#-------------------------------------------------
|
|
||||||
#
|
|
||||||
# Project created by QtCreator 2016-12-28T18:23:35
|
|
||||||
#
|
|
||||||
#-------------------------------------------------
|
|
||||||
|
|
||||||
message(----)
|
|
||||||
|
|
||||||
# define project shit
|
|
||||||
QT += widgets core gui network multimedia svg concurrent
|
QT += widgets core gui network multimedia svg concurrent
|
||||||
CONFIG += communi
|
CONFIG += communi
|
||||||
COMMUNI += core model util
|
COMMUNI += core model util
|
||||||
|
@ -404,3 +395,21 @@ FORMS +=
|
||||||
#win32 {
|
#win32 {
|
||||||
# DEFINES += NOMINMAX
|
# DEFINES += NOMINMAX
|
||||||
#}
|
#}
|
||||||
|
|
||||||
|
linux:isEmpty(PREFIX) {
|
||||||
|
message("Using default installation prefix (/usr/local). Change PREFIX in qmake command")
|
||||||
|
PREFIX = /usr/local
|
||||||
|
}
|
||||||
|
|
||||||
|
linux {
|
||||||
|
desktop.files = resources/chatterino.desktop
|
||||||
|
desktop.path = $$PREFIX/share/applications
|
||||||
|
|
||||||
|
# TODO: fix icon
|
||||||
|
# icon.files = resources/icon.png
|
||||||
|
# icon.path = $$PREFIX/share/icons/hicolor/256x256/chatterino.png
|
||||||
|
|
||||||
|
target.path = $$PREFIX/bin
|
||||||
|
|
||||||
|
INSTALLS += desktop target
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue