Skip to content

Commit

Permalink
fix: brew manual build of libevdev for inputtino
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Jun 15, 2024
1 parent 3e93582 commit 70a94cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmake/compile_definitions/linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ endif()
if(${SUNSHINE_USE_LEGACY_INPUT}) # TODO: Remove this legacy option after the next stable release
list(APPEND PLATFORM_TARGET_FILES "${CMAKE_SOURCE_DIR}/src/platform/linux/input/legacy_input.cpp")
else()
if(EVDEV_INCLUDE_DIR AND EVDEV_LIBRARY)
# These two needs to be set before adding the inputtino subdirectory in order for them to be picked up
set(LIBEVDEV_CUSTOM_INCLUDE_DIR ${EVDEV_INCLUDE_DIR})
set(LIBEVDEV_CUSTOM_LIBRARY ${EVDEV_LIBRARY})
endif ()
add_subdirectory("${CMAKE_SOURCE_DIR}/third-party/inputtino")
list(APPEND SUNSHINE_EXTERNAL_LIBRARIES inputtino::libinputtino)
file(GLOB_RECURSE INPUTTINO_SOURCES
Expand Down
4 changes: 4 additions & 0 deletions packaging/sunshine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def install
-DSUNSHINE_ENABLE_TRAY=OFF
-DTESTS_ENABLE_PYTHON_TESTS=OFF
]
# On Linux we have to first build the evdev target manually since the library is not available on homebrew
on_linux do
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "--target", "libevdev"
end
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, *args

cd "build" do
Expand Down
2 changes: 1 addition & 1 deletion third-party/inputtino
Submodule inputtino updated 1 files
+16 −11 CMakeLists.txt

0 comments on commit 70a94cd

Please sign in to comment.