Skip to content

Commit

Permalink
configuration for unix OS
Browse files Browse the repository at this point in the history
  • Loading branch information
albfan committed Mar 4, 2024
1 parent f3c6fe5 commit 9d61fe5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions vesc_tool.pro
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,35 @@ ios {
CONFIG -= warn_on
QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 1,2
}

unix {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
BINDIR = $$PREFIX/bin
DATADIR = $$PREFIX/share
CONFDIR = /etc
isEmpty(VARDIR) {
VARDIR = /var/lib/$${TARGET}
}

INSTALLS += target config desktop icon32 vardir

target.path = $$BINDIR

config.path = $$CONFDIR
config.files += $${TARGET}.conf

desktop.path = $$DATADIR/applications
desktop.files += $${TARGET}.desktop

icon32.path = $$DATADIR/icons/hicolor/32x32/apps
icon32.files += ./data/32x32/$${TARGET}.png

vardir.path = $$VARDIR
vardir.commands = true
}

CONFIG -= warn_on

contains(ANDROID_TARGET_ARCH,) {
Expand Down

0 comments on commit 9d61fe5

Please sign in to comment.