ozone/wayland: Change the way how we link with wayland-egl/client.
We used to be linking with system provided libwayland-egl, but it's not suitable for our script that controls required packages. The thing is that libwayland-egl1 is available on Debian => 9 and Ubuntu >= 16. On older versions (Trusty and Jessie), libwayland-egl0 is available. We don't support different packages for different versions. Thus, use the wayland-egl from the //third_party. And there is also another problem with libwayland-client. When we statically link with the library from //third_party/wayland:wayland_client, libffi dependency is also added. However, Ubuntu 20 names this package libffi7, while older versions name that as libffi6. Thus, to avoid this problem, link with that package differently through libs = [ "wayland-client" ]. Bug: 1116384 Change-Id: I76f7205db0d6425e92bd66c7b1981d525f49d2e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2355944Reviewed-by:Thomas Anderson <thomasanderson@chromium.org> Reviewed-by:
Robert Kroeger <rjkroege@chromium.org> Commit-Queue: Maksim Sisov (GMT+3) <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#798772}
Showing
Please register or sign in to comment