mirror of https://github.com/encounter/SDL.git
cmake: Fix building with -DSDL_SENSOR=Off
This commit is contained in:
parent
d955d63b03
commit
718e1fb8b1
|
@ -409,6 +409,7 @@ file(GLOB SOURCE_FILES
|
||||||
${SDL2_SOURCE_DIR}/src/power/*.c
|
${SDL2_SOURCE_DIR}/src/power/*.c
|
||||||
${SDL2_SOURCE_DIR}/src/render/*.c
|
${SDL2_SOURCE_DIR}/src/render/*.c
|
||||||
${SDL2_SOURCE_DIR}/src/render/*/*.c
|
${SDL2_SOURCE_DIR}/src/render/*/*.c
|
||||||
|
${SDL2_SOURCE_DIR}/src/sensor/*.c
|
||||||
${SDL2_SOURCE_DIR}/src/stdlib/*.c
|
${SDL2_SOURCE_DIR}/src/stdlib/*.c
|
||||||
${SDL2_SOURCE_DIR}/src/thread/*.c
|
${SDL2_SOURCE_DIR}/src/thread/*.c
|
||||||
${SDL2_SOURCE_DIR}/src/timer/*.c
|
${SDL2_SOURCE_DIR}/src/timer/*.c
|
||||||
|
@ -880,10 +881,6 @@ if(SDL_HAPTIC)
|
||||||
file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/*.c)
|
file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/*.c)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
|
||||||
endif()
|
endif()
|
||||||
if(SDL_SENSOR)
|
|
||||||
file(GLOB SENSOR_SOURCES ${SDL2_SOURCE_DIR}/src/sensor/*.c)
|
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${SENSOR_SOURCES})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# TODO: in configure.ac, the test for LOADSO and SDL_DLOPEN is a bit weird:
|
# TODO: in configure.ac, the test for LOADSO and SDL_DLOPEN is a bit weird:
|
||||||
|
|
Loading…
Reference in New Issue