mirror of
https://github.com/Genymobile/scrcpy
synced 2024-11-17 03:25:38 +00:00
a20615066d
In theory, include/ might be slightly different for win32 and win64 builds. Use each one separately to simplify.
34 lines
866 B
Bash
Executable File
34 lines
866 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=libusb-1.0.26
|
|
|
|
FILENAME=libusb-1.0.26-binaries.7z
|
|
SHA256SUM=9c242696342dbde9cdc47239391f71833939bf9f7aa2bbb28cdaabe890465ec5
|
|
|
|
if [[ -d "$DEP_DIR" ]]
|
|
then
|
|
echo "$DEP_DIR" found
|
|
exit 0
|
|
fi
|
|
|
|
get_file "https://github.com/libusb/libusb/releases/download/v1.0.26/$FILENAME" "$FILENAME" "$SHA256SUM"
|
|
|
|
mkdir "$DEP_DIR"
|
|
cd "$DEP_DIR"
|
|
|
|
7z x "../$FILENAME" \
|
|
libusb-1.0.26-binaries/libusb-MinGW-Win32/bin/msys-usb-1.0.dll \
|
|
libusb-1.0.26-binaries/libusb-MinGW-Win32/include/ \
|
|
libusb-1.0.26-binaries/libusb-MinGW-x64/bin/msys-usb-1.0.dll \
|
|
libusb-1.0.26-binaries/libusb-MinGW-x64/include/
|
|
|
|
mv libusb-1.0.26-binaries/libusb-MinGW-Win32 .
|
|
mv libusb-1.0.26-binaries/libusb-MinGW-x64 .
|
|
rm -rf libusb-1.0.26-binaries
|