mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build-system/android: remove libusb at QTest
We no longer use libusb to access USB devices on Android, therefore there's no point including libusb in our build. Also, we have never even attempted to run the tests on Android, so let's not even pretend to support building them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d3e495efd0
commit
0fe02af0e8
4 changed files with 13 additions and 128 deletions
|
@ -8,7 +8,6 @@
|
|||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <libusb.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <zip.h>
|
||||
|
@ -38,13 +37,6 @@ double system_divelist_default_font_size = -1;
|
|||
int get_usb_fd(uint16_t idVendor, uint16_t idProduct);
|
||||
void subsurface_OS_pref_setup(void)
|
||||
{
|
||||
// Abusing this function to get a decent place where we can wire in
|
||||
// our open callback into libusb
|
||||
#ifdef libusb_android_open_callback_func
|
||||
libusb_set_android_open_callback(get_usb_fd);
|
||||
#elif __ANDROID__
|
||||
#error we need libusb_android_open_callback
|
||||
#endif
|
||||
}
|
||||
|
||||
bool subsurface_ignore_font(const char *font)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue