summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorLaurent Carlier <lordheavym@gmail.com>2018-02-18 10:58:33 +0100
committerAdam Jackson <ajax@redhat.com>2018-02-19 13:14:43 -0500
commitce4e20f80ff64a5a8b9f344e2507128f379e0715 (patch)
treee05340fd7d18b5dcc6410eba00512232b405a732 /meson.build
parent82d9e99bf99660537a11d9475369c43814cad664 (diff)
meson: Make Xv and XvMC extensions optional
Just mimic autoconf file, XvMC can't be enabled without Xv Signed-off-by: Laurent Carlier <lordheavym@gmail.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 52aaac514..364c6148e 100644
--- a/meson.build
+++ b/meson.build
@@ -353,12 +353,17 @@ if build_xsecurity
endif
endif
+build_xv = get_option('xv')
+build_xvmc = get_option('xvmc')
+if not build_xv
+ build_xvmc = false
+endif
+
# XXX: Allow configuration of these.
build_apm = false
build_acpi = false
build_mitshm = true
build_xselinux = false
-build_xv = true
build_dga = false
build_xf86vidmode = xf86vidmodeproto_dep.found()