diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-10-29 22:45:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 22:45:04 +0300 |
commit | af85738dafc8b371c8b6dbcfba23e1cdb621dc8c (patch) | |
tree | ec0996a81a0a237080b9c674284b47426f3f28c9 /docs/markdown/snippets | |
parent | 7a12c911bf5478b0a762432985535a6a823b13ab (diff) | |
parent | 6849baa47633d2986c049cd68916bc9ce95ba2d0 (diff) | |
download | meson-af85738dafc8b371c8b6dbcfba23e1cdb621dc8c.zip meson-af85738dafc8b371c8b6dbcfba23e1cdb621dc8c.tar.gz meson-af85738dafc8b371c8b6dbcfba23e1cdb621dc8c.tar.bz2 |
Merge pull request #9375 from dcbaker/submit/windows-module-typing
Typing for the Windows module
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/windows_custom_targets.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/markdown/snippets/windows_custom_targets.md b/docs/markdown/snippets/windows_custom_targets.md new file mode 100644 index 0000000..cbc2f9d --- /dev/null +++ b/docs/markdown/snippets/windows_custom_targets.md @@ -0,0 +1,22 @@ +## Windows.compile_resources CustomTarget + +Previously the Windows module only accepted CustomTargets with one output, it +now accepts them with more than one output, and creates a windows resource +target for each output. Additionally it now accepts indexes of CustomTargets + +```meson + +ct = custom_target( + 'multiple', + output : ['resource', 'another resource'], + ... +) + +ct2 = custom_target( + 'slice', + output : ['resource', 'not a resource'], + ... +) + +resources = windows.compile_resources(ct, ct2[0]) +``` |