[PATCH xserver 5/7] meson: Make XV optional

Eric Anholt eric at anholt.net
Mon May 8 17:13:52 UTC 2017


Jon Turney <jon.turney at dronecode.org.uk> writes:

> Signed-off-by: Jon Turney <jon.turney at dronecode.org.uk>
> ---
>  meson.build       | 11 ++++++++++-
>  meson_options.txt |  3 +++
>  2 files changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/meson.build b/meson.build
> index c7c9c79c3..5f30b996c 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -251,6 +251,16 @@ if libdrm_dep.found()
>    build_modesetting = dependency('libdrm', version: '>= 2.4.46', required: false).found()
>  endif
>  
> +build_xv = false
> +if get_option('xv') == 'auto'
> +    if (host_machine.system() != 'windows' and
> +        host_machine.system() != 'cygwin')
> +        build_xv = true
> +    endif
> +else
> +    build_xv = get_option('xv') == 'yes'
> +endif

Optional XV seems a bit silly to me.  Could we just do something
like:

build_xv = build_xorg || build_dmx || build_ephyr?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170508/b0b59d6f/attachment-0001.sig>


More information about the xorg-devel mailing list