diff options
author | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2018-04-28 17:45:23 +0200 |
---|---|---|
committer | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2018-04-28 17:45:23 +0200 |
commit | 51868d00e7a25ef9e587228e949964a765ed9d2d (patch) | |
tree | e42c562a33eee7f507c8d3e944941bcfd74b2ab7 | |
parent | 2fc0a11062757c7f621b53d6ccfc158889c18544 (diff) | |
download | meson-51868d00e7a25ef9e587228e949964a765ed9d2d.zip meson-51868d00e7a25ef9e587228e949964a765ed9d2d.tar.gz meson-51868d00e7a25ef9e587228e949964a765ed9d2d.tar.bz2 |
[Qt module] Privates headers: added documentation
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
-rw-r--r-- | docs/markdown/Qt5-module.md | 7 | ||||
-rw-r--r-- | docs/markdown/Reference-manual.md | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Qt5-module.md b/docs/markdown/Qt5-module.md index b5393a8..5a7a4c2 100644 --- a/docs/markdown/Qt5-module.md +++ b/docs/markdown/Qt5-module.md @@ -20,6 +20,7 @@ This method generates the necessary targets to build translation files with lrel - `install_dir` directory to install to (optional). - `build_by_default` when set to true, to have this target be built by default, that is, when invoking plain ninja; the default value is false (optional). +## Example A simple example would look like this: ```meson @@ -38,3 +39,9 @@ executable('myprog', 'main.cpp', 'myclass.cpp', moc_files, The 'modules' argument is used to include Qt modules in the project. See the Qt documentation for the [list of modules](http://doc.qt.io/qt-5/qtmodules.html). + +## private headers (since v0.47.0) + +Some projects needs Qt's private headers to build, that's why a **private_headers** keyword argument has been added to [dependency](Reference-manual.md#dependency) method. +Setting this optionnal argument will add private include path of the given module to the compiler flags. +Note that this option is only compatible with qmake dependency method, using auto or pkg-config will fallback to qmake. diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 776703c..6bfee96 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -341,6 +341,7 @@ otherwise. This function supports the following keyword arguments: `>1.0.0`, `<=2.3.5` or `3.1.4` for exact matching. (*Added 0.37.0*) You can also specify multiple restrictions by passing a list to this keyword argument, such as: `['>=3.14.0', '<=4.1.0']`. +- `private_headers`, only available with Qt modules see [documentation](Qt5-module.md#private_headers). If dependency_name is '', the dependency is always not found. So with `required: false`, this always returns a dependency object for which the |