summaryrefslogtreecommitdiff
path: root/docs/markdown/_include_qt_base.md
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-05-17 16:29:39 -0400
committerDylan Baker <dylan@pnwbakers.com>2024-02-12 15:49:55 -0800
commitf4f50db44155a4e050c58a74849ba8859e5daf51 (patch)
treec42084d16820c0326c40d7df983958455936dc96 /docs/markdown/_include_qt_base.md
parent6c2c4612cc8f141e27ab2dd8ccacd92894c29552 (diff)
downloadmeson-f4f50db44155a4e050c58a74849ba8859e5daf51.tar.gz
qt: add preserve_paths keyword to functions
This allow to generate ui and moc under subdirectories, as this is allowed with generic generators.
Diffstat (limited to 'docs/markdown/_include_qt_base.md')
-rw-r--r--docs/markdown/_include_qt_base.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/_include_qt_base.md b/docs/markdown/_include_qt_base.md
index adc6f7c6f..00d1f8344 100644
--- a/docs/markdown/_include_qt_base.md
+++ b/docs/markdown/_include_qt_base.md
@@ -28,6 +28,11 @@ It takes no positional arguments, and the following keyword arguments:
- `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.
+ - `preserve_paths` bool: *Since 1.4.0*. If `true`, specifies that the output
+ files need to maintain their directory structure inside the target temporary
+ directory. For instance, when a file called `subdir/one.input` is processed
+ it generates a file `{target private directory}/subdir/one.out` when `true`,
+ and `{target private directory}/one.out` when `false` (default).
## compile_moc
@@ -49,6 +54,11 @@ It takes no positional arguments, and the following keyword arguments:
- `dependencies`: dependency objects whose include directories are used by moc.
- `include_directories` (string | IncludeDirectory)[]: A list of `include_directory()`
objects used when transpiling the .moc files
+ - `preserve_paths` bool: *New in 1.4.0*. If `true`, specifies that the output
+ files need to maintain their directory structure inside the target temporary
+ directory. For instance, when a file called `subdir/one.input` is processed
+ it generates a file `{target private directory}/subdir/one.out` when `true`,
+ and `{target private directory}/one.out` when `false` (default).
## preprocess
@@ -78,6 +88,11 @@ This method takes the following keyword arguments:
- `rcc_extra_arguments` string[]: any additional arguments to `rcc`. Since v0.49.0.
- `dependencies` Dependency[]: dependency objects needed by moc. Available since v0.48.0.
- `sources`: a list of extra sources, which are added to the output unchanged. Deprecated in 0.59.0.
+ - `preserve_paths` bool: *New in 1.4.0*. If `true`, specifies that the output
+ files need to maintain their directory structure inside the target temporary
+ directory. For instance, when a file called `subdir/one.input` is processed
+ it generates a file `{target private directory}/subdir/one.out` when `true`,
+ and `{target private directory}/one.out` when `false` (default).
It returns an array of targets and sources to pass to a compilation target.