meson/gl: use separate deps for gl and glx
authorMatthew Waters <matthew@centricular.com>
Fri, 9 Sep 2016 13:24:01 +0000 (23:24 +1000)
committerMatthew Waters <matthew@centricular.com>
Fri, 9 Sep 2016 13:26:24 +0000 (23:26 +1000)
commit32273c2c9c51c2e286917ecf93a3ae78009c2cf3
tree7ff20f80388a39b726c76e05a5f19b88d7e5c996
parenta969048003cc6f9480587d8a12ddcdcb1b483597
meson/gl: use separate deps for gl and glx

e.g. passing with_gl_api=gles2 would still build the glx code but not be
linking against the libGL library which is where the glX* functions are
located and would result in a linker error.

Solved by checking for the libGL library if either opengl or glx may be
needed and then disabling the corresponding deps as requested.
gst-libs/gst/gl/meson.build