gl: use dependency fallbacks to get at a possible gl-headers subproject
authorMatthew Waters <matthew@centricular.com>
Mon, 18 Jun 2018 12:24:13 +0000 (22:24 +1000)
committerMatthew Waters <matthew@centricular.com>
Tue, 19 Jun 2018 02:21:48 +0000 (12:21 +1000)
commitcfa5d64ff1c1356b7a5b1c998aa9949f72d23a03
tree71d246074ce2f803e776ca2c199728dad5af3ea4
parent3dd95b1311e0c49fc9588d9636c30c706888e888
gl: use dependency fallbacks to get at a possible gl-headers subproject

We would make the subproject conditional on the wrap-mode=nodownload
however get_option('wrap-mode') or similar is not available from
meson.build files as the wrap-mode is meant to be used automatically.

Instead use the dependency fallback mechanism to get at the subproject
where possible i.e. when downloading is allows and only add the compat
includes when we have a valid internal dependency from the gl-headers
subproject.

https://bugzilla.gnome.org/show_bug.cgi?id=796534
gst-libs/gst/gl/meson.build