visualboyadvance-m/cmake
Rafael Kitover 6307348cbc build: support MSVC arm64 cross build on x86
Adjust cmake code to support building a Windows arm64 binary on a
Windows x86/x64 host.

Add /EHsc to MSVC compiler flags for exception unwind support.

Check VCPKG_TARGET_TRIPLET in Architecture.cmake to set the appropriate
cmake variables for cross-compiling for arm64.

Add MSVC_x86_Host_Compile.cmake script, used from HostCompile.cmake, to
adjust the path of the cl.exe compiler and ENV{LIB} to build a C program
for x86 when cross-compiling, necessary for the bin2c utility.

Use wxrc from dependencies submodule when cross-compiling, because the
cross wxrc executable cannot be run on the host.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2022-12-29 20:29:53 -08:00
..
Architecture.cmake build: support MSVC arm64 cross build on x86 2022-12-29 20:29:53 -08:00
CMakeASM_NASMInformation.cmake cmake: remove <INCLUDES> from nasm definition 2019-02-22 15:11:01 +00:00
CMakeDetermineASM_NASMCompiler.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
CMakeTestASM_NASMCompiler.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
ChangeLogVersion.cmake cmake: fix reading version from changelog 2019-10-05 20:32:46 +00:00
FileIterator.cmake cmake: Make FileIterator more correct, add eg.. 2020-01-26 23:35:09 +00:00
FindDirectX.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
FindFFmpeg.cmake cmake: Fix ffmpeg regression on Windows. 2020-01-23 01:49:44 +00:00
FindGettext.cmake update translations, add new langs from transifex 2018-08-11 16:18:15 -07:00
FindOpenAL.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
FindSDL2.cmake build: restrict MSVC static libs to .lib only 2022-11-28 10:23:33 -08:00
FindSFML.cmake builder: update core dists and macOS build 2022-11-12 13:23:54 +00:00
FindSSP.cmake cmake: refactor FindSSP.cmake 2019-02-16 13:04:43 -08:00
GetGitRevisionDescription.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
GetGitRevisionDescription.cmake.in rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
GitTagVersion.cmake add mac release builder script 2017-10-12 01:32:18 -07:00
HostCompile.cmake build: support MSVC arm64 cross build on x86 2022-12-29 20:29:53 -08:00
LLVMToolchain.cmake support FreeBSD 2019-04-25 16:22:07 +00:00
MSVC_x86_Host_Compile.cmake build: support MSVC arm64 cross build on x86 2022-12-29 20:29:53 -08:00
MacPackageManagers.cmake rename CMakeScripts/ to cmake/ 2017-09-13 20:30:33 -07:00
MakeReleaseCommitAndTag.cmake cmake: Add UPDATE_APPCAST script for appcast.xml. 2020-02-08 22:53:53 +00:00
PathRun.cmake cmake: Silence cmake policy warning CMP0058. 2019-10-05 18:33:44 -07:00
RemoveStrawberryPerlFromPATH.cmake build: fix syntax and rm dbg prints from 2a65e92d 2022-11-28 18:34:48 +00:00
Set-Toolchain-vcpkg.cmake [build] Add VS Code integration 2022-11-12 13:26:23 +00:00
SetCompilerLinkerFlags.cmake [build] Add basic clang-cl support 2022-10-15 22:25:34 +00:00
Toolchain-cross-MinGW-w64-common.cmake builder: minor fixes for mingw. 2020-02-02 03:35:26 +00:00
Toolchain-cross-MinGW-w64-i686-static.cmake builder: minor fixes for mingw. 2020-02-02 03:35:26 +00:00
Toolchain-cross-MinGW-w64-i686.cmake builder: minor fixes for mingw. 2020-02-02 03:35:26 +00:00
Toolchain-cross-MinGW-w64-x86_64-static.cmake builder: minor fixes for mingw. 2020-02-02 03:35:26 +00:00
Toolchain-cross-MinGW-w64-x86_64.cmake builder: minor fixes for mingw. 2020-02-02 03:35:26 +00:00
Toolchain-cross-m32.cmake cmake: fix finding 32 bit wxWidgets on gentoo 2019-02-22 08:50:04 -08:00
UpdateAppcast.cmake [Windows,MacOS] Auto-updater refactoring. (#639) 2020-05-07 23:06:00 -03:00
UseGCCBinUtilsWrappers.cmake work around gcc lto wrappers bug with gcc 7.x 2017-09-16 19:47:39 -07:00
VbamFunctions.cmake Fix Wx OpenGL and ABI checks for MSYS2 CLANG64. 2022-02-05 01:00:25 +00:00
doctest.cmake Replace Catch2 with doctest for unit tests. 2020-08-28 05:14:22 +00:00
doctestAddTests.cmake Replace Catch2 with doctest for unit tests. 2020-08-28 05:14:22 +00:00