diff options
Diffstat (limited to 'docs/mingw-example/toolchain')
6 files changed, 92 insertions, 0 deletions
diff --git a/docs/mingw-example/toolchain/cmake/aarch64-w64-mingw32-toolchain.cmake b/docs/mingw-example/toolchain/cmake/aarch64-w64-mingw32-toolchain.cmake new file mode 100644 index 0000000..d144eb4 --- /dev/null +++ b/docs/mingw-example/toolchain/cmake/aarch64-w64-mingw32-toolchain.cmake @@ -0,0 +1,15 @@ +set(CMAKE_C_COMPILER aarch64-w64-mingw32-gcc) +set(CMAKE_CXX_COMPILER aarch64-w64-mingw32-g++) +set(CMAKE_FIND_ROOT_PATH /usr/aarch64-w64-mingw32) + +execute_process(COMMAND which aarch64-w64-mingw32-windres OUTPUT_VARIABLE TOOLCHAIN_RC_COMPILER) +execute_process(COMMAND which aarch64-w64-mingw32-dlltool OUTPUT_VARIABLE TOOLCHAIN_DLLTOOL) + +string(STRIP ${TOOLCHAIN_RC_COMPILER} TOOLCHAIN_RC_COMPILER) +set(CMAKE_RC_COMPILER ${TOOLCHAIN_RC_COMPILER}) + +string(STRIP ${TOOLCHAIN_DLLTOOL} TOOLCHAIN_DLLTOOL) +set(DLLTOOL ${TOOLCHAIN_DLLTOOL}) + +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_SYSTEM_NAME Windows)
\ No newline at end of file diff --git a/docs/mingw-example/toolchain/cmake/i686-w64-mingw32-toolchain.cmake b/docs/mingw-example/toolchain/cmake/i686-w64-mingw32-toolchain.cmake new file mode 100644 index 0000000..3cffb81 --- /dev/null +++ b/docs/mingw-example/toolchain/cmake/i686-w64-mingw32-toolchain.cmake @@ -0,0 +1,15 @@ +set(CMAKE_C_COMPILER i686-w64-mingw32-gcc) +set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) +set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32) + +execute_process(COMMAND which i686-w64-mingw32-windres OUTPUT_VARIABLE TOOLCHAIN_RC_COMPILER) +execute_process(COMMAND which i686-w64-mingw32-dlltool OUTPUT_VARIABLE TOOLCHAIN_DLLTOOL) + +string(STRIP ${TOOLCHAIN_RC_COMPILER} TOOLCHAIN_RC_COMPILER) +set(CMAKE_RC_COMPILER ${TOOLCHAIN_RC_COMPILER}) + +string(STRIP ${TOOLCHAIN_DLLTOOL} TOOLCHAIN_DLLTOOL) +set(DLLTOOL ${TOOLCHAIN_DLLTOOL}) + +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_SYSTEM_NAME Windows)
\ No newline at end of file diff --git a/docs/mingw-example/toolchain/cmake/x86_64-w64-mingw32-toolchain.cmake b/docs/mingw-example/toolchain/cmake/x86_64-w64-mingw32-toolchain.cmake new file mode 100644 index 0000000..19d9a58 --- /dev/null +++ b/docs/mingw-example/toolchain/cmake/x86_64-w64-mingw32-toolchain.cmake @@ -0,0 +1,15 @@ +set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) +set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) +set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32) + +execute_process(COMMAND which x86_64-w64-mingw32-windres OUTPUT_VARIABLE TOOLCHAIN_RC_COMPILER) +execute_process(COMMAND which x86_64-w64-mingw32-dlltool OUTPUT_VARIABLE TOOLCHAIN_DLLTOOL) + +string(STRIP ${TOOLCHAIN_RC_COMPILER} TOOLCHAIN_RC_COMPILER) +set(CMAKE_RC_COMPILER ${TOOLCHAIN_RC_COMPILER}) + +string(STRIP ${TOOLCHAIN_DLLTOOL} TOOLCHAIN_DLLTOOL) +set(DLLTOOL ${TOOLCHAIN_DLLTOOL}) + +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_SYSTEM_NAME Windows)
\ No newline at end of file diff --git a/docs/mingw-example/toolchain/meson/aarch64.txt b/docs/mingw-example/toolchain/meson/aarch64.txt new file mode 100644 index 0000000..f1f9c3c --- /dev/null +++ b/docs/mingw-example/toolchain/meson/aarch64.txt @@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-w64-mingw32-gcc' +cpp = 'aarch64-w64-mingw32-g++' +ar = 'aarch64-w64-mingw32-ar' +ld = 'aarch64-w64-mingw32-ld' +strip = 'aarch64-w64-mingw32-strip' + +[host_machine] +system = 'windows' +cpu_family = 'aarch64' +cpu = 'native' +endian = 'little' + +[properties] +platform = 'generic_aarch64'
\ No newline at end of file diff --git a/docs/mingw-example/toolchain/meson/i686.txt b/docs/mingw-example/toolchain/meson/i686.txt new file mode 100644 index 0000000..8dfeef1 --- /dev/null +++ b/docs/mingw-example/toolchain/meson/i686.txt @@ -0,0 +1,16 @@ +[binaries] +c = 'i686-w64-mingw32-gcc' +cpp = 'i686-w64-mingw32-g++' +ar = 'i686-w64-mingw32-ar' +ld = 'i686-w64-mingw32-ld' +strip = 'i686-w64-mingw32-strip' + +[host_machine] +system = 'windows' +cpu_family = 'x86' +cpu = 'native' +endian = 'little' + +[properties] +c_args = '-mno-avx512f' +cpp_args = '-mno-avx512f'
\ No newline at end of file diff --git a/docs/mingw-example/toolchain/meson/x86_64.txt b/docs/mingw-example/toolchain/meson/x86_64.txt new file mode 100644 index 0000000..587f34b --- /dev/null +++ b/docs/mingw-example/toolchain/meson/x86_64.txt @@ -0,0 +1,16 @@ +[binaries] +c = 'x86_64-w64-mingw32-gcc' +cpp = 'x86_64-w64-mingw32-g++' +ar = 'x86_64-w64-mingw32-ar' +ld = 'x86_64-w64-mingw32-ld' +strip = 'x86_64-w64-mingw32-strip' + +[host_machine] +system = 'windows' +cpu_family = 'x86_64' +cpu = 'native' +endian = 'little' + +[properties] +c_args = '-mno-avx512f' +cpp_args = '-mno-avx512f'
\ No newline at end of file |