mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
Merge branch 'fix-gdkconfig' into 'gtk-3-24'
Fix gdkconfig.h generation for GDK_WINDOWING_QUARTZ See merge request GNOME/gtk!1004
This commit is contained in:
commit
fdcd0ec07d
@ -14,6 +14,7 @@ G_BEGIN_DECLS
|
||||
#mesondefine GDK_WINDOWING_BROADWAY
|
||||
#mesondefine GDK_WINDOWING_WAYLAND
|
||||
#mesondefine GDK_WINDOWING_WIN32
|
||||
#mesondefine GDK_WINDOWING_QUARTZ
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -165,6 +165,7 @@ gdkconfig_cdata.set('GDK_WINDOWING_X11', x11_enabled)
|
||||
gdkconfig_cdata.set('GDK_WINDOWING_WAYLAND', wayland_enabled)
|
||||
gdkconfig_cdata.set('GDK_WINDOWING_WIN32', win32_enabled)
|
||||
gdkconfig_cdata.set('GDK_WINDOWING_BROADWAY', broadway_enabled)
|
||||
gdkconfig_cdata.set('GDK_WINDOWING_QUARTZ', quartz_enabled)
|
||||
|
||||
gdkconfig = configure_file(
|
||||
input : 'gdkconfig.h.meson',
|
||||
@ -268,7 +269,7 @@ foreach backend : ['broadway', 'quartz', 'wayland', 'win32', 'x11', 'mir']
|
||||
gdk_backends_gen_headers += get_variable('gdk_@0@_gen_headers'.format(backend))
|
||||
endif
|
||||
if backend == 'quartz'
|
||||
common_cflags += ['-DGDK_WINDOWING_QUARTZ', '-xobjective-c']
|
||||
common_cflags += ['-xobjective-c']
|
||||
endif
|
||||
endif
|
||||
endforeach
|
||||
|
@ -899,7 +899,7 @@ endif
|
||||
|
||||
if quartz_enabled
|
||||
gtk_sources += gtk_use_quartz_sources
|
||||
gtk_cargs += ['-DGDK_WINDOWING_QUARTZ', '-xobjective-c']
|
||||
gtk_cargs += ['-xobjective-c']
|
||||
endif
|
||||
|
||||
# So we don't add these twice
|
||||
|
Loading…
Reference in New Issue
Block a user