Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration for unix OS #357

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading