build: Pass libraries to pkgconfig.generate as a positional argument

This allows Meson to associate the pkg-config module with the "main"
library that it represents, in an unambiguous way.

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie
2020-09-16 10:08:27 +01:00
parent 175efaff30
commit 68c50ba869
3 changed files with 3 additions and 3 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),

View File

@ -109,7 +109,7 @@ libsysprof_ui_dep = declare_dependency(
)
pkgconfig.generate(
libraries: [libsysprof_ui],
libsysprof_ui,
subdirs: [ sysprof_header_subdir ],
version: meson.project_version(),
name: 'sysprof-ui-@0@'.format(libsysprof_api_version),

View File

@ -163,7 +163,7 @@ libsysprof_dep = declare_dependency(
)
pkgconfig.generate(
libraries: [libsysprof],
libsysprof,
subdirs: [ sysprof_header_subdir ],
version: meson.project_version(),
name: 'sysprof-@0@'.format(libsysprof_api_version),