From 9d61fe5780bf6ca36724f56eefff3a8c5271efa1 Mon Sep 17 00:00:00 2001 From: Alberto Fanjul Date: Mon, 4 Mar 2024 22:14:39 +0100 Subject: [PATCH] configuration for unix OS --- vesc_tool.pro | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/vesc_tool.pro b/vesc_tool.pro index 53ff3b0b5..ad439afc1 100644 --- a/vesc_tool.pro +++ b/vesc_tool.pro @@ -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,) {