diff options
author | Rohan Garg <rohan.garg@collabora.com> | 2019-08-06 17:40:35 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-02-20 10:19:19 -0500 |
commit | 73f03e6093114e5ae42bd52a358d6e65af72aba6 (patch) | |
tree | 0a39f1f67318671da4bbc6511430095f1c2cdb96 /docs | |
parent | 8d63b6340b4da7d42ac571ea7c94b81b409421ef (diff) | |
download | meson-73f03e6093114e5ae42bd52a358d6e65af72aba6.zip meson-73f03e6093114e5ae42bd52a358d6e65af72aba6.tar.gz meson-73f03e6093114e5ae42bd52a358d6e65af72aba6.tar.bz2 |
Introduce dataonly for the pkgconfig module
This allows users to disable writing out the inbuilt variables to
the pkg-config file as they might actualy not be required.
One reason to have this is for architecture-independent pkg-config
files in projects which also have architecture-dependent outputs.
For example : https://gitlab.freedesktop.org/wayland/weston/issues/269
Fixes #4011
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Pkgconfig-module.md | 2 | ||||
-rw-r--r-- | docs/markdown/snippets/pkgconfig_dataonly.md | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/Pkgconfig-module.md b/docs/markdown/Pkgconfig-module.md index 678090b..13fc4e6 100644 --- a/docs/markdown/Pkgconfig-module.md +++ b/docs/markdown/Pkgconfig-module.md @@ -56,6 +56,8 @@ keyword arguments. D sources referred to by this pkg-config file - `uninstalled_variables` used instead of the `variables` keyword argument, when generating the uninstalled pkg-config file. Since *0.54.0* +- `dataonly` field. (*since 0.54.0*) this is used for architecture-independent + pkg-config files in projects which also have architecture-dependent outputs. Since 0.46 a `StaticLibrary` or `SharedLibrary` object can optionally be passed as first positional argument. If one is provided a default value will be diff --git a/docs/markdown/snippets/pkgconfig_dataonly.md b/docs/markdown/snippets/pkgconfig_dataonly.md new file mode 100644 index 0000000..8a2564c --- /dev/null +++ b/docs/markdown/snippets/pkgconfig_dataonly.md @@ -0,0 +1,15 @@ +## Introduce dataonly for the pkgconfig module +This allows users to disable writing out the inbuilt variables to +the pkg-config file as they might actualy not be required. + +One reason to have this is for architecture-independent pkg-config +files in projects which also have architecture-dependent outputs. + +``` +pkgg.generate( + name : 'libhello_nolib', + description : 'A minimalistic pkgconfig file.', + version : libver, + dataonly: true +) +``` |