CMakeLists.txt
changeset 9731 a8140c580b85
parent 9717 45a632fd9d83
child 9758 cf4d3ee2b37b
equal deleted inserted replaced
9730:3136a8c1cf0b 9731:a8140c580b85
  1029       set(SDL_JOYSTICK_WINMM 1)
  1029       set(SDL_JOYSTICK_WINMM 1)
  1030     endif()
  1030     endif()
  1031     set(HAVE_SDL_JOYSTICK TRUE)
  1031     set(HAVE_SDL_JOYSTICK TRUE)
  1032 
  1032 
  1033     if(SDL_HAPTIC)
  1033     if(SDL_HAPTIC)
  1034       file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/windows/*.c)
  1034       if(HAVE_DINPUT_H OR HAVE_XINPUT_H)
       
  1035         file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/windows/*.c)
       
  1036         if(HAVE_DINPUT_H)
       
  1037           set(SDL_HAPTIC_DINPUT 1)
       
  1038         endif()
       
  1039         if(HAVE_XINPUT_H)
       
  1040           set(SDL_HAPTIC_XINPUT 1)
       
  1041         endif()
       
  1042       else()
       
  1043         file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/dummy/*.c)
       
  1044         set(SDL_HAPTIC_DUMMY 1)
       
  1045       endif()
  1035       set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
  1046       set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
  1036       if(HAVE_DINPUT_H)
       
  1037         set(SDL_HAPTIC_DINPUT 1)
       
  1038       endif()
       
  1039       if(HAVE_XINPUT_H)
       
  1040         set(SDL_HAPTIC_XINPUT 1)
       
  1041       endif()
       
  1042       set(HAVE_SDL_HAPTIC TRUE)
  1047       set(HAVE_SDL_HAPTIC TRUE)
  1043     endif()
  1048     endif()
  1044   endif()
  1049   endif()
  1045 
  1050 
  1046   file(GLOB VERSION_SOURCES ${SDL2_SOURCE_DIR}/src/main/windows/*.rc)
  1051   file(GLOB VERSION_SOURCES ${SDL2_SOURCE_DIR}/src/main/windows/*.rc)