summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-07-31 05:16:39 -0700
committerEli Schwartz <eschwartz93@gmail.com>2023-09-28 14:35:01 -0400
commit5421c24ea02ac50292db51bcab6150bb7e91bf1c (patch)
treee6d8529686557e05de856dc4d7da8983ec1fa606 /docs/markdown/snippets
parentf4ea89be6041b4351d34695f71f9678cc8dd092b (diff)
downloadmeson-5421c24ea02ac50292db51bcab6150bb7e91bf1c.tar.gz
fix using a CustomTargetIndex for vs_module_defs
Because `CustomTargetIndex`es don't have a `subdir` property, but they do implement the `get_subdir()` method
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/vs_module_defs_customtargetindex.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/snippets/vs_module_defs_customtargetindex.md b/docs/markdown/snippets/vs_module_defs_customtargetindex.md
new file mode 100644
index 000000000..d50d04ecb
--- /dev/null
+++ b/docs/markdown/snippets/vs_module_defs_customtargetindex.md
@@ -0,0 +1,8 @@
+## vs_module_defs keyword now supports indexes of custom_target
+
+This means you can do something like:
+```meson
+defs = custom_target('generate_module_defs', ...)
+shared_library('lib1', vs_module_defs : defs[0])
+shared_library('lib2', vs_module_defs : defs[2])
+```