Further simplifying of export-build-variables.sh

ffmpeg_4.4.2
Javernaut 3 years ago
parent 5c14447e86
commit 3c62f13eed
  1. 19
      scripts/export-build-variables.sh
  2. 2
      scripts/ffmpeg/build.sh
  3. 2
      scripts/libdav1d/build.sh

@ -23,34 +23,29 @@ export TARGET_TRIPLE_OS="android"
case $ANDROID_ABI in case $ANDROID_ABI in
armeabi-v7a) armeabi-v7a)
#cc armv7a-linux-androideabi16-clang #cc armv7a-linux-androideabi16-clang
#binutils arm -linux-androideabi -ld export TARGET_TRIPLE_MACHINE_ARCH=arm
export TARGET_TRIPLE_MACHINE_BINUTILS=arm
TARGET_TRIPLE_MACHINE_CC=armv7a TARGET_TRIPLE_MACHINE_CC=armv7a
export TARGET_TRIPLE_OS=androideabi export TARGET_TRIPLE_OS=androideabi
;; ;;
arm64-v8a) arm64-v8a)
#cc aarch64-linux-android21-clang #cc aarch64-linux-android21-clang
#binutils aarch64-linux-android -ld export TARGET_TRIPLE_MACHINE_ARCH=aarch64
export TARGET_TRIPLE_MACHINE_BINUTILS=aarch64
;; ;;
x86) x86)
#cc i686-linux-android16-clang #cc i686-linux-android16-clang
#binutils i686-linux-android -ld export TARGET_TRIPLE_MACHINE_ARCH=i686
export TARGET_TRIPLE_MACHINE_BINUTILS=i686
CPU_FAMILY=x86 CPU_FAMILY=x86
;; ;;
x86_64) x86_64)
#cc x86_64-linux-android21-clang #cc x86_64-linux-android21-clang
#binutils x86_64-linux-android -ld export TARGET_TRIPLE_MACHINE_ARCH=x86_64
export TARGET_TRIPLE_MACHINE_BINUTILS=x86_64
;; ;;
esac esac
# If the cc-specific variable isn't set, we fallback to binutils version # If the cc-specific variable isn't set, we fallback to binutils version
[ -z "${TARGET_TRIPLE_MACHINE_CC}" ] && TARGET_TRIPLE_MACHINE_CC=${TARGET_TRIPLE_MACHINE_BINUTILS} [ -z "${TARGET_TRIPLE_MACHINE_CC}" ] && TARGET_TRIPLE_MACHINE_CC=${TARGET_TRIPLE_MACHINE_ARCH}
export TARGET_TRIPLE_MACHINE_CC=$TARGET_TRIPLE_MACHINE_CC
[ -z "${CPU_FAMILY}" ] && CPU_FAMILY=${TARGET_TRIPLE_MACHINE_BINUTILS} [ -z "${CPU_FAMILY}" ] && CPU_FAMILY=${TARGET_TRIPLE_MACHINE_ARCH}
export CPU_FAMILY=$CPU_FAMILY export CPU_FAMILY=$CPU_FAMILY
# Common prefix for ld, as, etc. # Common prefix for ld, as, etc.
@ -70,7 +65,7 @@ export FAM_STRINGS=${CROSS_PREFIX_WITH_PATH}strings
export FAM_STRIP=${CROSS_PREFIX_WITH_PATH}strip export FAM_STRIP=${CROSS_PREFIX_WITH_PATH}strip
export TARGET=${TARGET_TRIPLE_MACHINE_CC}-linux-${TARGET_TRIPLE_OS}${ANDROID_PLATFORM} export TARGET=${TARGET_TRIPLE_MACHINE_CC}-linux-${TARGET_TRIPLE_OS}${ANDROID_PLATFORM}
# The name for compiler is slightly different, so it is defined separatly. # The name for compiler is slightly different, so it is defined separately.
export FAM_CC=${TOOLCHAIN_PATH}/bin/${TARGET}-clang export FAM_CC=${TOOLCHAIN_PATH}/bin/${TARGET}-clang
export FAM_CXX=${FAM_CC}++ export FAM_CXX=${FAM_CC}++
export FAM_LD=${FAM_CC} export FAM_LD=${FAM_CC}

@ -29,7 +29,7 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
--prefix=${BUILD_DIR_FFMPEG}/${ANDROID_ABI} \ --prefix=${BUILD_DIR_FFMPEG}/${ANDROID_ABI} \
--enable-cross-compile \ --enable-cross-compile \
--target-os=android \ --target-os=android \
--arch=${TARGET_TRIPLE_MACHINE_BINUTILS} \ --arch=${TARGET_TRIPLE_MACHINE_ARCH} \
--sysroot=${SYSROOT_PATH} \ --sysroot=${SYSROOT_PATH} \
--cc=${FAM_CC} \ --cc=${FAM_CC} \
--cxx=${FAM_CXX} \ --cxx=${FAM_CXX} \

@ -19,7 +19,7 @@ sys_root = '${SYSROOT_PATH}'
[host_machine] [host_machine]
system = 'linux' system = 'linux'
cpu_family = '${CPU_FAMILY}' cpu_family = '${CPU_FAMILY}'
cpu = '${TARGET_TRIPLE_MACHINE_BINUTILS}' cpu = '${TARGET_TRIPLE_MACHINE_ARCH}'
endian = 'little' endian = 'little'
[paths] [paths]

Loading…
Cancel
Save