CMakeLists.txt
changeset 9980 224187458d03
parent 9979 e3d651c5fe31
child 9981 a443c97eb294
equal deleted inserted replaced
9979:e3d651c5fe31 9980:224187458d03
   824     endif()
   824     endif()
   825   endif()
   825   endif()
   826 
   826 
   827   if(SDL_JOYSTICK)
   827   if(SDL_JOYSTICK)
   828     CheckUSBHID()   # seems to be BSD specific - limit the test to BSD only?
   828     CheckUSBHID()   # seems to be BSD specific - limit the test to BSD only?
   829     if(LINUX)
   829     if(LINUX AND NOT ANDROID)
   830       set(SDL_JOYSTICK_LINUX 1)
   830       set(SDL_JOYSTICK_LINUX 1)
   831       file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c)
   831       file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c)
   832       set(SOURCE_FILES ${SOURCE_FILES} ${JOYSTICK_SOURCES})
   832       set(SOURCE_FILES ${SOURCE_FILES} ${JOYSTICK_SOURCES})
   833       set(HAVE_SDL_JOYSTICK TRUE)
   833       set(HAVE_SDL_JOYSTICK TRUE)
   834     endif()
   834     endif()