diff options
| author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-10-17 10:36:19 -0400 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2023-10-19 15:20:22 -0400 |
| commit | bf9314e00dde4160b1022168cff91e09c868935c (patch) | |
| tree | 95ac21e253359c1f434720a5ec21a4b0962bd19a /docs | |
| parent | 7b7d2e060b447de9c2642848847370a58711ac1c (diff) | |
| download | meson-bf9314e00dde4160b1022168cff91e09c868935c.tar.gz | |
pkgconfig: Allow setting both pkgconfig and pkg-config
This was previously allowed for different usage. Keep allowing it, but
with non fatal deprecation notice, and ignore the value from legacy
pkgconfig.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/snippets/pkgconfig_deprecated_machine_file.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/snippets/pkgconfig_deprecated_machine_file.md b/docs/markdown/snippets/pkgconfig_deprecated_machine_file.md new file mode 100644 index 000000000..36647e90e --- /dev/null +++ b/docs/markdown/snippets/pkgconfig_deprecated_machine_file.md @@ -0,0 +1,10 @@ +## Machine files: `pkgconfig` field deprecated and replaced by `pkg-config` + +Meson used to allow both `pkgconfig` and `pkg-config` entries in machine files, +the former was used for `dependency()` lookup and the latter was used as return +value for `find_program('pkg-config')`. + +This inconsistency is now fixed by deprecating `pkgconfig` in favor of +`pkg-config` which matches the name of the binary. For backward compatibility +it is still allowed to define both with the same value, in that case no +deprecation warning is printed. |
