Use qmake-qt5 if it's available

This commit is contained in:
Mathis Dröge
2024-08-02 00:55:28 +02:00
parent b28f40706d
commit 96492ef231
2 changed files with 12 additions and 6 deletions

View File

@@ -1,7 +1,10 @@
#!/bin/sh
if [ -n "$(which qtchooser)" ]; then
qmake -qt=qt5 app.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
QMAKE_OPTS="app.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug"
if [ -n "$(which qmake-qt5)" ]; then
qmake-qt5 $QMAKE_OPTS
elif [ -n "$(which qtchooser)" ]; then
qmake -qt=qt5 $QMAKE_OPTS
else
qmake app.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
qmake $QMAKE_OPTS
fi
lupdate app.pro -no-obsolete

View File

@@ -1,7 +1,10 @@
#!/bin/sh
if [ -n "$(which qtchooser)" ]; then
qmake -qt=qt5 app.pro -spec linux-g++
QMAKE_OPTS="app.pro -spec linux-g++"
if [ -n "$(which qmake-qt5)" ]; then
qmake-qt5 $QMAKE_OPTS
elif [ -n "$(which qtchooser)" ]; then
qmake -qt=qt5 $QMAKE_OPTS
else
qmake app.pro -spec linux-g++
qmake $QMAKE_OPTS
fi
lupdate app.pro -no-obsolete