meson: Check for GDK backend too for Quartz sake
It is possible to have libgdk compiled just with X11 support on macOS, which breaks our GDK_ macro checks on libgimpwidgets/gimppickbutton*.c. That is exactly what happened when I first tried to compile with MacPorts, since they default for X11 for the sake of old iMacs pre-OSX. Let's improve. On other platforms, that is not a problem, since the specific backend is necessarily compiled as per the gtk3 meson.build design. On Windows, it is always win32; on other Unixes, it will be X11 at least, and Wayland.
This commit is contained in:
parent
9ca14b7331
commit
91630698d7
1 changed files with 2 additions and 0 deletions
|
|
@ -483,6 +483,8 @@ gmodule = dependency('gmodule-no-export-2.0')
|
|||
|
||||
gtk3_minver = '3.24.0'
|
||||
gtk3 = dependency('gtk+-3.0', version: '>='+gtk3_minver)
|
||||
gdk_specific_name = platform_osx ? 'gdk-quartz-3.0' : 'gdk-3.0'
|
||||
gdk_specific = dependency(gdk_specific_name)
|
||||
gtk_version_split = gtk3_minver.split('.')
|
||||
gtk_major = gtk_version_split[0].to_int()
|
||||
gtk_minor = gtk_version_split[1].to_int()
|
||||
|
|
|
|||
Loading…
Reference in a new issue