diff options
-rw-r--r-- | gtk/meson.build | 3 | ||||
-rw-r--r-- | meson.build | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gtk/meson.build b/gtk/meson.build index 61185696dd..7ac245419a 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -1180,9 +1180,6 @@ libgtk = shared_library('gtk-4', gtk_dep_sources = [gtkversion, gtktypebuiltins_h] # Introspection -gir = find_program('g-ir-scanner', required : get_option('introspection')) -build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled()) - if build_gir gir_args = [ '-DGTK_COMPILATION', diff --git a/meson.build b/meson.build index d0d3b432c5..80304b0edd 100644 --- a/meson.build +++ b/meson.build @@ -728,6 +728,11 @@ int main () { endif endif +# Introspection +gir = find_program('g-ir-scanner', required : get_option('introspection')) +build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled()) + + project_build_root = meson.current_build_dir() subdir('gtk/css') |