cmake: fold HAVE_INPUT_EVENTS into HAVE_LINUX_INPUT_H
parent
5e869d1b35
commit
6cf84e2c5b
|
@ -1088,8 +1088,6 @@ if(SDL_LIBC)
|
||||||
cmake_pop_check_state()
|
cmake_pop_check_state()
|
||||||
|
|
||||||
if(NOT WINDOWS)
|
if(NOT WINDOWS)
|
||||||
check_include_file(linux/input.h HAVE_LINUX_INPUT_H)
|
|
||||||
|
|
||||||
check_symbol_exists(getpagesize "unistd.h" HAVE_GETPAGESIZE)
|
check_symbol_exists(getpagesize "unistd.h" HAVE_GETPAGESIZE)
|
||||||
check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION)
|
check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION)
|
||||||
check_symbol_exists(setjmp "setjmp.h" HAVE_SETJMP)
|
check_symbol_exists(setjmp "setjmp.h" HAVE_SETJMP)
|
||||||
|
@ -1488,7 +1486,7 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
|
||||||
#ifndef EVIOCGNAME
|
#ifndef EVIOCGNAME
|
||||||
#error EVIOCGNAME() ioctl not available
|
#error EVIOCGNAME() ioctl not available
|
||||||
#endif
|
#endif
|
||||||
int main(int argc, char** argv) { return 0; }" HAVE_INPUT_EVENTS)
|
int main(int argc, char** argv) { return 0; }" HAVE_LINUX_INPUT_H)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LINUX)
|
if(LINUX)
|
||||||
|
@ -1525,11 +1523,11 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
|
||||||
}" HAVE_INPUT_WSCONS)
|
}" HAVE_INPUT_WSCONS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_INPUT_EVENTS)
|
if(HAVE_LINUX_INPUT_H)
|
||||||
set(SDL_INPUT_LINUXEV 1)
|
set(SDL_INPUT_LINUXEV 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(SDL_HAPTIC AND HAVE_INPUT_EVENTS)
|
if(SDL_HAPTIC AND HAVE_LINUX_INPUT_H)
|
||||||
set(SDL_HAPTIC_LINUX 1)
|
set(SDL_HAPTIC_LINUX 1)
|
||||||
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/haptic/linux/*.c")
|
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/haptic/linux/*.c")
|
||||||
set(HAVE_SDL_HAPTIC TRUE)
|
set(HAVE_SDL_HAPTIC TRUE)
|
||||||
|
@ -1617,7 +1615,7 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
|
||||||
sdl_sources("${SDL3_SOURCE_DIR}/src/core/linux/SDL_udev.c")
|
sdl_sources("${SDL3_SOURCE_DIR}/src/core/linux/SDL_udev.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_INPUT_EVENTS)
|
if(HAVE_LINUX_INPUT_H)
|
||||||
sdl_sources(
|
sdl_sources(
|
||||||
"${SDL3_SOURCE_DIR}/src/core/linux/SDL_evdev.c"
|
"${SDL3_SOURCE_DIR}/src/core/linux/SDL_evdev.c"
|
||||||
"${SDL3_SOURCE_DIR}/src/core/linux/SDL_evdev_kbd.c"
|
"${SDL3_SOURCE_DIR}/src/core/linux/SDL_evdev_kbd.c"
|
||||||
|
|
Loading…
Reference in New Issue