Skip to content

Commit

Permalink
gpgme dependency: verify that pkg-config works on newer gpgme
Browse files Browse the repository at this point in the history
If the detected gpgme version is recent enough to match the version in
which upstream pkg-config files were added, assert that the default
found dependency is of the pkgconfig type.
  • Loading branch information
eli-schwartz authored and dcbaker committed Apr 15, 2019
1 parent f5bc0ab commit 3814d69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test cases/frameworks/27 gpgme/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ dependency('gpgme', method: 'config-tool')

# Check we can apply a version constraint
dependency('gpgme', version: '>=@0@'.format(gpgme_dep.version()), method: 'config-tool')

# If gpgme is new enough, make sure it picks up pkg-config by default:

if gpgme_ver.version_compare('>=1.13.0')
assert(gpgme_dep.type_name() == 'pkgconfig', 'dependency found via pkg-config')
endif

0 comments on commit 3814d69

Please sign in to comment.