mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
feat(linux): add thread priority support for POSIX systems (#4885)
This commit is contained in:
@@ -168,18 +168,24 @@ if(X11_FOUND)
|
||||
"${CMAKE_SOURCE_DIR}/src/platform/linux/x11grab.cpp")
|
||||
endif()
|
||||
|
||||
# GIO
|
||||
pkg_check_modules(GIO gio-2.0 gio-unix-2.0 REQUIRED)
|
||||
if(GIO_FOUND)
|
||||
include_directories(SYSTEM ${GIO_INCLUDE_DIRS})
|
||||
list(APPEND PLATFORM_LIBRARIES ${GIO_LIBRARIES})
|
||||
endif()
|
||||
|
||||
# XDG portal
|
||||
if(${SUNSHINE_ENABLE_PORTAL})
|
||||
pkg_check_modules(GIO gio-2.0 gio-unix-2.0 REQUIRED)
|
||||
pkg_check_modules(PIPEWIRE libpipewire-0.3 REQUIRED)
|
||||
else()
|
||||
set(GIO_FOUND OFF)
|
||||
set(PIPEWIRE_FOUND OFF)
|
||||
endif()
|
||||
if(PIPEWIRE_FOUND)
|
||||
|
||||
if(PIPEWIRE_FOUND AND GIO_FOUND)
|
||||
add_compile_definitions(SUNSHINE_BUILD_PORTAL)
|
||||
include_directories(SYSTEM ${GIO_INCLUDE_DIRS} ${PIPEWIRE_INCLUDE_DIRS})
|
||||
list(APPEND PLATFORM_LIBRARIES ${GIO_LIBRARIES} ${PIPEWIRE_LIBRARIES})
|
||||
include_directories(SYSTEM ${PIPEWIRE_INCLUDE_DIRS})
|
||||
list(APPEND PLATFORM_LIBRARIES ${PIPEWIRE_LIBRARIES})
|
||||
list(APPEND PLATFORM_TARGET_FILES
|
||||
"${CMAKE_SOURCE_DIR}/src/platform/linux/portalgrab.cpp")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user