contrib: toolchain.cmake: enforce variables for android
commitd1a978c32468cc5d07730e165593b4ed90530cd7
authorAlexandre Janniaux <ajanni@videolabs.io>
Tue, 26 Nov 2019 09:56:41 +0000 (26 10:56 +0100)
committerThomas Guillem <thomas@gllm.fr>
Tue, 26 Nov 2019 10:03:39 +0000 (26 11:03 +0100)
tree88a146ac2a69fa8881119644537e7fa43ed93047
parente08b8f6a8431fefe142a85e24e08a1c6dcc74183
contrib: toolchain.cmake: enforce variables for android

CMAKE_SYSTEM_PROCESSOR must match specific rules for Android, defined in
the CMake files: Modules/Platform/Android-Determine.cmake.  Instead, pass
down the ANDROID_ABI variable to the CMAKE_ANDROID_ARCH_ABI which will be
used to set the correct environment, including the processor variable.

Also enforce CMAKE_SYSTEM_NAME to have CMAKE_CROSSCOMPILE = true and
CMAKE_ANDROID_ARM_NEON with armeabi-v7a for correct neon support and
enable switch.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
contrib/src/main.mak