Demo apps should fetch the protocol extension from the compositor
Description
So far I've copy-pasta the protocol specification (XML file) from the compositor to the source code of the demo that required/needed to bind to respective interface.
Think it might be better to use/make use of the protocol specification installed by the compositor to make sure both the same version is used, with a protocol update needing only an implementation on the client side.
No, not really, there's no functionality that changed or a bug fix. This helps thing be in sync in case they change in the future.
Walt Miner
August 17, 2021 at 9:13 PM
@Marius Vlad should this be cherry picked to Koi and Lamprey?
Marius Vlad
July 15, 2021 at 8:39 AM
Merged in master. Closing time.
Marius Vlad
July 2, 2021 at 8:03 AM
Yeah, so the best I could find here is to use system() to and invoke pkg-config straight on. It's a bit ugly but it works. For Cmake it was a bit easier as the pkgconfig packages can retrieve pkg-config variables directly. I did this for the apps I know their using the agl-shell/agl-shell-desktop. Chomium84 will have to do something similar and fetch it on its own.
So far I've copy-pasta the protocol specification (XML file) from the compositor to the source code of the demo that required/needed to bind to respective interface.
Think it might be better to use/make use of the protocol specification installed by the compositor to make sure both the same version is used, with a protocol update needing only an implementation on the client side.