sdlchecks.cmake: remove libusb/hid.c and SDL_hidapi.c additions to srcs

This commit is contained in:
Ozkan Sezer 2021-11-08 22:00:02 +03:00
parent 36067fa129
commit 1739ef3ee1
1 changed files with 0 additions and 3 deletions

View File

@ -1142,10 +1142,8 @@ macro(CheckHIDAPI)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBUSB_CFLAGS} \"-I${SDL2_SOURCE_DIR}/src/hidapi/hidapi\"")
if(NOT HIDAPI_SKIP_LIBUSB)
if(HIDAPI_ONLY_LIBUSB)
set(SOURCE_FILES ${SOURCE_FILES} ${SDL2_SOURCE_DIR}/src/hidapi/libusb/hid.c)
list(APPEND EXTRA_LIBS ${LIBUSB_LIBS})
else()
set(SOURCE_FILES ${SOURCE_FILES} ${SDL2_SOURCE_DIR}/src/hidapi/SDL_hidapi.c)
# libusb is loaded dynamically, so don't add it to EXTRA_LIBS
FindLibraryAndSONAME("usb-1.0")
set(SDL_LIBUSB_DYNAMIC "\"${USB_LIB_SONAME}\"")
@ -1155,7 +1153,6 @@ macro(CheckHIDAPI)
endif()
endmacro()
# Requires:
# - n/a
macro(CheckRPI)