diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-11-21 21:21:51 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-03-10 19:05:19 +0530 |
commit | a9471d491425cc6b815f8b95614b6acfc0c7ff77 (patch) | |
tree | d444768ec653b532fa38bc668173f0d4c9fd6543 /meson.build | |
parent | 47a07daa561ea437b78fdcf782d28a64cbdfb4dc (diff) | |
download | gobject-introspection-a9471d491425cc6b815f8b95614b6acfc0c7ff77.tar.gz |
meson: Set glib version from the project version
This is how the bumping is always done in autotools.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 0c5d8f38..d9f9d2a7 100644 --- a/meson.build +++ b/meson.build @@ -8,6 +8,7 @@ project('gobject-introspection', 'c', ) host_system = host_machine.system() +gi_versions = meson.project_version().split('.') py3 = import('python3') @@ -48,10 +49,13 @@ elif cc.get_id() == 'msvc' ] endif -gobject_dep = dependency('gobject-2.0', version: '>= 2.52.0') -gio_dep = dependency('gio-2.0') -giounix_dep = dependency('gio-unix-2.0', required: false) -gmodule_dep = dependency('gmodule-2.0') +# Always bumped to match our version +glib_version = '>=2.@0@.@1@'.format(gi_versions[1], gi_versions[2]) + +gobject_dep = dependency('gobject-2.0', version : glib_version) +gio_dep = dependency('gio-2.0', version : glib_version) +gmodule_dep = dependency('gmodule-2.0', version : glib_version) +giounix_dep = dependency('gio-unix-2.0', version : glib_version, required: false) libffi_dep = dependency('libffi') gir_build = get_option('gir_build') |