FrontendCommon: Add option to inhibit screensaver
This commit is contained in:
@@ -17,6 +17,8 @@ add_library(frontend-common
|
||||
game_settings.h
|
||||
icon.cpp
|
||||
icon.h
|
||||
inhibit_screensaver.cpp
|
||||
inhibit_screensaver.h
|
||||
ini_settings_interface.cpp
|
||||
ini_settings_interface.h
|
||||
input_overlay_ui.cpp
|
||||
@@ -89,6 +91,11 @@ if(USE_EVDEV)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(USE_X11)
|
||||
target_compile_definitions(frontend-common PRIVATE "-DUSE_X11=1")
|
||||
target_include_directories(frontend-common PRIVATE "${X11_INCLUDE_DIR}")
|
||||
endif()
|
||||
|
||||
if(ENABLE_DISCORD_PRESENCE)
|
||||
target_compile_definitions(frontend-common PUBLIC -DWITH_DISCORD_PRESENCE=1)
|
||||
target_link_libraries(frontend-common PRIVATE discord-rpc)
|
||||
|
||||
Reference in New Issue
Block a user