meson: Point to the base directory of header files in pkgconfig

Fixes commit 22d11f8b22
This commit is contained in:
Daiki Ueno 2019-10-15 10:33:28 +02:00
parent 8a01e3e282
commit 06d803c478

View File

@ -1,4 +1,5 @@
installed_headers_subdir = 'libsecret-@0@'.format(api_version_major) / 'libsecret'
installed_headers_subdir_base = 'libsecret-@0@'.format(api_version_major)
installed_headers_subdir = installed_headers_subdir_base / 'libsecret'
libsecret_sources = [
'secret-attributes.c',
@ -166,7 +167,7 @@ libsecret_pc_variables = [
pkg.generate(libsecret,
description: 'GObject bindings for Secret Service API',
name: 'libsecret-@0@'.format(api_version_major),
subdirs: installed_headers_subdir,
subdirs: installed_headers_subdir_base,
variables: libsecret_pc_variables,
requires: glib_deps)