Merge branch 'wip/issue49' into 'master'

libsysprof, libsysprof-ui: Generate pkg-config dependencies

Closes #49

See merge request GNOME/sysprof!38
This commit is contained in:
Christian Hergert
2020-09-16 18:09:27 +00:00
3 changed files with 35 additions and 9 deletions

View File

@ -64,7 +64,7 @@ libsysprof_capture_dep = declare_dependency(
if not meson.is_subproject()
pkgconfig.generate(
libraries: [libsysprof_capture],
libsysprof_capture,
subdirs: [ sysprof_header_subdir ],
version: meson.project_version(),
name: 'sysprof-capture-@0@'.format(libsysprof_api_version),
@ -72,5 +72,6 @@ if not meson.is_subproject()
description: 'The static capture library for tools that generate profiling capture data',
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
variables: [ 'datadir=' + datadir_for_pc_file ],
requires_private: libsysprof_capture_deps,
)
endif