How should I compile qubes-gui-daemon and qubes-gui-agent-linux?

So, I’m trying to give support to high resolution scrolling in touchpads to have smooth scrolling like in macbooks or smartphones (Apple Magic Trackpad support).

I’ve asked in the github issue Support for high resolution scrolling · Issue #7942 · QubesOS/qubes-issues · GitHub but received no response.

I’ve got almost all my code finished but I don’t know how should I compile this.
Am I expected to use qubes-builderv2? When testing my qubes-gui-daemon, am I expected to test it in another computer dedicated to dev testing? Or is there a way to do it in my Qubes OS computer without breaking anything?

Thanks in advance

You can build in a VM with make, after figuring out dependencies, and then copy the binary to dom0 and test it there. Something goes wrong, it should be recoverable by putting back the original binary or reinstalling the official rpm. Or test on a separate machine also running Qubes.

You could also use qubes-builder, which will produce RPMs you can install/remove. Patch the source with your change after it’s been downloaded and then continue with the builder process. There will be a lot to learn here, but if you’re contributing to Qubes then it’s not wasted time.