diff --git a/.gitignore b/.gitignore index 1aaaf52..f28b307 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/build-* +build-* +build/ diff --git a/iconconvert/build.sh b/iconconvert/build.sh new file mode 100755 index 0000000..89014f0 --- /dev/null +++ b/iconconvert/build.sh @@ -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 ..