meson.build: Build X11 backend optionally 64/24164/1
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 12 Feb 2020 11:00:36 +0000 (13:00 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 4 Mar 2020 10:18:41 +0000 (12:18 +0200)
commitb352cee6f8113e63864ac644502ace3bd75bfae1
tree698cb0fd575902cbc34be8e43efbee3d22311608
parent93523a7f38bfe1ad5466fee50f1c7d73c4cafcd2
meson.build: Build X11 backend optionally

libweston6 built and installed the x11 backend unconditionally, but this
is no longer the case with newer version of weston.  Also, poky-agl
configuration specifically removes any distro features that contain x11.

Users wanting to test the compositor under a x11 backend need to
compile their own libweston version this shouldn't be a problem.

Unfortunatelly, meson does not have a easy way to determine if a header
is installed or not so after glancing over the documentation we need to
use the compilers' 'has_header' function to determine if the x11 header
was installed or not by the weston recipe.

This makes sure that if we're building out-of-tree it finds the proper
header as well.

Bug-AGL: SPEC-3180

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I3dce7c1beaf5bfab31fb88bc0462c7eb8320cfc8
meson.build
src/main.c