Commit 2572295f authored by Zeeshan Ali's avatar Zeeshan Ali

meson: Don't disable GIR for cross builds

Thanks to Emmanuele Bassi for pointing this out.
parent 2b15c24a
......@@ -56,14 +56,13 @@ libgeoclue = library('geoclue-2',
gir = find_program('g-ir-scanner', required: false)
vapigen = find_program('vapigen', required: false)
cross_build = meson.is_cross_build()
enable_gir = get_option('introspection')
pkg_requirements = ['glib-2.0', 'gio-2.0', 'gio-unix-2.0']
gir_sources = [ libgeoclue_sources,
libgeoclue_public_api_gen_sources[1] ]
if gir.found() and not cross_build and enable_gir
if gir.found() and enable_gir
geo_gir = gnome.generate_gir(libgeoclue,
sources: gir_sources,
namespace: 'Geoclue',
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment