Skip to content

Commit

Permalink
cmake: add openbsd wscons sources to build, if supported
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 22, 2023
1 parent 86d77bb commit d1def7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,13 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
sdl_sources("${SDL3_SOURCE_DIR}/src/core/freebsd/SDL_evdev_kbd_freebsd.c")
endif()

if(HAVE_INPUT_WSCONS)
sdl_sources(
"${SDL3_SOURCE_DIR}/src/core/openbsd/SDL_wscons_kbd.c"
"${SDL3_SOURCE_DIR}/src/core/openbsd/SDL_wscons_mouse.c"
)
endif()

# Always compiled for Linux, unconditionally:
sdl_sources(
"${SDL3_SOURCE_DIR}/src/core/linux/SDL_evdev_capabilities.c"
Expand Down

0 comments on commit d1def7f

Please sign in to comment.