[x265] [PATCH RFC] build: add example cross-compile script for Win64 on MinGW32
Steve Borho
steve at borho.org
Fri Feb 14 21:04:34 CET 2014
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1392408235 21600
# Fri Feb 14 14:03:55 2014 -0600
# Node ID 780def86b495a6c5c82978f745ec8f08690d6c5a
# Parent ad21da9b607c7053a0e59639102cac02aec7b5ba
build: add example cross-compile script for Win64 on MinGW32
diff -r ad21da9b607c -r 780def86b495 build/msys/make-x86_64-w64-mingw32-Makefiles.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/msys/make-x86_64-w64-mingw32-Makefiles.sh Fri Feb 14 14:03:55 2014 -0600
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# This will generate a cross-compile environment, compiling an x86_64
+# Win64 target from a 32bit MinGW32 host environment. If your MinGW
+# install is 64bit, you can use the native compiler batch file:
+# make-Makefiles.sh
+
+cmake -G "MSYS Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain-x86_64-w64-mingw32.cmake ../../source && cmake-gui ../../source
diff -r ad21da9b607c -r 780def86b495 build/msys/toolchain-x86_64-w64-mingw32.cmake
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/build/msys/toolchain-x86_64-w64-mingw32.cmake Fri Feb 14 14:03:55 2014 -0600
@@ -0,0 +1,6 @@
+SET(CMAKE_SYSTEM_NAME Windows)
+SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
+SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
+SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
+SET(CMAKE_RANLIB x86_64-w64-mingw32-ranlib)
+SET(CMAKE_ASM_YASM_COMPILER yasm)
More information about the x265-devel
mailing list