Define CMAKE_SYSTEM_PROCESSOR in Toolchain.cmake for Android build.

This commit is contained in:
Pushen Wang 2021-04-03 00:41:37 +00:00 committed by Jonas Vautherin
parent 21500b227f
commit 7c1413a496
4 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR armv7-a)
set(CMAKE_ANDROID_ARCH_ABI armeabi-v7a)
set(cross_triple arm-linux-androideabi)

View File

@ -1,5 +1,6 @@
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(CMAKE_ANDROID_ARCH_ABI arm64-v8a)
set(cross_triple aarch64-linux-android)

View File

@ -1,5 +1,6 @@
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR i686)
set(CMAKE_ANDROID_ARCH_ABI x86)
set(cross_triple i686-linux-android)

View File

@ -1,5 +1,6 @@
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
set(CMAKE_ANDROID_ARCH_ABI x86_64)
set(cross_triple x86_64-linux-android)