Skip to content

Commit

Permalink
pro: support using 'make install' on MSYS2
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Feb 3, 2021
1 parent 52c2676 commit 8484157
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Serial-Studio.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ OBJECTS_DIR = obj

CONFIG += c++11

isEmpty(PREFIX) {
PREFIX = /usr
}

#-------------------------------------------------------------------------------
# Qt configuration
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -67,7 +71,7 @@ QTPLUGIN += qsvg
QMAKE_CXXFLAGS_RELEASE -= /O
QMAKE_CXXFLAGS_RELEASE *= /O2
}

#-------------------------------------------------------------------------------
# Libraries
#-------------------------------------------------------------------------------
Expand All @@ -91,24 +95,19 @@ macx* {
CONFIG += sdk_no_version_check # To avoid warnings with Big Sur
}

target.path = $$PREFIX/bin

linux:!android {
target.path = /usr/bin
icon.path = /usr/share/pixmaps
desktop.path = /usr/share/applications
icon.path = $$PREFIX/share/pixmaps
desktop.path = $$PREFIX/share/applications
icon.files += deploy/linux/serial-studio.png
desktop.files += deploy/linux/serial-studio.desktop

INSTALLS += target desktop icon
}


#-------------------------------------------------------------------------------
# MSYS2 integration
#-------------------------------------------------------------------------------

win32-g++ {
target.path = $$(pkgdir)$$(MINGW_PREFIX)/bin
license.path = $$(pkgdir)$$(MINGW_PREFIX)/share/licenses/$$(_realname)
mingw {
license.path = $$PREFIX/share/licenses/$$TARGET
license.files += LICENSE.md
INSTALLS += target license
}
Expand Down

0 comments on commit 8484157

Please sign in to comment.