You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ffmpeg-android-build/scripts/libaom/android.cmake

30 lines
1.2 KiB

# Enable NEON for all ARM processors
set(ANDROID_ARM_NEON TRUE)
# By including this file all necessary variables that point to compiler, linker, etc.
# will be setup. Well, almost all.
# Two variables have to be set before this line though:
# ANDROID_PLATOFORM - the API level to compile against (number)
# ANDROID_ABI - the API of the target platform
include("$ENV{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake")
# AS_EXECUTABLE (AV1 Codec Library's variable) should point to an assembler
# For x86 and x86_64 ABIs it needs yasm
# For armeabi-v7a and arm64-v8a is is ok to use GNU assembler
# When ANDROID_ABI is x86 or _86_64,
# then CMAKE_ASM_NASM_COMPILER variable will point to the yasm compiler (it is set by android.toolchain.cmake)
if(DEFINED CMAKE_ASM_NASM_COMPILER)
set(AS_EXECUTABLE ${CMAKE_ASM_NASM_COMPILER})
else()
set(AS_EXECUTABLE ${_CMAKE_TOOLCHAIN_PREFIX}as)
endif()
# AV1 Codec Library doesn't recognise 'i686' as CMAKE_SYSTEM_PROCESSOR
# We have to specify x86 in AOM_TARGET_CPU variable instead
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686")
set(AOM_TARGET_CPU x86)
endif()
# AV1 Codec Library doesn't recognise 'Android' as CMAKE_SYSTEM_NAME
# We should set it to Linux instead
set(CMAKE_SYSTEM_NAME "Linux")