summaryrefslogtreecommitdiff
path: root/docs/markdown/Pkgconfig-module.md
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2025-05-01 15:28:28 -0400
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-05-06 15:38:00 +0300
commitfde514ccb07f2fd955ac53e5e46e8c295b70f6ba (patch)
treec4f39b7fbd3f1cf7793b9bb141dcdf93d4da5a62 /docs/markdown/Pkgconfig-module.md
parentc4c5a1b9c38a5f44a5e689fdaf248498b1323275 (diff)
downloadmeson-fde514ccb07f2fd955ac53e5e46e8c295b70f6ba.tar.gz
Add license keyword to pkgconfig generate
Fixes #14270.
Diffstat (limited to 'docs/markdown/Pkgconfig-module.md')
-rw-r--r--docs/markdown/Pkgconfig-module.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/markdown/Pkgconfig-module.md b/docs/markdown/Pkgconfig-module.md
index 80882cb7d..7ddd31026 100644
--- a/docs/markdown/Pkgconfig-module.md
+++ b/docs/markdown/Pkgconfig-module.md
@@ -47,6 +47,7 @@ keyword arguments.
`pkgconfig.generate()` was used on to put in the `Requires` field
- `requires_private` the same as `requires` but for the `Requires.private` field
- `url` a string with a url for the library
+- `license` (*Since 1.9.0*) a string with a SPDX license to add to the generated file.
- `variables` a list of strings with custom variables to add to the
generated file. The strings must be in the form `name=value` and may
reference other pkgconfig variables,
@@ -90,6 +91,9 @@ application. That will cause pkg-config to prefer those
builddir. This is an experimental feature provided on a best-effort
basis, it might not work in all use-cases.
+*Since 1.9.0* you can specify a license identifier. To use the current project
+licence, simply use `license: meson.project_license()` as argument to `generate()`.
+
### Implicit dependencies
The exact rules followed to find dependencies that are implicitly