Documenting the export-host-variables.sh

ffmpeg_4.4.2
Javernaut 5 years ago
parent 9445a325bd
commit e927ebeb1c
  1. 5
      scripts/export-host-variables.sh

@ -1,5 +1,6 @@
# Defining a toolchain directory's name according to the current OS. # Defining a toolchain directory's name according to the current OS.
# Assume that proper version of NDK is installed. # Assume that proper version of NDK is installed
# and is referenced by ANDROID_NDK_HOME environment variable
case "$OSTYPE" in case "$OSTYPE" in
darwin*) HOST_TAG="darwin-x86_64" ;; darwin*) HOST_TAG="darwin-x86_64" ;;
linux*) HOST_TAG="linux-x86_64" ;; linux*) HOST_TAG="linux-x86_64" ;;
@ -17,5 +18,7 @@ else
HOST_NPROC=$(nproc) HOST_NPROC=$(nproc)
fi fi
# The variable is used as a path segment of the toolchain path
export HOST_TAG=$HOST_TAG export HOST_TAG=$HOST_TAG
# Number of physical cores in the system to facilitate parallel assembling
export HOST_NPROC=$HOST_NPROC export HOST_NPROC=$HOST_NPROC

Loading…
Cancel
Save