Skip to content

Commit

Permalink
More android toolchains
Browse files Browse the repository at this point in the history
Shinmera committed Dec 29, 2024
1 parent f56125d commit 6102546
Showing 3 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -23,6 +23,16 @@ linux-aarch64:
$(CMAKE) . -B $(PREFIX)-$@ $(CMAKEFLAGS) -DCMAKE_TOOLCHAIN_FILE=cmake/aarch64-gcc-toolchain.cmake
$(MAKE) -C $(PREFIX)-$@

android-amd64:
mkdir -p $(PREFIX)-$@
$(CMAKE) . -B $(PREFIX)-$@ $(CMAKEFLAGS) -DCMAKE_TOOLCHAIN_FILE=cmake/amd64-android-toolchain.cmake
$(MAKE) -C $(PREFIX)-$@

android-arm7a:
mkdir -p $(PREFIX)-$@
$(CMAKE) . -B $(PREFIX)-$@ $(CMAKEFLAGS) -DCMAKE_TOOLCHAIN_FILE=cmake/arm7a-android-toolchain.cmake
$(MAKE) -C $(PREFIX)-$@

android-aarch64:
mkdir -p $(PREFIX)-$@
$(CMAKE) . -B $(PREFIX)-$@ $(CMAKEFLAGS) -DCMAKE_TOOLCHAIN_FILE=cmake/aarch64-android-toolchain.cmake
@@ -34,6 +44,8 @@ all:
$(MAKE) win32-i686
$(MAKE) linux-aarch64
$(MAKE) android-aarch64
$(MAKE) android-arm7a
$(MAKE) android-amd64

docs:
mkdir -p $(PREFIX)
4 changes: 4 additions & 0 deletions cmake/amd64-android-toolchain.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_ANDROID_API 21)
set(CMAKE_ANDROID_ARCH_ABI x86_64)
set(CMAKE_ANDROID_NDK /opt/android-ndk/)
4 changes: 4 additions & 0 deletions cmake/arm7a-android-toolchain.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_ANDROID_API 21)
set(CMAKE_ANDROID_ARCH_ABI armeabi-v7a)
set(CMAKE_ANDROID_NDK /opt/android-ndk/)

0 comments on commit 6102546

Please sign in to comment.