mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
Toolchain: Make BuildQemu.sh choose the correct ui library when building on OSX
This commit is contained in:
parent
edae926cb0
commit
727031ac1b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue