meson: fix private libs when building without glx
authorLukas Rusak <lorusak@gmail.com>
Mon, 4 Jun 2018 19:38:41 +0000 (12:38 -0700)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 15 Jun 2018 09:43:22 +0000 (10:43 +0100)
commit4cfc4cef80a85dea2b761efd9f6deb13198c9196
treea0634c147116e9e8665f42d138d8697182be1346
parent30f1ab7a59223802fea70f363028161ca40470e6
meson: fix private libs when building without glx

I noticed that the generated pkg-config files will include
glx and x11 dependencies even when x11 isn't a selected platform.

This fixes the private libs and was tested by building kmscube

V2:
  - check if gallium-xlib is being used for glx

Fixes: 108d257a16859898f5ce0 "meson: build libEGL"
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
meson.build