0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 20:55:34 +00:00
Files
termux-packages/packages/hidapi/libusb-iconv-CMakeLists.txt.patch
Henrik Grimler 7c9d62d84d addpkg(main/hidapi): 0.14.0
hidapi can be used with libusb, or the kernel driver "hidraw" (likely
only relevant for rooted devices), to access HID devices. Goal is to
patch it further and use it together with termux-usb.

Add it now for testing and development purposes.
2025-02-07 20:18:23 +01:00

21 lines
653 B
Diff

--- ./libusb/CMakeLists.txt~ 2025-02-01 13:16:49.669029267 +0000
+++ ./libusb/CMakeLists.txt 2025-02-01 13:18:12.309030989 +0000
@@ -22,7 +22,6 @@
if(HIDAPI_NO_ICONV)
target_compile_definitions(hidapi_libusb PRIVATE NO_ICONV)
else()
- if(NOT ANDROID)
include(CheckCSourceCompiles)
if(NOT CMAKE_VERSION VERSION_LESS 3.11)
@@ -77,9 +76,6 @@
if(HIDAPI_ICONV_CONST)
target_compile_definitions(hidapi_libusb PRIVATE "ICONV_CONST=const")
endif()
- else()
- # On Android Iconv is disabled on the code level anyway, so no issue;
- endif()
endif()
set_target_properties(hidapi_libusb