summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authormbkma <[email protected]>2026-01-28 11:27:45 +0100
committerGitHub <[email protected]>2026-01-28 11:27:45 +0100
commitcfece77a4475f2792b49b47c3d75d895d127d12a (patch)
tree4216c0aa4b7e70673b733fb2e8f4f5c65dbc35e5 /meson.build
parent909bd7ba67b11ff18d0eb88b837fb9a98436b8e1 (diff)
parent034677b0c5bf9b37c22a6d2d52f8761c2364857d (diff)
downloadeom-dependabot/github_actions/actions/checkout-6.tar.bz2
eom-dependabot/github_actions/actions/checkout-6.tar.xz
Merge branch 'master' into dependabot/github_actions/actions/checkout-6dependabot/github_actions/actions/checkout-6
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build15
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)