mirror of
https://github.com/Genymobile/scrcpy
synced 2024-11-17 03:25:38 +00:00
8d583d36e2
The prebuilt dependencies are specific to the client app (not the server). This also avoids to reference the parent directory (../) from app/meson.build.
33 lines
845 B
Bash
Executable File
33 lines
845 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
DIR=$(dirname ${BASH_SOURCE[0]})
|
|
cd "$DIR"
|
|
. common
|
|
mkdir -p "$PREBUILT_DATA_DIR"
|
|
cd "$PREBUILT_DATA_DIR"
|
|
|
|
DEP_DIR=SDL2-2.0.20
|
|
|
|
FILENAME=SDL2-devel-2.0.20-mingw.tar.gz
|
|
SHA256SUM=38094d82a857d6c62352e5c5cdec74948c5b4d25c59cbd298d6d233568976bd1
|
|
|
|
if [[ -d "$DEP_DIR" ]]
|
|
then
|
|
echo "$DEP_DIR" found
|
|
exit 0
|
|
fi
|
|
|
|
get_file "https://libsdl.org/release/$FILENAME" "$FILENAME" "$SHA256SUM"
|
|
|
|
mkdir "$DEP_DIR"
|
|
cd "$DEP_DIR"
|
|
|
|
TAR_PREFIX="$DEP_DIR" # root directory inside the tar has the same name
|
|
tar xf "../$FILENAME" --strip-components=1 \
|
|
"$TAR_PREFIX"/i686-w64-mingw32/bin/SDL2.dll \
|
|
"$TAR_PREFIX"/i686-w64-mingw32/include/ \
|
|
"$TAR_PREFIX"/i686-w64-mingw32/lib/ \
|
|
"$TAR_PREFIX"/x86_64-w64-mingw32/bin/SDL2.dll \
|
|
"$TAR_PREFIX"/x86_64-w64-mingw32/include/ \
|
|
"$TAR_PREFIX"/x86_64-w64-mingw32/lib/ \
|