From 727031ac1b4052186333b633c81e80b90919aad6 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Mon, 6 Apr 2020 16:55:25 -0700 Subject: [PATCH] Toolchain: Make BuildQemu.sh choose the correct ui library when building on OSX --- Toolchain/BuildQemu.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Toolchain/BuildQemu.sh b/Toolchain/BuildQemu.sh index 20d0deeece..d6c5598ae2 100755 --- a/Toolchain/BuildQemu.sh +++ b/Toolchain/BuildQemu.sh @@ -52,11 +52,20 @@ if [ -z "$MAKEJOBS" ]; then MAKEJOBS=$(nproc) fi +if [[ $(uname) == "Darwin" ]] +then + UI_LIB=cocoa +else + UI_LIB=gtk +fi + +echo Using $UI_LIB based UI + pushd "$DIR/Build/" pushd qemu "$DIR"/Tarballs/$QEMU_VERSION/configure --prefix="$PREFIX" \ --target-list=i386-softmmu \ - --enable-gtk || exit 1 + --enable-$UI_LIB || exit 1 make -j "$MAKEJOBS" || exit 1 make install || exit 1 popd