meson: Fix building with -Ddga=false

We forget to assign a value to xf86dgaproto_dep if -Ddga=false, which
causes the meson build to fail:

meson.build:448:0: ERROR:  Unknown variable "xf86dgaproto_dep".

A full log can be found at /home/lyudess/build/xserver/meson-logs/meson-log.txt
FAILED: build.ninja

So, just set it to an empty dependency to fix that.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Lyude Paul 2018-09-06 16:40:06 -04:00 committed by Adam Jackson
parent a9a5bd0020
commit b84e7f1c22
1 changed files with 1 additions and 0 deletions

View File

@ -407,6 +407,7 @@ if not build_xv
endif
build_dga = false
xf86dgaproto_dep = dependency('', required: false)
if get_option('dga') == 'auto'
xf86dgaproto_dep = dependency('xf86dgaproto', version: '>= 2.0.99.1', required: false)
if xf86dgaproto_dep.found()