diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-21 02:49:02 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-21 02:57:06 +0200 |
commit | de019711d19f566aee16dd083aba297b28e0854b (patch) | |
tree | 39f5d6a18f9068c1b15c379829acd99c47c8a1f9 /build.sh | |
parent | 585382cf18f566d7555922e8966701ba297a5a4a (diff) |
Support wlroots screen capture, which doesn't require kms root access and also captures cursor
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -9,10 +9,10 @@ CXX=${CXX:-g++} opts="-O2 -g0 -DNDEBUG -Wall -Wextra" [ -n "$DEBUG" ] && opts="-O0 -g3 -Wall -Wextra"; -#build_wayland_protocol() { -# wayland-scanner private-code external/wlr-export-dmabuf-unstable-v1.xml external/wlr-export-dmabuf-unstable-v1-protocol.c -# wayland-scanner client-header external/wlr-export-dmabuf-unstable-v1.xml external/wlr-export-dmabuf-unstable-v1-client-protocol.h -#} +build_wayland_protocol() { + wayland-scanner private-code external/wlr-export-dmabuf-unstable-v1.xml external/wlr-export-dmabuf-unstable-v1-protocol.c + wayland-scanner client-header external/wlr-export-dmabuf-unstable-v1.xml external/wlr-export-dmabuf-unstable-v1-client-protocol.h +} build_gsr_kms_server() { # TODO: -fcf-protection=full, not supported on arm @@ -45,14 +45,14 @@ build_gsr() { $CC -c src/cursor.c $opts $includes $CC -c src/utils.c $opts $includes $CC -c src/library_loader.c $opts $includes - #$CC -c external/wlr-export-dmabuf-unstable-v1-protocol.c $opts $includes + $CC -c external/wlr-export-dmabuf-unstable-v1-protocol.c $opts $includes $CXX -c src/sound.cpp $opts $includes $CXX -c src/main.cpp $opts $includes $CXX -o gpu-screen-recorder capture.o nvfbc.o kms_client.o egl.o cuda.o xnvctrl.o overclock.o window_texture.o shader.o \ - color_conversion.o cursor.o utils.o library_loader.o xcomposite_cuda.o xcomposite_vaapi.o kms_vaapi.o kms_cuda.o sound.o main.o $libs $opts + color_conversion.o cursor.o utils.o library_loader.o xcomposite_cuda.o xcomposite_vaapi.o kms_vaapi.o kms_cuda.o wlr-export-dmabuf-unstable-v1-protocol.o sound.o main.o $libs $opts } -#build_wayland_protocol +build_wayland_protocol build_gsr_kms_server build_gsr echo "Successfully built gpu-screen-recorder" |