Adding support of Linux host machine for assembling

ffmpeg_4.4.2
Javernaut 6 years ago
parent 445c62b832
commit cbf9c6f19c
  1. 8
      ffmpeg-android-maker.sh

@ -2,6 +2,12 @@
FFMPEG_VERSION=4.1.3 FFMPEG_VERSION=4.1.3
# Assuming the script is used on macOS of Linux machine
case "$OSTYPE" in
darwin*) HOST_TAG="darwin-x86_64" ;;
linux*) HOST_TAG="linux-x86_64" ;;
esac
# Directories used by the script # Directories used by the script
BASE_DIR="$( cd "$( dirname "$0" )" && pwd )" BASE_DIR="$( cd "$( dirname "$0" )" && pwd )"
SOURCES_DIR=${BASE_DIR}/sources SOURCES_DIR=${BASE_DIR}/sources
@ -35,7 +41,7 @@ function assemble() {
ARCH=$1 ARCH=$1
API_LEVEL=$2 API_LEVEL=$2
TOOLCHAIN_PATH=${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/darwin-x86_64 TOOLCHAIN_PATH=${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/${HOST_TAG}
SYSROOT=${TOOLCHAIN_PATH}/sysroot SYSROOT=${TOOLCHAIN_PATH}/sysroot
CC_ANDROID_POSTFIX= CC_ANDROID_POSTFIX=

Loading…
Cancel
Save