From 965fcf2883a758b777a61671aa41d51b27bc1759 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 21 Jul 2021 10:49:15 -0700 Subject: modules/qt: Allow generated sources for arguemnts to compile_moc --- docs/markdown/_include_qt_base.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'docs/markdown') diff --git a/docs/markdown/_include_qt_base.md b/docs/markdown/_include_qt_base.md index bf5e31b..881d1bf 100644 --- a/docs/markdown/_include_qt_base.md +++ b/docs/markdown/_include_qt_base.md @@ -35,9 +35,12 @@ Compiles Qt's moc files (.moc) into header and/or source files. At least one of the keyword arguments `headers` and `sources` must be provided. It takes no positional arguments, and the following keyword arguments: - - `sources` (File | string)[]: A list of sources to be transpiled into .moc - files for manual inclusion. - - `headers` (File | string)[]: A list of headers to be transpiled into .cpp files + - `sources` (File | string | custom_target | custom_target index | generator_output)[]: + A list of sources to be transpiled into .moc files for manual inclusion. + *New in 0.60.0*: support for custom_target, custom_target_index, and generator_output. + - `headers` (File | string | custom_target | custom_target index | generator_output)[]: + A list of headers to be transpiled into .cpp files + *New in 0.60.0*: support for custom_target, custom_target_index, and generator_output. - `extra_args` string[]: Extra arguments to pass directly to `qt-moc` - `method` string: The method to use to detect qt, see `dependency()` for more information. -- cgit v1.1 From ff573620b0e64204158db543735eafd2b48cdbf6 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 21 Jul 2021 10:52:43 -0700 Subject: modules/qt: allow passing generated targets to compile_ui --- docs/markdown/_include_qt_base.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/markdown') diff --git a/docs/markdown/_include_qt_base.md b/docs/markdown/_include_qt_base.md index 881d1bf..63b21e1 100644 --- a/docs/markdown/_include_qt_base.md +++ b/docs/markdown/_include_qt_base.md @@ -21,8 +21,9 @@ It takes no positional arguments, and the following keyword arguments: Compiles Qt's ui files (.ui) into header files. It takes no positional arguments, and the following keyword arguments: - - `sources` (File | string)[]: A list of sources to be transpiled. Required, - must have at least one source + - `sources` (File | string | custom_target | custom_target index | generator_output)[]: + A list of sources to be transpiled. Required, must have at least one source + *New in 0.60.0*: support for custom_target, custom_target_index, and generator_output. - `extra_args` string[]: Extra arguments to pass directly to `qt-uic` - `method` string: The method to use to detect qt, see `dependency()` for more information. -- cgit v1.1 From a16335a958774437c9c1ab58c55ba303b2b9a07d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 21 Jul 2021 11:05:30 -0700 Subject: modules/qt: Allow Generated sources in compile_resources --- docs/markdown/_include_qt_base.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/markdown') diff --git a/docs/markdown/_include_qt_base.md b/docs/markdown/_include_qt_base.md index 63b21e1..db0cc48 100644 --- a/docs/markdown/_include_qt_base.md +++ b/docs/markdown/_include_qt_base.md @@ -8,8 +8,9 @@ It takes no positional arguments, and the following keyword arguments: - `name` (string | empty): if provided a single .cpp file will be generated, and the output of all qrc files will be combined in this file, otherwise each qrc file be written to it's own cpp file. - - `sources` (File | string)[]: A list of sources to be transpiled. Required, - must have at least one source + - `sources` (File | string | custom_target | custom_target index | generator_output)[]: + A list of sources to be transpiled. Required, must have at least one source + *New in 0.60.0*: support for custom_target, custom_target_index, and generator_output. - `extra_args` string[]: Extra arguments to pass directly to `qt-rcc` - `method` string: The method to use to detect qt, see `dependency()` for more information. -- cgit v1.1 From a7f3703440b5aaba0ae1bded8629a3af98ea7e82 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 21 Jul 2021 11:12:26 -0700 Subject: modules/qt: Allow using generated sources for compile_translations ts_files --- docs/markdown/_include_qt_base.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/markdown') diff --git a/docs/markdown/_include_qt_base.md b/docs/markdown/_include_qt_base.md index db0cc48..db8667c 100644 --- a/docs/markdown/_include_qt_base.md +++ b/docs/markdown/_include_qt_base.md @@ -85,7 +85,9 @@ It returns an array of targets and sources to pass to a compilation target. This method generates the necessary targets to build translation files with lrelease, it takes no positional arguments, and the following keyword arguments: - - `ts_files` (str | File)[], the list of input translation files produced by Qt's lupdate tool. + - `ts_files` (File | string | custom_target | custom_target index | generator_output)[]: + the list of input translation files produced by Qt's lupdate tool. + *New in 0.60.0*: support for custom_target, custom_target_index, and generator_output. - `install` bool: when true, this target is installed during the install step (optional). - `install_dir` string: directory to install to (optional). - `build_by_default` bool: when set to true, to have this target be built by -- cgit v1.1 From 42d27f05c6a07f8c81e101a4f4c28f24b9e13f04 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 21 Jul 2021 11:32:27 -0700 Subject: docs: add snippet for qt compile_ method generated inputs --- docs/markdown/snippets/qt_module_generated_inputs.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/markdown/snippets/qt_module_generated_inputs.md (limited to 'docs/markdown') diff --git a/docs/markdown/snippets/qt_module_generated_inputs.md b/docs/markdown/snippets/qt_module_generated_inputs.md new file mode 100644 index 0000000..f3bc695 --- /dev/null +++ b/docs/markdown/snippets/qt_module_generated_inputs.md @@ -0,0 +1,13 @@ +## The qt modules now accept generated outputs as inputs for qt.compile_* + +This means you can uset `custom_target`, custom_target indecies +(`custom_target[0]`, for example), or the output of `generator.process` as +inputs to the various `qt.compile_*` methods. + +```meson +qt = import('qt5') + +ct = custom_target(...) + +out = qt.compile_ui(sources : ct) +``` -- cgit v1.1