diff options
author | Connor Abbott <cwabbott0@gmail.com> | 2021-07-02 12:59:07 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-07 18:54:45 +0300 |
commit | 62702005ebbf95699050ee5db26ee154bd874cb6 (patch) | |
tree | dde32837b92b3d6d58f1245c5f15584dd4786a0d /docs | |
parent | 81d9acab8744d5fbd067cfad0723975b694101f0 (diff) | |
download | meson-62702005ebbf95699050ee5db26ee154bd874cb6.zip meson-62702005ebbf95699050ee5db26ee154bd874cb6.tar.gz meson-62702005ebbf95699050ee5db26ee154bd874cb6.tar.bz2 |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/snippets/wrc.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/wrc.md b/docs/markdown/snippets/wrc.md new file mode 100644 index 0000000..0d60f4f --- /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. |