[WAM] Pull out the protocols straight from the compositor + use wayland-scanner to generate the code

Fixed

Description

Both protocols are now emebedded into chromium84 source code, these have to be pulled from the compositor. 

agl-compositor installs the protocols into pkgdatadir.

 

To retrieve it you can use pkg-config like `pkg-config --variable=pkgdatadir agl-compositor-0.0.19-protocols`.

For Cmake I'm using 

pkg_check_modules(AGL_COMPOSITOR_PROTOCOLS REQUIRED agl-compositor-0.0.19-protocols)
pkg_get_variable(AGL_COMPOSITOR_PROTOCOLS_PKGDATADIR agl-compositor-0.0.19-protocols pkgdatadir)

Something similar has to be done when building chromium.

 

Also, after that is done, need to use wayland-scanner to generate the source code from it. 

Look at alexa-viewer, launcher, homescreen, or cluster-demo-receiver on how that happens with qmake or cmake. 

Environment

None

Activity

Show:

Roger Zanoni 
February 14, 2024 at 12:38 PM

We still need to fix it. The protocol files are on the tree and updated manually

Marius Vlad 
February 14, 2024 at 7:23 AM

I believe the protocol is still carried over rather than fetching it out automatically with pkg-config.

Walt Miner 
February 14, 2024 at 1:07 AM

Is this complete? No longer needed?  

Marius Vlad 
August 31, 2022 at 2:03 PM

Fyi, this will need addressing in order to merge https://gerrit.automotivelinux.org/gerrit/c/src/agl-compositor/+/27859.

Marius Vlad 
March 15, 2022 at 8:15 PM

Assigned this to  to triage. I can also take a look if there's a need. 

Details

Assignee

Reporter

Labels

Components

Priority

Created July 2, 2021 at 8:36 AM
Updated March 20, 2024 at 9:18 PM
Resolved March 20, 2024 at 9:18 PM