(Linux) Added checks that SDL is configured with PipeWire support when building the AppImage.

This commit is contained in:
Leon Styhre 2023-01-31 18:44:45 +01:00
parent 960677d9b1
commit f5b4356444
2 changed files with 42 additions and 28 deletions

View file

@ -42,13 +42,13 @@ fi
chmod a+x linuxdeploy-x86_64.AppImage
if [ ! -f external/SDL/build/${SDL_SHARED_LIBRARY} ]; then
echo
echo "Building the SDL library..."
cd external
rm -rf SDL
git clone https://github.com/libsdl-org/SDL.git
cd SDL
git checkout $SDL_RELEASE_TAG
echo
echo "Building the SDL library..."
cd external
rm -rf SDL
git clone https://github.com/libsdl-org/SDL.git
cd SDL
git checkout $SDL_RELEASE_TAG
# Temporary workaround until a proper fix has been implemented in the SDL library:
# https://github.com/libsdl-org/SDL/issues/7160
@ -81,14 +81,21 @@ index 0809706c2..bbabfcaa7 100644
if (_this && _this->StartTextInput) {
EOF
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -S .. -B .
make -j${JOBS}
cd ../../..
else
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -S .. -B .
if [ $(grep PKG_PIPEWIRE_VERSION:INTERNAL= CMakeCache.txt) = "PKG_PIPEWIRE_VERSION:INTERNAL=" ]; then
echo
echo -e "The SDL library has already been built, skipping this step\n"
echo -e "The SDL library is not configured with PipeWire support, aborting."
exit
fi
make -j${JOBS}
cd ../../..
else
echo
echo -e "The SDL library has already been built, skipping this step\n"
fi
rm -rf ./AppDir

View file

@ -38,13 +38,13 @@ fi
chmod a+x linuxdeploy-x86_64.AppImage
if [ ! -f external/SDL/build/${SDL_SHARED_LIBRARY} ]; then
echo
echo "Building the SDL library..."
cd external
rm -rf SDL
git clone https://github.com/libsdl-org/SDL.git
cd SDL
git checkout $SDL_RELEASE_TAG
echo
echo "Building the SDL library..."
cd external
rm -rf SDL
git clone https://github.com/libsdl-org/SDL.git
cd SDL
git checkout $SDL_RELEASE_TAG
# Temporary workaround until a proper fix has been implemented in the SDL library:
# https://github.com/libsdl-org/SDL/issues/7160
@ -77,14 +77,21 @@ index 0809706c2..bbabfcaa7 100644
if (_this && _this->StartTextInput) {
EOF
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -S .. -B .
make -j${JOBS}
cd ../../..
else
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -S .. -B .
if [ $(grep PKG_PIPEWIRE_VERSION:INTERNAL= CMakeCache.txt) = "PKG_PIPEWIRE_VERSION:INTERNAL=" ]; then
echo
echo -e "The SDL library has already been built, skipping this step\n"
echo -e "The SDL library is not configured with PipeWire support, aborting."
exit
fi
make -j${JOBS}
cd ../../..
else
echo
echo -e "The SDL library has already been built, skipping this step\n"
fi
rm -rf ./AppDir