mirror of
https://github.com/sudoxnym/open-hyperion.git
synced 2026-04-14 11:36:31 +00:00
35 lines
No EOL
1.2 KiB
Bash
Executable file
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) |