Skip to content

Commit

Permalink
sdlchecks.cmake: remove libusb/hid.c and SDL_hidapi.c additions to srcs
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 8, 2021
1 parent 36067fa commit 1739ef3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmake/sdlchecks.cmake
Expand Up @@ -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}\"")
Expand All @@ -1155,7 +1153,6 @@ macro(CheckHIDAPI)
endif()
endmacro()


# Requires:
# - n/a
macro(CheckRPI)
Expand Down

0 comments on commit 1739ef3

Please sign in to comment.