meson: Fix pkgconfig generation

This fix error when gio is a subproject, when there is pc file
assotiated for objects in libraries_private meson automatically promote
them to requires.

Also remove some values that are already the default.
This commit is contained in:
Xavier Claessens
2020-10-01 09:52:09 -04:00
parent 93a21a25ab
commit f0303f4b68
3 changed files with 3 additions and 13 deletions

View File

@ -173,14 +173,10 @@ libsysprof_dep = declare_dependency(
pkgconfig.generate(
libsysprof,
subdirs: [ sysprof_header_subdir ],
version: meson.project_version(),
name: 'sysprof-@0@'.format(libsysprof_api_version),
filebase: 'sysprof-@0@'.format(libsysprof_api_version),
description: 'The library for console applications embedding sysprof',
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
requires: [ 'gio-2.0' ],
requires_private: libsysprof_pkg_deps,
libraries_private: libsysprof_libs_private,
libraries_private: [libsysprof_libs_private, libsysprof_pkg_deps],
variables: [
'datadir=' + datadir_for_pc_file,
],