Skip to content

Commit

Permalink
Merge pull request #121 from garbear/macos-arm64
Browse files Browse the repository at this point in the history
Add support for macOS ARM64
  • Loading branch information
garbear authored May 26, 2024
2 parents 17201d8 + e4f123b commit 4345ca1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/addon/Jenkinsfile.j2
Original file line number Diff line number Diff line change
@@ -1 +1 @@
buildPlugin(version: "Nexus", platforms: {{ ['android-aarch64', 'android-armv7', 'osx-x86_64', 'windows-i686', 'windows-x86_64']|reject("in", libretro_repo.exclude_platforms)|list()|tojson() }})
buildPlugin(version: "Nexus", platforms: {{ ['android-aarch64', 'android-armv7', 'osx-x86_64', 'osx-arm64', 'windows-i686', 'windows-x86_64']|reject("in", libretro_repo.exclude_platforms)|list()|tojson() }})
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ if(CORE_SYSTEM_NAME STREQUAL windows)
elseif(CORE_SYSTEM_NAME STREQUAL linux)
set(BUILD_COMMAND $(MAKE) -C {{ makefile.dir }} -f {{ makefile.file }} {{ config.cmake_options | default('') }} platform=unix ${LIBRETRO_DEBUG} GIT_VERSION=)
elseif(CORE_SYSTEM_NAME STREQUAL osx)
set(BUILD_COMMAND $(MAKE) -C {{ makefile.dir }} -f {{ makefile.file }} {{ config.cmake_options | default('') }} platform=osx ${LIBRETRO_DEBUG} GIT_VERSION=)
if(CPU STREQUAL arm64)
set(ARCH arm)
else()
set(ARCH intel)
endif()
set(BUILD_COMMAND $(MAKE) -C {{ makefile.dir }} -f {{ makefile.file }} {{ config.cmake_options | default('') }} platform=osx arch=${ARCH} ${LIBRETRO_DEBUG} GIT_VERSION=)
elseif(CORE_SYSTEM_NAME STREQUAL ios OR CORE_SYSTEM_NAME STREQUAL darwin_embedded)
if(CORE_PLATFORM_NAME STREQUAL ios)
set(LIBRETRO_SONAME {{ library.soname }}_ios${CMAKE_SHARED_LIBRARY_SUFFIX})
Expand Down

0 comments on commit 4345ca1

Please sign in to comment.