add external library sources
This commit is contained in:
parent
d1b916a7ab
commit
783a6b5b41
@ -1,33 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="expat"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,33 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="fontconfig"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,33 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="freetype"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
@ -38,7 +18,7 @@ cd ${BASEDIR}/src/${LIB_NAME} || exit 1
|
||||
|
||||
make distclean 2>/dev/null 1>/dev/null
|
||||
|
||||
# OVERRIDING PKG-CONFIG
|
||||
# OVERRIDE PKG-CONFIG
|
||||
export LIBPNG_CFLAGS="-I${BASEDIR}/prebuilt/android-$(get_target_build)/libpng/include"
|
||||
export LIBPNG_LIBS="-L${BASEDIR}/prebuilt/android-$(get_target_build)/libpng/lib"
|
||||
|
||||
|
@ -1,33 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="fribidi"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,33 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="jpeg"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,33 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="libass"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
@ -43,6 +23,7 @@ if [[ ${RECONF_libass} -eq 1 ]]; then
|
||||
autoreconf_library ${LIB_NAME}
|
||||
fi
|
||||
|
||||
# SET ARCH OPTIONS
|
||||
ASM_FLAGS=""
|
||||
case ${ARCH} in
|
||||
x86)
|
||||
|
@ -1,33 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="libiconv"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,33 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="libilbc"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,49 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then
|
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${API} ]]; then
|
||||
echo -e "\n(*) API not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
. ${BASEDIR}/build/android-common.sh
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="openh264"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
LDFLAGS=$(get_ldflags ${LIB_NAME})
|
||||
|
||||
# SET ARCH OPTIONS
|
||||
case ${ARCH} in
|
||||
arm-v7a-neon)
|
||||
ASM_ARCH=arm
|
||||
ARCH_OPTIONS=arm
|
||||
CFLAGS+=" -DHAVE_NEON -DANDROID_NDK"
|
||||
;;
|
||||
arm64-v8a)
|
||||
ASM_ARCH=arm64
|
||||
ARCH_OPTIONS=arm64
|
||||
CFLAGS+=" -DHAVE_NEON_AARCH64 -DANDROID_NDK"
|
||||
;;
|
||||
x86*)
|
||||
ASM_ARCH=x86
|
||||
ARCH_OPTIONS=x86
|
||||
CFLAGS+=" -DHAVE_AVX2 -DANDROID_NDK"
|
||||
;;
|
||||
esac
|
||||
@ -73,7 +54,7 @@ NDKLEVEL="${API}" \
|
||||
NDKROOT="${ANDROID_NDK_ROOT}" \
|
||||
NDK_TOOLCHAIN_VERSION=clang \
|
||||
AR="$AR" \
|
||||
ASM_ARCH=${ASM_ARCH} \
|
||||
ARCH_OPTIONS=${ARCH_OPTIONS} \
|
||||
TARGET="android-${API}" \
|
||||
install-static || exit 1
|
||||
|
||||
|
@ -1,37 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${TARGET_SDK} ]]; then
|
||||
echo -e "\n(*) TARGET_SDK not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${SDK_PATH} ]]; then
|
||||
echo -e "\n(*) SDK_PATH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
if [[ ${FFMPEG_KIT_BUILD_TYPE} == "tvos" ]]; then
|
||||
. ${BASEDIR}/build/tvos-common.sh
|
||||
else
|
||||
. ${BASEDIR}/build/ios-common.sh
|
||||
fi
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="expat"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,37 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${TARGET_SDK} ]]; then
|
||||
echo -e "\n(*) TARGET_SDK not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${SDK_PATH} ]]; then
|
||||
echo -e "\n(*) SDK_PATH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
if [[ ${FFMPEG_KIT_BUILD_TYPE} == "tvos" ]]; then
|
||||
. ${BASEDIR}/build/tvos-common.sh
|
||||
else
|
||||
. ${BASEDIR}/build/ios-common.sh
|
||||
fi
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="fontconfig"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,37 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${TARGET_SDK} ]]; then
|
||||
echo -e "\n(*) TARGET_SDK not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${SDK_PATH} ]]; then
|
||||
echo -e "\n(*) SDK_PATH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
if [[ ${FFMPEG_KIT_BUILD_TYPE} == "tvos" ]]; then
|
||||
. ${BASEDIR}/build/tvos-common.sh
|
||||
else
|
||||
. ${BASEDIR}/build/ios-common.sh
|
||||
fi
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="freetype"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
@ -42,7 +18,7 @@ cd ${BASEDIR}/src/${LIB_NAME} || exit 1
|
||||
|
||||
make distclean 2>/dev/null 1>/dev/null
|
||||
|
||||
# OVERRIDING PKG-CONFIG
|
||||
# OVERRIDE PKG-CONFIG
|
||||
export LIBPNG_CFLAGS="-I${BASEDIR}/prebuilt/$(get_target_build_directory)/libpng/include"
|
||||
export LIBPNG_LIBS="-L${BASEDIR}/prebuilt/$(get_target_build_directory)/libpng/lib"
|
||||
|
||||
|
@ -1,37 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${TARGET_SDK} ]]; then
|
||||
echo -e "\n(*) TARGET_SDK not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${SDK_PATH} ]]; then
|
||||
echo -e "\n(*) SDK_PATH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
if [[ ${FFMPEG_KIT_BUILD_TYPE} == "tvos" ]]; then
|
||||
. ${BASEDIR}/build/tvos-common.sh
|
||||
else
|
||||
. ${BASEDIR}/build/ios-common.sh
|
||||
fi
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="fribidi"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,44 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${TARGET_SDK} ]]; then
|
||||
echo -e "\n(*) TARGET_SDK not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${SDK_PATH} ]]; then
|
||||
echo -e "\n(*) SDK_PATH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
if [[ ${FFMPEG_KIT_BUILD_TYPE} == "tvos" ]]; then
|
||||
. ${BASEDIR}/build/tvos-common.sh
|
||||
else
|
||||
. ${BASEDIR}/build/ios-common.sh
|
||||
fi
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="jpeg"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
export CCAS=${AS}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME})
|
||||
export ASM_FLAGS=$(get_asmflags ${LIB_NAME})
|
||||
|
||||
# SET ARCH OPTIONS
|
||||
ARCH_OPTIONS=""
|
||||
case ${ARCH} in
|
||||
armv7 | armv7s | arm64 | arm64e)
|
||||
|
@ -1,43 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${TARGET_SDK} ]]; then
|
||||
echo -e "\n(*) TARGET_SDK not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${SDK_PATH} ]]; then
|
||||
echo -e "\n(*) SDK_PATH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
if [[ ${FFMPEG_KIT_BUILD_TYPE} == "tvos" ]]; then
|
||||
. ${BASEDIR}/build/tvos-common.sh
|
||||
else
|
||||
. ${BASEDIR}/build/ios-common.sh
|
||||
fi
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="libass"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME})
|
||||
export PKG_CONFIG_LIBDIR=${INSTALL_PKG_CONFIG_DIR}
|
||||
|
||||
# SET ARCH OPTIONS
|
||||
ARCH_OPTIONS=""
|
||||
case ${ARCH} in
|
||||
x86-64 | x86-64-mac-catalyst)
|
||||
|
@ -1,37 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${TARGET_SDK} ]]; then
|
||||
echo -e "\n(*) TARGET_SDK not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${SDK_PATH} ]]; then
|
||||
echo -e "\n(*) SDK_PATH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
if [[ ${FFMPEG_KIT_BUILD_TYPE} == "tvos" ]]; then
|
||||
. ${BASEDIR}/build/tvos-common.sh
|
||||
else
|
||||
. ${BASEDIR}/build/ios-common.sh
|
||||
fi
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="libilbc"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
export CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
|
@ -1,43 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z ${ARCH} ]]; then
|
||||
echo -e "\n(*) ARCH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${TARGET_SDK} ]]; then
|
||||
echo -e "\n(*) TARGET_SDK not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${SDK_PATH} ]]; then
|
||||
echo -e "\n(*) SDK_PATH not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z ${BASEDIR} ]]; then
|
||||
echo -e "\n(*) BASEDIR not defined\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ENABLE COMMON FUNCTIONS
|
||||
if [[ ${FFMPEG_KIT_BUILD_TYPE} == "tvos" ]]; then
|
||||
. ${BASEDIR}/build/tvos-common.sh
|
||||
else
|
||||
. ${BASEDIR}/build/ios-common.sh
|
||||
fi
|
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh
|
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR}
|
||||
LIB_NAME="openh264"
|
||||
set_toolchain_paths ${LIB_NAME}
|
||||
|
||||
# PREPARING FLAGS
|
||||
# SET BUILD FLAGS
|
||||
BUILD_HOST=$(get_build_host)
|
||||
CFLAGS=$(get_cflags ${LIB_NAME})
|
||||
CXXFLAGS=$(get_cxxflags ${LIB_NAME})
|
||||
LDFLAGS=$(get_ldflags ${LIB_NAME})
|
||||
|
||||
OS_OPTIONS="OS=ios"
|
||||
# SET ARCH OPTIONS
|
||||
ARCH_OPTIONS="OS=ios"
|
||||
case ${ARCH} in
|
||||
armv7 | armv7s)
|
||||
CFLAGS+=" -DHAVE_NEON"
|
||||
@ -46,7 +23,7 @@ case ${ARCH} in
|
||||
CFLAGS+=" -DHAVE_NEON_AARCH64"
|
||||
;;
|
||||
x86-64-mac-catalyst)
|
||||
OS_OPTIONS=""
|
||||
ARCH_OPTIONS=""
|
||||
CFLAGS+=" -DHAVE_AVX2"
|
||||
;;
|
||||
*)
|
||||
@ -74,7 +51,7 @@ CFLAGS="$CFLAGS" \
|
||||
CXX="${CXX}" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LDFLAGS="$LDFLAGS" \
|
||||
${OS_OPTIONS} \
|
||||
${ARCH_OPTIONS} \
|
||||
PREFIX="${BASEDIR}/prebuilt/$(get_target_build_directory)/${LIB_NAME}" \
|
||||
SDK_MIN="${IOS_MIN_VERSION}" \
|
||||
SDKROOT="${SDK_PATH}" \
|
||||
|
@ -8,7 +8,12 @@ get_library_source() {
|
||||
case $1 in
|
||||
cpu-features)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/cpu_features"
|
||||
SOURCE_ID="v0.4.1.1" # TAG
|
||||
SOURCE_ID="v0.4.1.1"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
expat)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/libexpat"
|
||||
SOURCE_ID="R_2_2_10"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
ffmpeg)
|
||||
@ -16,6 +21,46 @@ get_library_source() {
|
||||
SOURCE_ID="d222da435e63a2665b85c0305ad2cf8a07b1af6d" # COMMIT -> v4.4-dev-416
|
||||
SOURCE_TYPE="COMMIT"
|
||||
;;
|
||||
fontconfig)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/fontconfig"
|
||||
SOURCE_ID="2.13.92"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
freetype)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/freetype2"
|
||||
SOURCE_ID="VER-2-10-2"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
fribidi)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/fribidi"
|
||||
SOURCE_ID="v1.0.10"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
jpeg)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/libjpeg-turbo"
|
||||
SOURCE_ID="2.0.5"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
libass)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/libass"
|
||||
SOURCE_ID="0.15.0"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
libiconv)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/libiconv"
|
||||
SOURCE_ID="v1.16"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
libilbc)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/libilbc"
|
||||
SOURCE_ID="v2.0.2"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
openh264)
|
||||
SOURCE_REPO_URL="https://github.com/tanersener/openh264"
|
||||
SOURCE_ID="v2.1.1"
|
||||
SOURCE_TYPE="TAG"
|
||||
;;
|
||||
esac
|
||||
|
||||
case $2 in
|
||||
|
3
src/.gitignore
vendored
3
src/.gitignore
vendored
@ -1,2 +1,5 @@
|
||||
cpu-features
|
||||
ffmpeg
|
||||
fontconfig
|
||||
freetype
|
||||
libiconv
|
||||
|
Loading…
Reference in New Issue
Block a user