Skip to content

Comments

Generate dynamic protocol headers#239

Merged
flacjacket merged 7 commits intoflacjacket:mainfrom
RFCreate:dynamic-headers
Sep 17, 2025
Merged

Generate dynamic protocol headers#239
flacjacket merged 7 commits intoflacjacket:mainfrom
RFCreate:dynamic-headers

Conversation

@RFCreate
Copy link
Contributor

This PR adds the XML protocol files to the repository so that when building from source, the header files are created dynamically. This has the benefit that the generated headers are specifically created for the wayland-scanner and wayland-protocols versions installed on the targeted system.

@RFCreate RFCreate force-pushed the dynamic-headers branch 2 times, most recently from 27ab854 to 14b1c4f Compare August 3, 2025 19:41
Copy link
Owner

@flacjacket flacjacket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great idea! Just one note on the xkbcommon version constraint.

pyproject.toml Outdated
"wheel",
"cffi>=1.12.0; platform_python_implementation != 'PyPy'",
"pywayland>=0.4.14",
"xkbcommon<1.1",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I don't think pywlroots has a requirement on what version of xkbcommon is installed, but it needs to be the "right" version depending on the version of libxkbcommon is installed. On the github actions installations, that is <1.1, but this is system dependent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flacjacket you are right, i change it to not using a maximum version. And also fix the CI issues. 👍

Copy link
Owner

@flacjacket flacjacket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@flacjacket flacjacket merged commit 3ce6b4a into flacjacket:main Sep 17, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants