forked from mesonbuild/meson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
docs/markdown/snippets/pkgconfig_deprecated_machine_file.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters