meson: Pin harfbuzz in .pc files to the built version

This ensures that we link -subset, -icu and -gobject with a matching
version of the main library.
This commit is contained in:
Jan Alexander Steffens (heftig) 2020-07-02 17:46:56 +00:00 committed by Ebrahim Byagowi
parent 3adcf398a0
commit 4444482297
1 changed files with 3 additions and 3 deletions

View File

@ -509,7 +509,7 @@ pkgmod.generate(libharfbuzz,
pkgmod.generate(libharfbuzz_subset,
description: 'HarfBuzz font subsetter',
requires: ['harfbuzz'],
requires: ['harfbuzz = @0@'.format(meson.project_version())],
subdirs: [meson.project_name()],
version: meson.project_version(),
)
@ -541,7 +541,7 @@ if have_icu and not have_icu_builtin
pkgmod.generate(libharfbuzz_icu,
description: 'HarfBuzz text shaping library ICU integration',
requires: ['harfbuzz'],
requires: ['harfbuzz = @0@'.format(meson.project_version())],
subdirs: [meson.project_name()],
version: meson.project_version(),
)
@ -654,7 +654,7 @@ if have_gobject
pkgmod.generate(libharfbuzz_gobject,
description: 'HarfBuzz text shaping library GObject integration',
requires: ['harfbuzz', 'glib-2.0', 'gobject-2.0'],
requires: ['harfbuzz = @0@'.format(meson.project_version()), 'glib-2.0', 'gobject-2.0'],
subdirs: [meson.project_name()],
version: meson.project_version(),
)