protocols: implement pointer-warp-v1 (#11469)

This commit is contained in:
Ikalco 2025-08-29 15:16:40 -05:00 committed by GitHub
parent 05a1c0aa73
commit ea42041f93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 699 additions and 5 deletions

View file

@ -40,12 +40,20 @@ in
buildInputs = hyprland.buildInputs;
preConfigure = ''
substituteInPlace hyprtester/CMakeLists.txt --replace-fail \
"\''${CMAKE_CURRENT_BINARY_DIR}" \
"${placeholder "out"}/bin"
cmake -S . -B .
cmake --build . --target generate-protocol-headers -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
cd hyprtester
'';
postInstall = ''
install pointer-warp -t $out/bin
'';
cmakeBuildType = "Debug";
cmakeFlags = [(cmakeBool "TESTS" true)];