From 6849baa47633d2986c049cd68916bc9ce95ba2d0 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 8 Oct 2021 14:48:07 -0700 Subject: modules/windows: allow CustomTargets with more than one output for compile_resources --- docs/markdown/snippets/windows_custom_targets.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/markdown/snippets/windows_custom_targets.md (limited to 'docs/markdown/snippets') 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]) +``` -- cgit v1.1