From ecb076ba002afb6a6678983dd02ac53d9b751f12 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 3 Mar 2020 10:50:15 -0500 Subject: qt5: Add has_tools() method --- docs/markdown/snippets/qt_has_tools.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/markdown/snippets/qt_has_tools.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/qt_has_tools.md b/docs/markdown/snippets/qt_has_tools.md new file mode 100644 index 0000000..3569ecb --- /dev/null +++ b/docs/markdown/snippets/qt_has_tools.md @@ -0,0 +1,10 @@ +## Added `has_tools` method to qt module + +It should be used to compile optional Qt code: +```meson +qt5 = import('qt5') +if qt5.has_tools(required: get_option('qt_feature')) + moc_files = qt5.preprocess(...) + ... +endif +``` -- cgit v1.1