Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions clients/kde-plasma-client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ option(ENABLE_AI_LOGGING "Enable AI logging support" ON)
option(ENABLE_RENDERER_OPENGL "Enable OpenGL renderer backend" ON)
option(ENABLE_RENDERER_VULKAN "Enable Vulkan renderer backend" ON)
option(ENABLE_RENDERER_PROTON "Enable Proton compatibility layer" ON)
option(ENABLE_METRICS "Enable performance metrics and HUD" ON)

# Find Qt6
find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick Widgets OpenGL)
Expand Down Expand Up @@ -89,6 +90,21 @@ set(SOURCES
src/audio/playback_alsa.cpp
)

# Metrics sources
if(ENABLE_METRICS)
list(APPEND SOURCES
src/metrics/frame_rate_counter.c
src/metrics/cpu_monitor.c
src/metrics/memory_monitor.c
src/metrics/gpu_monitor.c
src/metrics/performance_aggregator.cpp
src/metrics/hud_renderer.cpp
src/metrics/performance_logger.cpp
src/metrics/alert_system.cpp
src/metrics/metrics_manager.cpp
)
endif()

# Renderer sources (C)
if(ENABLE_RENDERER_OPENGL)
list(APPEND SOURCES
Expand Down Expand Up @@ -247,6 +263,12 @@ if(ENABLE_AI_LOGGING)
target_compile_definitions(rootstream-kde-client PRIVATE ENABLE_AI_LOGGING)
endif()

# Metrics support
if(ENABLE_METRICS)
target_compile_definitions(rootstream-kde-client PRIVATE ENABLE_METRICS)
target_include_directories(rootstream-kde-client PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/metrics)
endif()

# Installation
install(TARGETS rootstream-kde-client RUNTIME DESTINATION bin)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/rootstream-kde-client.desktop
Expand Down
Loading
Loading