From 62702005ebbf95699050ee5db26ee154bd874cb6 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 2 Jul 2021 12:59:07 +0200 Subject: windows: Support wrc resource compiler It has a similar interface to windres, but it produces ELF instead of COFF binaries. It uses its own preprocessor which doesn't support creating depfiles, but we can convince it to use the system preprocessor instead and pass those arguments using the --preprocessor option. Together with some hacks to override the shared library/executable suffix and some wine patches [1] this is enough to compile dxvk when ripping out the hand-rolled rc support. [1] https://www.winehq.org/pipermail/wine-devel/2021-July/190100.html https://www.winehq.org/pipermail/wine-devel/2021-July/190098.html https://www.winehq.org/pipermail/wine-devel/2021-July/190099.html https://www.winehq.org/pipermail/wine-devel/2021-July/190101.html --- docs/markdown/snippets/wrc.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/markdown/snippets/wrc.md (limited to 'docs') diff --git a/docs/markdown/snippets/wrc.md b/docs/markdown/snippets/wrc.md new file mode 100644 index 000000000..0d60f4ffc --- /dev/null +++ b/docs/markdown/snippets/wrc.md @@ -0,0 +1,7 @@ +## Support for the Wine Resource Compiler + +Users can now choose `wrc` as the `windres` binary in their cross files and +`windows.compile_resources` will handle it correctly. Together with `winegcc` +patches in Wine 6.12 this enables basic support for compiling projects as a +winelib by specifying `winegcc`/`wineg++` as the compiler and `wrc` as the +resource compiler in a cross file. -- cgit v1.2.3