Re: [PATCH spice-server 2/2] meson: Add spice-protocol as subproject

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> Fixes the cases where either the dependency is not installed or the
> version installed does not satisfy the requirement.
> 
> Signed-off-by: Eduardo Lima (Etrunko) <etrunko@xxxxxxxxxx>

Why this is not true for autoconf?

As spice-protocol is a dependency also for spice-common would be better
if spice-protocol would be a subproject of spice-common but was
decided to have spice-protocol as a separate project with its own
ABI.

> ---
>  meson.build                     | 4 ++--
>  subprojects/spice-protocol.wrap | 4 ++++
>  2 files changed, 6 insertions(+), 2 deletions(-)
>  create mode 100644 subprojects/spice-protocol.wrap
> 
> diff --git a/meson.build b/meson.build
> index 3184a6f5..deb9bbcd 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -83,13 +83,13 @@ endif
>  # check for mandatory dependencies
>  #
>  spice_protocol_version='0.12.15'
> +spice_server_deps += dependency('spice-protocol', version : '>=
> @0@'.format(spice_protocol_version), fallback : ['spice-protocol',
> 'spice_protocol_dep'])
>  
>  glib_version = '2.38'
>  glib_version_info = '>= @0@'.format(glib_version)
>  pixman_version = '>= 0.17.7'
>  
> -deps = {'spice-protocol' : '>= @0@'.format(spice_protocol_version),
> -        'glib-2.0'       : glib_version_info,
> +deps = {'glib-2.0'       : glib_version_info,
>          'gio-2.0'        : glib_version_info,
>          'gobject-2.0'    : glib_version_info,
>          'pixman-1'       : pixman_version,
> diff --git a/subprojects/spice-protocol.wrap
> b/subprojects/spice-protocol.wrap
> new file mode 100644
> index 00000000..eb271c39
> --- /dev/null
> +++ b/subprojects/spice-protocol.wrap
> @@ -0,0 +1,4 @@
> +[wrap-git]
> +directory=spice-protocol
> +url=https://gitlab.freedesktop.org/spice/spice-protocol.git
> +revision=master

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]