[Spice-devel] [PATCH spice-server 1/2] Add support for building with meson
Christophe Fergeau
cfergeau at redhat.com
Tue Mar 27 10:26:37 UTC 2018
Couple of notes for people trying this,
On Thu, Mar 22, 2018 at 02:18:20PM -0300, Eduardo Lima (Etrunko) wrote:
> diff --git a/meson.build b/meson.build
> new file mode 100644
> index 00000000..f373e662
> --- /dev/null
> +++ b/meson.build
> @@ -0,0 +1,175 @@
> +#
> +# project definition
> +#
> +# TODO: double check meson.project_version()
> +# Ideally we would use the output of git-version-gen as input for meson, because
> +# we can not check the result of the command before declaring project().
> +#
> +project('spice', 'c',
> + version : run_command('build-aux/git-version-gen', '.tarball-version').stdout().strip(),
> + license : 'LGPLv2.1',
> + meson_version : '>= 0.45.0')
meson 0.45 is needed, I was getting weird errors with 0.44.1 on my
Fedora 27. Upgrading to 0.45 which is available in updates-testing made
them go away.
> diff --git a/subprojects/spice-common.wrap b/subprojects/spice-common.wrap
> new file mode 100644
> index 00000000..6117c631
> --- /dev/null
> +++ b/subprojects/spice-common.wrap
> @@ -0,0 +1,4 @@
> +[wrap-git]
> +directory=spice-common
> +url=https://gitlab.com/etrunko/spice-common.git
> +revision=meson
Have you tried just putting a symlink to the top-level spice-server in
subprojects/ and not having this spice-common.wrap file at all?
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180327/6bbc652c/attachment.sig>
More information about the Spice-devel
mailing list