build: fix meson.build when quartz is used
authorChristian Hergert <chergert@redhat.com>
Sat, 5 May 2018 00:46:08 +0000 (17:46 -0700)
committerChristian Hergert <chergert@redhat.com>
Sat, 5 May 2018 00:46:08 +0000 (17:46 -0700)
We need access to the variable earlier in the file when the quartz
backend is being setup.

gtk/meson.build

index 0502ab91fdb96a3a4e5f576f9792d50e08f642fc..6d4084a672a762fa66fa3c8eb333ed5f54a49891 100644 (file)
@@ -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,