2021-01-11 23:38:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------#
|
|
|
|
|
# OpenRGB E1.31 Receiver Plugin Build Script #
|
|
|
|
|
#-----------------------------------------------------------------------#
|
|
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
set -e
|
|
|
|
|
|
2025-07-23 01:42:55 +00:00
|
|
|
#-----------------------------------------------------------------------#
|
|
|
|
|
# Setup environment #
|
|
|
|
|
#-----------------------------------------------------------------------#
|
|
|
|
|
if [ "$1" = "qt6" ]; then
|
|
|
|
|
export QT_SELECT=qt6
|
|
|
|
|
else
|
|
|
|
|
export QT_SELECT=qt5
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$QT_SELECT" = "qt6" ]; then
|
|
|
|
|
export QMAKE=qmake6
|
|
|
|
|
else
|
|
|
|
|
export QMAKE=qmake
|
|
|
|
|
fi
|
|
|
|
|
|
2021-01-11 23:38:17 +00:00
|
|
|
#-----------------------------------------------------------------------#
|
|
|
|
|
# Configure build files with qmake #
|
|
|
|
|
# we need to explicitly set the install prefix, as qmake's default is #
|
|
|
|
|
# /usr/local for some reason... #
|
|
|
|
|
#-----------------------------------------------------------------------#
|
2025-07-23 01:42:55 +00:00
|
|
|
$QMAKE .
|
2021-01-11 23:38:17 +00:00
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------#
|
|
|
|
|
# Build project and install files into AppDir #
|
|
|
|
|
#-----------------------------------------------------------------------#
|
|
|
|
|
make -j$(nproc)
|