Re: [Spice-devel] [PATCH spice-gtk] meson: Workaround gtk+ exposing Objective C in headers on macOS

2019-05-29 Thread Marc-André Lureau
On Wed, May 29, 2019 at 12:05 PM Frediano Ziglio  wrote:
>
> Apply the same workaround in 3c9b37bfc7c88969dfe16b8bfd874745e0fceb8a
> for Meson.
>
> Signed-off-by: Frediano Ziglio 

ack

> ---
>  meson.build | 5 +
>  1 file changed, 5 insertions(+)
>
> diff --git a/meson.build b/meson.build
> index 8c6288f3..4c065a43 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')
>
> --
> 2.20.1
>
> ___
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel



-- 
Marc-André Lureau
___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Spice-devel] [PATCH spice-gtk] meson: Workaround gtk+ exposing Objective C in headers on macOS

2019-05-29 Thread Frediano Ziglio
Apply the same workaround in 3c9b37bfc7c88969dfe16b8bfd874745e0fceb8a
for Meson.

Signed-off-by: Frediano Ziglio 
---
 meson.build | 5 +
 1 file changed, 5 insertions(+)

diff --git a/meson.build b/meson.build
index 8c6288f3..4c065a43 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')
 
-- 
2.20.1

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