mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
linux: Use D-Bus to inhibit screensaver
This commit is contained in:
@ -43,6 +43,13 @@ if ((DEFINED CMAKE_ANDROID_ARCH_ABI AND CMAKE_ANDROID_ARCH_ABI MATCHES "x86|x86_
|
||||
target_link_libraries(uicommon PRIVATE bdisasm)
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE AND NOT ANDROID AND ENABLE_QT)
|
||||
find_package(Qt6 REQUIRED COMPONENTS DBus)
|
||||
target_sources(uicommon PRIVATE DBusUtils.cpp)
|
||||
target_compile_definitions(uicommon PRIVATE -DHAVE_QTDBUS=1)
|
||||
target_link_libraries(uicommon PUBLIC Qt6::DBus)
|
||||
endif()
|
||||
|
||||
if(X11_FOUND)
|
||||
target_sources(uicommon PRIVATE X11Utils.cpp)
|
||||
target_link_libraries(uicommon PUBLIC PkgConfig::XRANDR PkgConfig::X11)
|
||||
|
Reference in New Issue
Block a user