open-hyperion/scripts/build-plugin.sh
2025-07-22 20:50:42 -05:00

35 lines
No EOL
1.2 KiB
Bash
Executable file

#!/bin/bash
#-----------------------------------------------------------------------#
# OpenRGB E1.31 Receiver Plugin Build Script #
#-----------------------------------------------------------------------#
set -x
set -e
#-----------------------------------------------------------------------#
# 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
#-----------------------------------------------------------------------#
# Configure build files with qmake #
# we need to explicitly set the install prefix, as qmake's default is #
# /usr/local for some reason... #
#-----------------------------------------------------------------------#
$QMAKE .
#-----------------------------------------------------------------------#
# Build project and install files into AppDir #
#-----------------------------------------------------------------------#
make -j$(nproc)