mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:17:45 +00:00
Toolchain: Make BuildQemu.sh choose the correct ui library when building on OSX
This commit is contained in:
parent
edae926cb0
commit
727031ac1b
1 changed files with 10 additions and 1 deletions
|
@ -52,11 +52,20 @@ if [ -z "$MAKEJOBS" ]; then
|
||||||
MAKEJOBS=$(nproc)
|
MAKEJOBS=$(nproc)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $(uname) == "Darwin" ]]
|
||||||
|
then
|
||||||
|
UI_LIB=cocoa
|
||||||
|
else
|
||||||
|
UI_LIB=gtk
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo Using $UI_LIB based UI
|
||||||
|
|
||||||
pushd "$DIR/Build/"
|
pushd "$DIR/Build/"
|
||||||
pushd qemu
|
pushd qemu
|
||||||
"$DIR"/Tarballs/$QEMU_VERSION/configure --prefix="$PREFIX" \
|
"$DIR"/Tarballs/$QEMU_VERSION/configure --prefix="$PREFIX" \
|
||||||
--target-list=i386-softmmu \
|
--target-list=i386-softmmu \
|
||||||
--enable-gtk || exit 1
|
--enable-$UI_LIB || exit 1
|
||||||
make -j "$MAKEJOBS" || exit 1
|
make -j "$MAKEJOBS" || exit 1
|
||||||
make install || exit 1
|
make install || exit 1
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue