CMakeLists.txt
changeset 13944 b8c8ce11efc7
parent 13934 e7828d3a7576
equal deleted inserted replaced
13943:2eec032757ce 13944:b8c8ce11efc7
   402   ${SDL2_SOURCE_DIR}/src/audio/*.c
   402   ${SDL2_SOURCE_DIR}/src/audio/*.c
   403   ${SDL2_SOURCE_DIR}/src/cpuinfo/*.c
   403   ${SDL2_SOURCE_DIR}/src/cpuinfo/*.c
   404   ${SDL2_SOURCE_DIR}/src/dynapi/*.c
   404   ${SDL2_SOURCE_DIR}/src/dynapi/*.c
   405   ${SDL2_SOURCE_DIR}/src/events/*.c
   405   ${SDL2_SOURCE_DIR}/src/events/*.c
   406   ${SDL2_SOURCE_DIR}/src/file/*.c
   406   ${SDL2_SOURCE_DIR}/src/file/*.c
       
   407   ${SDL2_SOURCE_DIR}/src/haptic/*.c
   407   ${SDL2_SOURCE_DIR}/src/libm/*.c
   408   ${SDL2_SOURCE_DIR}/src/libm/*.c
   408   ${SDL2_SOURCE_DIR}/src/locale/*.c
   409   ${SDL2_SOURCE_DIR}/src/locale/*.c
   409   ${SDL2_SOURCE_DIR}/src/power/*.c
   410   ${SDL2_SOURCE_DIR}/src/power/*.c
   410   ${SDL2_SOURCE_DIR}/src/render/*.c
   411   ${SDL2_SOURCE_DIR}/src/render/*.c
   411   ${SDL2_SOURCE_DIR}/src/render/*/*.c
   412   ${SDL2_SOURCE_DIR}/src/render/*/*.c
   876 if(SDL_HAPTIC)
   877 if(SDL_HAPTIC)
   877   if(NOT SDL_JOYSTICK)
   878   if(NOT SDL_JOYSTICK)
   878     # Haptic requires some private functions from the joystick subsystem.
   879     # Haptic requires some private functions from the joystick subsystem.
   879     message_error("SDL_HAPTIC requires SDL_JOYSTICK, which is not enabled")
   880     message_error("SDL_HAPTIC requires SDL_JOYSTICK, which is not enabled")
   880   endif()
   881   endif()
   881   file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/*.c)
       
   882   set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
       
   883 endif()
   882 endif()
   884 
   883 
   885 
   884 
   886 # TODO: in configure.ac, the test for LOADSO and SDL_DLOPEN is a bit weird:
   885 # TODO: in configure.ac, the test for LOADSO and SDL_DLOPEN is a bit weird:
   887 # if LOADSO is not wanted, SDL_LOADSO_DISABLED is set
   886 # if LOADSO is not wanted, SDL_LOADSO_DISABLED is set