[Spice-commits] meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 29 12:47:53 UTC 2019


 meson.build |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit cbcc089993c320474eb8c78bb1cebd4263dc03c7
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Wed May 29 11:05:19 2019 +0100

    meson: Workaround gtk+ exposing Objective C in headers on macOS
    
    Apply the same workaround in 3c9b37bfc7c88969dfe16b8bfd874745e0fceb8a
    for Meson.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Marc-André Lureau <marcandre.lureau at gmail.com>

diff --git a/meson.build b/meson.build
index 8c6288f..4c065a4 100644
--- a/meson.build
+++ b/meson.build
@@ -341,6 +341,11 @@ if spice_gtk_has_gtk
                               '-DGDK_VERSION_MAX_ALLOWED=@0@'.format(gtk_encoded_version)]
 endif
 
+# Workaround gtk+ exposing Objective C: https://gitlab.gnome.org/GNOME/gtk/issues/1737
+if host_machine.system() == 'darwin'
+  spice_gtk_global_cflags += ['-ObjC']
+endif
+
 add_project_arguments(compiler.get_supported_arguments(spice_gtk_global_cflags),
                       language : 'c')
 


More information about the Spice-commits mailing list