[fix] avoid PRIME offload on NVIDIA primary displays, refs #137

This commit is contained in:
dijunkun
2026-11-04 12:29:34 +08:00
parent 2fab61871e
commit 049cc0c8de
4 changed files with 218 additions and 2 deletions
+11
View File
@@ -233,6 +233,17 @@ function setup_targets()
add_files("apps/desktop/tests/slint_ui_smoke_test.cpp")
add_rules("crossdesk.slint_runtime")
if is_os("linux") and is_arch("x86_64") and is_config("USE_CUDA", true) then
target("linux_cuda_graphics_test")
set_kind("binary")
set_default(false)
add_packages("spdlog")
add_includedirs("apps/desktop/src", "apps/desktop/src/log",
"deps/submodules/minirtc/src/api")
add_files("apps/desktop/tests/linux_cuda_graphics_test.cpp",
"apps/desktop/src/platform/linux/gui/cuda_graphics.cpp")
end
target("slint_stream_render_test")
set_kind("binary")
set_languages("c++20")