Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/toolchain-mingw.cmake')
-rw-r--r--cmake/toolchain-mingw.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/toolchain-mingw.cmake b/cmake/toolchain-mingw.cmake
new file mode 100644
index 00000000..2e0bc669
--- /dev/null
+++ b/cmake/toolchain-mingw.cmake
@@ -0,0 +1,12 @@
+# Simple toolchain file for cross-building Windows PuTTY on Linux
+# using MinGW (tested on Ubuntu).
+
+set(CMAKE_SYSTEM_NAME Windows)
+set(CMAKE_SYSTEM_PROCESSOR x86_64)
+
+set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
+set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
+set(CMAKE_AR x86_64-w64-mingw32-ar)
+set(CMAKE_RANLIB x86_64-w64-mingw32-ranlib)
+
+add_compile_definitions(__USE_MINGW_ANSI_STDIO)