diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-04-06 14:29:23 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-19 17:57:34 +0300 |
commit | 3c64ecaf866ca611b40287c78f622e370f90f272 (patch) | |
tree | f9d39368fe36c75295ed2d60d045392a98da166e /docs | |
parent | 8f6ad8e52e7ad7663b7737f32cb6c624971830fe (diff) | |
download | meson-3c64ecaf866ca611b40287c78f622e370f90f272.zip meson-3c64ecaf866ca611b40287c78f622e370f90f272.tar.gz meson-3c64ecaf866ca611b40287c78f622e370f90f272.tar.bz2 |
pkgconfig: Add support for CustomTarget objects in generator
Fixes: #8618.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Pkgconfig-module.md | 7 | ||||
-rw-r--r-- | docs/markdown/snippets/pkgconfig_gen_ct.md | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/markdown/Pkgconfig-module.md b/docs/markdown/Pkgconfig-module.md index 35396d6..9c66b33 100644 --- a/docs/markdown/Pkgconfig-module.md +++ b/docs/markdown/Pkgconfig-module.md @@ -30,11 +30,14 @@ keyword arguments. also be provided and they will be added into the `Libs` field. Since 0.45.0 dependencies of built libraries will be automatically added, see the [Implicit dependencies](#implicit-dependencies) section below for the exact - rules. + rules. Since 0.58.0 custom_target() objects are supported as long as they are + linkable (has known extension such as `.a`, `.so`, etc). - `libraries_private` list of built libraries or strings to put in the `Libs.private` field. Since 0.45.0 dependencies of built libraries will be automatically added, see the [Implicit dependencies](#implicit-dependencies) - section below for the exact rules. + section below for the exact rules. Since 0.58.0 custom_target() objects are + supported as long as they are linkable (has known extension such as `.a`, + `.so`, etc). - `name` the name of this library, used to set the `Name:` field - `subdirs` which subdirs of `include` should be added to the header search path, for example if you install headers into diff --git a/docs/markdown/snippets/pkgconfig_gen_ct.md b/docs/markdown/snippets/pkgconfig_gen_ct.md new file mode 100644 index 0000000..ccf9415 --- /dev/null +++ b/docs/markdown/snippets/pkgconfig_gen_ct.md @@ -0,0 +1,5 @@ +## Passing `custom_target()` output to `pkg.generate()` + +It is now allowed to pass libraries generated by a `custom_target()` to +pkg-config file generator. The output filename must have a known library extension +such as `.a`, `.so`, etc. |