diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:24:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:24:41 +0000 |
commit | a9bcc81f821d7c66f623779fa5147e728eb3c388 (patch) | |
tree | 98676963bcdd537ae5908a067a8eb110b93486a6 /docs/mingw-example/toolchain/cmake | |
parent | Initial commit. (diff) | |
download | freerdp3-a9bcc81f821d7c66f623779fa5147e728eb3c388.tar.xz freerdp3-a9bcc81f821d7c66f623779fa5147e728eb3c388.zip |
Adding upstream version 3.3.0+dfsg1.upstream/3.3.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/mingw-example/toolchain/cmake')
3 files changed, 45 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 |