windows binaries: skip building libusb if already done

This commit is contained in:
SomberNight 2019-12-18 18:23:00 +01:00
parent eca769c4ca
commit 9834d6cd94
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -77,6 +77,10 @@ wine "$CACHEDIR/$NSIS_FILENAME" /S
info "Compiling libusb..."
(
cd "$CACHEDIR"
if [ -f "libusb/libusb/.libs/libusb-1.0.dll" ]; then
info "libusb-1.0.dll already built, skipping"
exit 0
fi
rm -rf libusb
mkdir libusb
cd libusb