diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-29 22:40:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-29 22:40:28 +0200 |
commit | 68af8449d8576e27fb0390340f149f3001e8ea5f (patch) | |
tree | 921200359a63f5144cfea27ea2aef97e38c91ed1 /docs/markdown/Qt5-module.md | |
parent | 1b0048a7022a89f461cf4d01e7cdbf995bab70f5 (diff) | |
parent | cf759e529c9753b30bd926a75f629d3562fca990 (diff) | |
download | meson-68af8449d8576e27fb0390340f149f3001e8ea5f.zip meson-68af8449d8576e27fb0390340f149f3001e8ea5f.tar.gz meson-68af8449d8576e27fb0390340f149f3001e8ea5f.tar.bz2 |
Merge pull request #2529 from leiflm/qt5-add-moc-extra-arguments-keyword
Qt5-Module: Add `moc_extra_arguments` keyword support.
Diffstat (limited to 'docs/markdown/Qt5-module.md')
-rw-r--r-- | docs/markdown/Qt5-module.md | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/docs/markdown/Qt5-module.md b/docs/markdown/Qt5-module.md index a8ad73d..aea2ae1 100644 --- a/docs/markdown/Qt5-module.md +++ b/docs/markdown/Qt5-module.md @@ -5,17 +5,22 @@ tools and steps required for Qt. The module has one method. ## preprocess -This method takes five keyword arguments, `moc_headers`, -`moc_sources`, `ui_files` and `qresources` which define the files that -require preprocessing with `moc`, `uic` and `rcc` and 'include_directories' which might be needed by moc. It returns an -opaque object that should be passed to a main build target. A simple -example would look like this: +This method takes the following keyword arguments: + - `moc_headers`, `moc_sources`, `ui_files`, `qresources`, which define the files that require preprocessing with `moc`, `uic` and `rcc` + - `include_directories`, the directories to add to header search path for `moc` (optional) + - `moc_extra_arguments`, any additional arguments to `moc` (optional). Available since v0.44.0. + +It returns an opaque object that should be passed to a main build target. + +A simple example would look like this: ```meson qt5 = import('qt5') qt5_dep = dependency('qt5', modules: ['Core', 'Gui']) inc = include_directories('includes') -moc_files = qt5.preprocess(moc_headers : 'myclass.h', include_directories: inc) +moc_files = qt5.preprocess(moc_headers : 'myclass.h', + moc_extra_arguments: ['-DMAKES_MY_MOC_HEADER_COMPILE'], + include_directories: inc) executable('myprog', 'main.cpp', 'myclass.cpp', moc_files, include_directories: inc, dependencies : qt5_dep) |