android: quit with error when trying to build vpx on arm and fix video deactivation on arm

parent 95b7669a
......@@ -115,9 +115,9 @@ else()
endif()
set(EP_vpx_LINKING_TYPE "--enable-static" "--disable-shared" "--enable-pic")
elseif(ANDROID)
string(FIND "${CMAKE_SYSTEM_PROCESSOR}" "armeabi" ARM_POSITION)
# if we are building for arm or armv7
if(${ARM_POSITION} EQUAL 0)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "armeabi")
message(FATAL_ERROR "VPX cannot be built on arm.")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "armeabi-v7a")
set(EP_vpx_TARGET "armv7-android-gcc")
else()
set(EP_vpx_TARGET "x86-android-gcc")
......
......@@ -49,14 +49,13 @@ set(LINPHONE_BUILDER_HOST "${CMAKE_SYSTEM_PROCESSOR}-linux-android")
set(CMAKE_INSTALL_RPATH "$ORIGIN")
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "armeabi" AND ENABLE_VIDEO)
message(STATUS "Disabling video for armv6")
set(ENABLE_VIDEO NO CACHE BOOL "")
set(ENABLE_FFMPEG NO CACHE BOOL "")
set(ENABLE_OPENH264 NO CACHE BOOL "")
set(ENABLE_VPX NO CACHE BOOL "")
set(ENABLE_X264 NO CACHE BOOL "")
set(ENABLE_VIDEO NO CACHE BOOL "" FORCE)
set(ENABLE_FFMPEG NO CACHE BOOL "" FORCE)
set(ENABLE_OPENH264 NO CACHE BOOL "" FORCE)
set(ENABLE_VPX NO CACHE BOOL "" FORCE)
set(ENABLE_X264 NO CACHE BOOL "" FORCE)
endif()
# Include builders
include(builders/CMakeLists.txt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment