From 8ac267c8db771bf87111e29f0511b26e145819fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 21 Oct 2021 19:16:01 +0200 Subject: Figure out how to abuse MSYS2 repositories In the end, all seems to work fairly well on Windows 10. --- README.adoc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'README.adoc') diff --git a/README.adoc b/README.adoc index b1d65c7..ebfd0b6 100644 --- a/README.adoc +++ b/README.adoc @@ -51,7 +51,7 @@ After _cpack_ finishes making the package, install this file. Build from source on Windows ---------------------------- -_Note that with the current method we're stuck with GTK+ 3.10.4 at best._ +_Note that with the current method we're stuck with GTK+ 3.8.2._ First install CMake >= 3.1 and MinGW. Add both to your system path. If you want to build an installation package, also install NSIS. @@ -86,7 +86,6 @@ By default, that is if you specify no generator, both packages are built. Cross-compilation for Windows ----------------------------- - The procedure is almost exactly the same as before, including the requirements. Just install MinGW-w64 and let automation take care of the rest. @@ -94,7 +93,17 @@ Just install MinGW-w64 and let automation take care of the rest. $ mkdir build $ cd build $ cmake .. \ - -DCMAKE_TOOLCHAIN_FILE=../ToolchainDebianMinGWW64.cmake \ + -DCMAKE_TOOLCHAIN_FILE=../ToolchainCrossMinGWW64.cmake \ + -DCMAKE_BUILD_TYPE=Release + $ cpack + +Alternatively, for an unnecessarily bloated MSYS2-based 64-bit build: + + $ sh Win64Depends.cmake + $ mkdir build + $ cd build + $ cmake .. \ + -DCMAKE_TOOLCHAIN_FILE=../ToolchainCrossWin64.cmake \ -DCMAKE_BUILD_TYPE=Release $ cpack -- cgit v1.2.3