diff mbox series

[4/8] vhost-user-video: add meson subdir build logic

Message ID 20211209145601.331477-5-peter.griffin@linaro.org
State New
Headers show
Series virtio: Add vhost-user based Video decode | expand

Commit Message

Peter Griffin Dec. 9, 2021, 2:55 p.m. UTC
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
---
 tools/meson.build | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Alex Bennée Jan. 11, 2022, 4:03 p.m. UTC | #1
Peter Griffin <peter.griffin@linaro.org> writes:

> Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
> ---
>  tools/meson.build | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/tools/meson.build b/tools/meson.build
> index 3e5a0abfa2..3314b5efc5 100644
> --- a/tools/meson.build
> +++ b/tools/meson.build
> @@ -24,3 +24,12 @@ endif
>  if have_virtiofsd
>    subdir('virtiofsd')
>  endif
> +
> +have_virtiovideo = (have_system and
> +    have_tools and
> +    'CONFIG_LINUX' in config_host)

Following the convention of cece116c939d219070b250338439c2d16f94e3da

  have_virtiovideo = (targetos == 'linux' and
      have_tools and
      'CONFIG_VHOST_USER' in config_host)

> +
> +if have_virtiovideo
> +  subdir('vhost-user-video')
> +endif
> +
Peter Griffin Feb. 3, 2022, 11:31 a.m. UTC | #2
Hi Alex,

Thanks for reviewing.

On Tue, 11 Jan 2022, Alex Bennée wrote:

> 
> Peter Griffin <peter.griffin@linaro.org> writes:
> 
> > Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
> > ---
> >  tools/meson.build | 9 +++++++++
> >  1 file changed, 9 insertions(+)
> >
> > diff --git a/tools/meson.build b/tools/meson.build
> > index 3e5a0abfa2..3314b5efc5 100644
> > --- a/tools/meson.build
> > +++ b/tools/meson.build
> > @@ -24,3 +24,12 @@ endif
> >  if have_virtiofsd
> >    subdir('virtiofsd')
> >  endif
> > +
> > +have_virtiovideo = (have_system and
> > +    have_tools and
> > +    'CONFIG_LINUX' in config_host)
> 
> Following the convention of cece116c939d219070b250338439c2d16f94e3da
> 
>   have_virtiovideo = (targetos == 'linux' and
>       have_tools and
>       'CONFIG_VHOST_USER' in config_host)
>

Will fix in v2

regards,

Peter.

> > +
> > +if have_virtiovideo
> > +  subdir('vhost-user-video')
> > +endif
> > +
> 
> 
> -- 
> Alex Bennée
diff mbox series

Patch

diff --git a/tools/meson.build b/tools/meson.build
index 3e5a0abfa2..3314b5efc5 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -24,3 +24,12 @@  endif
 if have_virtiofsd
   subdir('virtiofsd')
 endif
+
+have_virtiovideo = (have_system and
+    have_tools and
+    'CONFIG_LINUX' in config_host)
+
+if have_virtiovideo
+  subdir('vhost-user-video')
+endif
+