diff options
author | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2017-10-01 16:18:31 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-01 20:12:25 +0300 |
commit | a9258923fac2ab145a94f7c72cc5c0127d50bfe2 (patch) | |
tree | 9acf5b06d93ae58e52bf956a62981c4a0f3f0aa6 /docs/markdown/Qt5-module.md | |
parent | ae532c807c61afa51c17222d284475c1984e0ec8 (diff) | |
download | meson-a9258923fac2ab145a94f7c72cc5c0127d50bfe2.zip meson-a9258923fac2ab145a94f7c72cc5c0127d50bfe2.tar.gz meson-a9258923fac2ab145a94f7c72cc5c0127d50bfe2.tar.bz2 |
Added include directory argument for Qt's Moc which is needed to build plugins.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Diffstat (limited to 'docs/markdown/Qt5-module.md')
-rw-r--r-- | docs/markdown/Qt5-module.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/markdown/Qt5-module.md b/docs/markdown/Qt5-module.md index 7082309..a8ad73d 100644 --- a/docs/markdown/Qt5-module.md +++ b/docs/markdown/Qt5-module.md @@ -5,17 +5,19 @@ tools and steps required for Qt. The module has one method. ## preprocess -This method takes four keyword arguments, `moc_headers`, +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`. It returns an +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: ```meson qt5 = import('qt5') qt5_dep = dependency('qt5', modules: ['Core', 'Gui']) -moc_files = qt5.preprocess(moc_headers : 'myclass.h') +inc = include_directories('includes') +moc_files = qt5.preprocess(moc_headers : 'myclass.h', include_directories: inc) executable('myprog', 'main.cpp', 'myclass.cpp', moc_files, + include_directories: inc, dependencies : qt5_dep) ``` |