[Spice-commits] meson.build
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Feb 4 14:15:53 UTC 2019
meson.build | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit dcc8e1d565b38dfb5a48f108a8838b6f81145a3e
Author: Eduardo Lima (Etrunko) <etrunko at redhat.com>
Date: Thu Sep 27 11:42:45 2018 -0300
meson: Use underscorify() instead of split()
Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
diff --git a/meson.build b/meson.build
index 5f402a5f..811099c6 100644
--- a/meson.build
+++ b/meson.build
@@ -192,8 +192,7 @@ endif
#
# global C defines
#
-glib_major_minor = glib_version.split('.')
-glib_encoded_version = 'GLIB_VERSION_ at 0@_ at 1@'.format(glib_major_minor[0], glib_major_minor[1])
+glib_encoded_version = 'GLIB_VERSION_ at 0@'.format(glib_version.underscorify())
spice_server_global_cflags += ['-DGLIB_VERSION_MIN_REQUIRED=@0@'.format(glib_encoded_version),
'-DGLIB_VERSION_MAX_ALLOWED=@0@'.format(glib_encoded_version)]
More information about the Spice-commits
mailing list