summaryrefslogtreecommitdiffstats
path: root/packaging/android/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/android/build.sh')
-rw-r--r--packaging/android/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/android/build.sh b/packaging/android/build.sh
index c0d1031ac..9dee8c1a5 100644
--- a/packaging/android/build.sh
+++ b/packaging/android/build.sh
@@ -203,6 +203,12 @@ fi
if [ ! -e libusb-${LIBUSB_VERSION} ] ; then
tar -zxf libusb-${LIBUSB_VERSION}.tar.gz
fi
+if ! grep -q libusb_set_android_open_callback libusb-${LIBUSB_VERSION}/libusb/libusb.h ; then
+ # Patch in our libusb callback
+ pushd libusb-${LIBUSB_VERSION}
+ patch -p1 < $SUBSURFACE_SOURCE/packaging/android/patches/libusb-android.patch
+ popd
+fi
if [ ! -e libusb-${LIBUSB_VERSION}/configure ] ; then
pushd libusb-${LIBUSB_VERSION}
mkdir m4