Merge pull request #31 from 0xFEEDC0DE64/add-build-script

Add build script
This commit was merged in pull request #31.
This commit is contained in:
2024-10-03 11:17:32 +02:00
committed by GitHub
2 changed files with 27 additions and 1 deletions
+2 -1
View File
@@ -1 +1,2 @@
/build-*
build-*
build/
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
if [[ $PWD != *"esp-gui-lib/iconconvert"* ]] || [[ $0 != *"build.sh"* ]]; then
echo "This script must be run from the iconconvert directory"
exit 1
fi
# check if qmake is installed
if ! command -v qmake; then
echo "Qmake is not installed"
exit 1
fi
# check if make is installed
if ! command -v make; then
echo "Make is not installed"
exit 1
fi
mkdir -p build
cd build || exit 1
qmake ..
make
cd ..