From bec8ca431c6d22ffc8c162146deaa4c05e2cba24 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 19 Jan 2025 22:49:33 +0100 Subject: [PATCH] Documentation update --- CHANGELOG.md | 2 ++ INSTALL-DEV.md | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c2ae2ea7..1eff8ed68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,9 @@ * Added translations for Traditional Chinese (zh_TW) * (Android) Added Pizza Boy SC standalone as an alternative emulator for the gamegear, genesis, mastersystem, megadrive and megadrivejp systems +* (Android) Changed all RetroArch core entries to use absolute paths (this makes the ancient Play store release work correctly) * (Android) Changed the target SDK version to 35 (Android 15) +* (macOS) Added a build script to cross-compile for x86_64 using an ARM processor ### Bug fixes diff --git a/INSTALL-DEV.md b/INSTALL-DEV.md index 3a20eb75e..9a5f476a8 100644 --- a/INSTALL-DEV.md +++ b/INSTALL-DEV.md @@ -580,6 +580,19 @@ export ASAN_OPTIONS=detect_container_overflow=0 Running ES-DE from the build directory may be a bit flaky as there is no Info.plist file available which is required for setting the proper window mode and such. It's therefore recommended to run the application from the installation directory for any more in-depth testing. But normal debugging can of course be done from the build directory. +**Cross-compiling for x86_64** + +To cross-compile for x86_64 using an ARM processor you only need to change two things. + +First you need to run `tools/macOS_dependencies_build_x86_cross.sh` instead of `tools/macOS_dependencies_build.sh` + +Second you need to pass the target architecture using the CMAKE_OSX_ARCHITECTURES variable such as this: +``` +cmake -DCMAKE_OSX_ARCHITECTURES=x86_64 . +``` + +Following this you can just build and package the application in the same way as a native ARM build. + **Code signing** A detailed explanation of macOS code signing is beyond the scope of this document, but the CMake option MACOS_CODESIGN_IDENTITY is used to specify the code signing certificate identity, for example: