aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-06-01 11:03:21 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-15 12:35:15 -0700
commit0fe3dc6571303458d361952059750bd8479a9a65 (patch)
tree90e9acfc3bd85f24588c0b31f9e0c884260a8241 /docs/markdown/snippets
parent10863057159c8850e90c7bd5fb05b9ae1ba81e3e (diff)
downloadmeson-0fe3dc6571303458d361952059750bd8479a9a65.zip
meson-0fe3dc6571303458d361952059750bd8479a9a65.tar.gz
meson-0fe3dc6571303458d361952059750bd8479a9a65.tar.bz2
modules/qt: Deprecated the *sources variadic argument to preproccess
It's confusing, and it's a duplicate of the `sources` keyword argument, which has always existed.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/qt_preprocessed_varargs_deprecated.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/markdown/snippets/qt_preprocessed_varargs_deprecated.md b/docs/markdown/snippets/qt_preprocessed_varargs_deprecated.md
new file mode 100644
index 0000000..f763695
--- /dev/null
+++ b/docs/markdown/snippets/qt_preprocessed_varargs_deprecated.md
@@ -0,0 +1,16 @@
+## Qt.preprocess positional source arguments deprecated
+
+The `qt.preprocess` method currently has this signature:
+`qt.preprocess(name: str | None, *srcs: str)`, this is not a nice signature
+because it's confusing, and there's a `sources` keyword argument that does
+exactly the same thing. Instead of
+```meson
+qt.preprocess(name, list, of, sources)
+```
+use
+```meson
+qt.preprocess(
+ name,
+ sources : [list, of , sources],
+)
+``` \ No newline at end of file