From: Christian Hergert Date: Sat, 5 May 2018 00:46:08 +0000 (-0700) Subject: build: fix meson.build when quartz is used X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~326 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=613f7609c203fad1f91f136f59f7c9f623defb2f;p=gtk4.git build: fix meson.build when quartz is used We need access to the variable earlier in the file when the quartz backend is being setup. --- diff --git a/gtk/meson.build b/gtk/meson.build index 0502ab91fd..6d4084a672 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -2,6 +2,15 @@ subdir('deprecated') subdir('a11y') subdir('inspector') +gtk_cargs = [ + '-DGTK_COMPILATION', + '-DG_LOG_DOMAIN="Gtk"', + '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED', + '-DGTK_BINARY_VERSION="@0@"'.format(gtk_binary_version), + '-DGTK_HOST="@0@"'.format(host_machine.system()), + '-DGTK_DATA_PREFIX="@0@"'.format(gtk_prefix), +] + # List of sources that do not contain public API, and should not be # introspected gtk_private_sources = files([ @@ -827,15 +836,6 @@ gtkversion = configure_file(input: 'gtkversion.h.in', configuration: gtkversion_cdata, install_dir: join_paths(gtk_includedir, 'gtk-4.0/gtk')) -gtk_cargs = [ - '-DGTK_COMPILATION', - '-DG_LOG_DOMAIN="Gtk"', - '-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED', - '-DGTK_BINARY_VERSION="@0@"'.format(gtk_binary_version), - '-DGTK_HOST="@0@"'.format(host_machine.system()), - '-DGTK_DATA_PREFIX="@0@"'.format(gtk_prefix), -] - gtk_gen_headers = [ gtkmarshal_h, gtktypebuiltins_h,