diff options
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 608e62b..9df0dff 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('eom','c', - version: '1.28.0', + version: '1.28.1', meson_version: '>=0.59.0', license: 'GPLv2+', ) @@ -177,6 +177,19 @@ endif # Enable GObject Introspection if gobject_introspection.found() conf.set('HAVE_INTROSPECTION', 1) + # Check for girepository-2.0 API (moved to glib in version 1.80+) + # We can only use girepository-2.0 if libpeas also uses it, otherwise we get conflicts + girepository2 = dependency('girepository-2.0', required: false) + if girepository2.found() + # Check if libpeas requires girepository-2.0 + pkgconfig = find_program('pkg-config', required: false) + if pkgconfig.found() + libpeas_requires = run_command(pkgconfig, '--print-requires', 'libpeas-1.0', check: false) + if libpeas_requires.returncode() == 0 and libpeas_requires.stdout().contains('girepository-2.0') + conf.set('HAVE_GIREPOSITORY_2', 1) + endif + endif + endif endif conf_file = configure_file(output : 'config.h', configuration : conf) |
