parent
783a6b5b41
commit
4113f64817
File diff suppressed because it is too large
Load Diff
@ -1,69 +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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="chromaprint" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
CFLAGS=$(get_cflags ${LIB_NAME}) |
||||
CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
if [ -d "build" ]; then |
||||
rm -rf build |
||||
fi |
||||
|
||||
mkdir build; |
||||
cd build |
||||
mkdir -p "${BUILD_DIR}" || return 1 |
||||
cd "${BUILD_DIR}" || return 1 |
||||
|
||||
cmake -Wno-dev \ |
||||
-DCMAKE_VERBOSE_MAKEFILE=0 \ |
||||
-DCMAKE_C_FLAGS="${CFLAGS}" \ |
||||
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \ |
||||
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \ |
||||
-DCMAKE_SYSROOT="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot" \ |
||||
-DCMAKE_FIND_ROOT_PATH="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot" \ |
||||
-DCMAKE_SYSROOT="${ANDROID_SYSROOT}" \ |
||||
-DCMAKE_FIND_ROOT_PATH="${ANDROID_SYSROOT}" \ |
||||
-DCMAKE_BUILD_TYPE=Release \ |
||||
-DCMAKE_INSTALL_PREFIX="${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME}" \ |
||||
-DCMAKE_INSTALL_PREFIX="${LIB_INSTALL_PREFIX}" \ |
||||
-DCMAKE_SYSTEM_NAME=Generic \ |
||||
-DCMAKE_C_COMPILER="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/bin/$CC" \ |
||||
-DCMAKE_LINKER="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/bin/$LD" \ |
||||
-DCMAKE_AR="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/bin/$AR" \ |
||||
-DCMAKE_AS="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/bin/$AS" \ |
||||
-DCMAKE_SYSTEM_PROCESSOR=$(get_cmake_target_processor) \ |
||||
-DCMAKE_SYSTEM_PROCESSOR=$(get_cmake_system_processor) \ |
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=1 \ |
||||
-DFFT_LIB=kissfft \ |
||||
-DBUILD_SHARED_LIBS=0 .. || exit 1 |
||||
-DBUILD_SHARED_LIBS=0 "${BASEDIR}"/src/"${LIB_NAME}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_chromaprint_package_config "1.5.0" |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_chromaprint_package_config "1.5.0" || return 1 |
||||
|
@ -1,14 +1,10 @@ |
||||
#!/bin/bash |
||||
|
||||
# ENABLE COMMON FUNCTIONS |
||||
. "${BASEDIR}"/scripts/function-android.sh |
||||
$(android_ndk_cmake) -DBUILD_PIC=ON || return 1 |
||||
|
||||
LIB_NAME="cpu-features" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
make -C "$(get_cmake_build_directory)" || return 1 |
||||
|
||||
cd "${BASEDIR}"/src/${LIB_NAME} || exit 1 |
||||
make -C "$(get_cmake_build_directory)" install || return 1 |
||||
|
||||
$(android_ndk_cmake) -DBUILD_PIC=ON || exit 1 |
||||
make -C "$(get_android_build_dir)" install || exit 1 |
||||
|
||||
create_cpufeatures_package_config |
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_cpufeatures_package_config "0.4.1.1" || return 1 |
||||
|
@ -1,41 +1,29 @@ |
||||
#!/bin/bash |
||||
|
||||
# ENABLE COMMON FUNCTIONS |
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="expat" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# 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}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
cd "${LIB_NAME}" || return 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_expat} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/"${LIB_NAME}"/configure ]] || [[ ${RECONF_expat} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--without-docbook \ |
||||
--without-xmlwf \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./expat.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./expat.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,42 +1,30 @@ |
||||
#!/bin/bash |
||||
|
||||
# ENABLE COMMON FUNCTIONS |
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="fribidi" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# 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}" |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_fribidi} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_fribidi} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--disable-debug \ |
||||
--disable-deprecated \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
# WORKAROUND TO DISABLE BUILDING OF doc FOLDER (doc depends on c2man which is not available on all platforms) |
||||
$SED_INLINE 's/ doc / /g' "${BASEDIR}"/src/"${LIB_NAME}"/Makefile || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,60 +1,28 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="giflib" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
export CFLAGS=$(get_cflags ${LIB_NAME})" -DS_IREAD=S_IRUSR -DS_IWRITE=S_IWUSR" |
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}" |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
# UPDATE BUILD FLAGS |
||||
export CFLAGS=$(get_cflags "${LIB_NAME}")" -DS_IREAD=S_IRUSR -DS_IWRITE=S_IWUSR" |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_giflib} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_giflib} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_giflib_package_config "5.1.4" |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_giflib_package_config "5.1.4" || return 1 |
||||
|
@ -1,61 +1,27 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="gmp" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
export CFLAGS=$(get_cflags ${LIB_NAME}) |
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_gmp} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_gmp} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-assembly \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--disable-maintainer-mode \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_gmp_package_config "6.2.0" |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_gmp_package_config "6.2.0" || return 1 |
||||
|
@ -0,0 +1,31 @@ |
||||
#!/bin/bash |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_harfbuzz} -eq 1 ]]; then |
||||
NOCONFIGURE=1 ./autogen.sh || return 1 |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--with-glib=no \ |
||||
--with-fontconfig=yes \ |
||||
--with-freetype=yes \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
make install || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./src/harfbuzz.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
||||
# WORKAROUND TO REMOVE INSTALLED .la FILES |
||||
rm -f "${LIB_INSTALL_PREFIX}"/lib/*.la |
@ -1,68 +1,37 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="kvazaar" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING 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}" |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# ALWAYS RECONFIGURE |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_kvazaar} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
# UPDATE BUILD FLAGS |
||||
# LINKING WITH ANDROID LTS SUPPORT LIBRARY IS NECESSARY FOR API < 18 |
||||
if [[ ! -z ${FFMPEG_KIT_LTS_BUILD} ]] && [[ ${API} < 18 ]]; then |
||||
ARCH_SPECIFIC_LIBS=" -Wl,--no-whole-archive ${BASEDIR}/android/app/src/main/cpp/libandroidltssupport.a -Wl,--no-whole-archive" |
||||
if [[ -n ${FFMPEG_KIT_LTS_BUILD} ]] && [[ ${API} -lt 18 ]]; then |
||||
LTS_SUPPORT_LIBS=" -Wl,--no-whole-archive ${BASEDIR}/android/app/src/main/cpp/libandroidltssupport.a -Wl,--no-whole-archive" |
||||
else |
||||
ARCH_SPECIFIC_LIBS="" |
||||
LTS_SUPPORT_LIBS="" |
||||
fi |
||||
|
||||
# DISABLE LINKING TO -lrt |
||||
${SED_INLINE} 's/\-lrt//g' ${BASEDIR}/src/${LIB_NAME}/configure |
||||
# WORKAROUND TO DISABLE LINKING TO -lrt |
||||
${SED_INLINE} 's/\-lrt//g' "${BASEDIR}"/src/"${LIB_NAME}"/configure || return 1 |
||||
|
||||
LIBS="${ARCH_SPECIFIC_LIBS}" ./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
LIBS="${LTS_SUPPORT_LIBS}" ./configure \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make || exit 1 |
||||
# NOTE THAT kvazaar DOES NOT SUPPORT PARALLEL EXECUTION |
||||
make || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./src/kvazaar.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./src/kvazaar.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,60 +1,45 @@ |
||||
#!/bin/bash |
||||
|
||||
# ENABLE COMMON FUNCTIONS |
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libass" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# 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}" |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_libass} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
fi |
||||
|
||||
# SET ARCH OPTIONS |
||||
ASM_FLAGS="" |
||||
# SET BUILD OPTIONS |
||||
ASM_OPTIONS="" |
||||
case ${ARCH} in |
||||
x86) |
||||
|
||||
# please note that asm is disabled |
||||
# because enabling asm for x86 causes text relocations in libavfilter.so |
||||
ASM_FLAGS=" --disable-asm" |
||||
# enabling asm for x86 causes text relocations in libavfilter.so |
||||
ASM_OPTIONS=" --disable-asm" |
||||
;; |
||||
*) |
||||
ASM_FLAGS=" --enable-asm" |
||||
ASM_OPTIONS=" --enable-asm" |
||||
;; |
||||
esac |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libass} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--disable-libtool-lock \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-harfbuzz \ |
||||
--disable-require-system-font-provider \ |
||||
--disable-fast-install \ |
||||
--disable-test \ |
||||
--disable-profile \ |
||||
--disable-coretext \ |
||||
${ASM_FLAGS} \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
${ASM_OPTIONS} \ |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,40 +1,29 @@ |
||||
#!/bin/bash |
||||
|
||||
# ENABLE COMMON FUNCTIONS |
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libiconv" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# 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}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
# PULL SUBMODULES |
||||
./gitsub.sh pull || return 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_libiconv} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libiconv} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--disable-rpath \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_libiconv_package_config "1.16" |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_libiconv_package_config "1.16.2" || return 1 |
||||
|
@ -1,39 +1,25 @@ |
||||
#!/bin/bash |
||||
|
||||
# ENABLE COMMON FUNCTIONS |
||||
source "${BASEDIR}"/scripts/function-${FFMPEG_KIT_BUILD_TYPE}.sh |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libilbc" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# 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}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_libilbc} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libilbc} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./libilbc.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./libilbc.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,59 +1,25 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libogg" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
export CFLAGS=$(get_cflags ${LIB_NAME}) |
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_libogg} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libogg} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ogg.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ogg.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,78 +1,45 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libpng" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
export CFLAGS=$(get_cflags ${LIB_NAME}) |
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
|
||||
ARCH_OPTIONS="" |
||||
# SET BUILD OPTIONS |
||||
ASM_OPTIONS="" |
||||
case ${ARCH} in |
||||
x86 | x86-64) |
||||
ARCH_OPTIONS="--enable-hardware-optimizations --enable-intel-sse=yes" |
||||
ASM_OPTIONS="--enable-hardware-optimizations --enable-intel-sse=yes" |
||||
;; |
||||
arm-v7a-neon | arm64-v8a) |
||||
ARCH_OPTIONS="--enable-hardware-optimizations --enable-arm-neon=yes" |
||||
ASM_OPTIONS="--enable-hardware-optimizations --enable-arm-neon=yes" |
||||
;; |
||||
arm-v7a) |
||||
# hardware-optimizations not enabled because |
||||
# when --enable-hardware-optimizations is added |
||||
# make tries to build arm-neon specific instructions, which breaks compilation |
||||
ARCH_OPTIONS="--enable-arm-neon=no" |
||||
ASM_OPTIONS="--enable-arm-neon=no" |
||||
;; |
||||
esac |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_libpng} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libpng} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--disable-unversioned-libpng-pc \ |
||||
--disable-unversioned-libpng-config \ |
||||
${ARCH_OPTIONS} \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
${ASM_OPTIONS} \ |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,64 +1,29 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libsamplerate" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING 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}" |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# DISABLE building of examples manually |
||||
${SED_INLINE} 's/examples tests//g' ${BASEDIR}/src/${LIB_NAME}/Makefile* |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_libsamplerate} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libsamplerate} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-fftw \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
# WORKAROUND TO DISABLE BUILDING OF EXAMPLES AND TESTS |
||||
${SED_INLINE} 's/examples tests//g' "${BASEDIR}"/src/"${LIB_NAME}"/Makefile* || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
make install || exit 1 |
||||
make install || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,59 +1,25 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libuuid" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
export CFLAGS=$(get_cflags ${LIB_NAME}) |
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_libuuid} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libuuid} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# AUTO-GENERATED PKG-CONFIG FILE IS WRONG. CREATING IT MANUALLY |
||||
create_uuid_package_config "1.0.3" |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_uuid_package_config "1.0.3" || return 1 |
||||
|
@ -1,65 +1,34 @@ |
||||
#!/bin/bash |
||||
|
||||
if [[ -z ${ANDROID_NDK_ROOT} ]]; then |
||||
echo -e "\n(*) ANDROID_NDK_ROOT not defined\n" |
||||
exit 1 |
||||
fi |
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
if [[ -z ${ARCH} ]]; then |
||||
echo -e "\n(*) ARCH not defined\n" |
||||
exit 1 |
||||
fi |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libvorbis} -eq 1 ]]; then |
||||
|
||||
if [[ -z ${API} ]]; then |
||||
echo -e "\n(*) API not defined\n" |
||||
exit 1 |
||||
fi |
||||
# -mno-ieee-fp OPTION IS NOT COMPATIBLE WITH clang. REMOVING IT |
||||
${SED_INLINE} 's/\-mno-ieee-fp//g' "${BASEDIR}"/src/"${LIB_NAME}"/configure.ac || return 1 |
||||
|
||||
if [[ -z ${BASEDIR} ]]; then |
||||
echo -e "\n(*) BASEDIR not defined\n" |
||||
exit 1 |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
# ENABLE COMMON FUNCTIONS |
||||
. ${BASEDIR}/build/android-common.sh |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libvorbis" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
export CFLAGS=$(get_cflags ${LIB_NAME}) |
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# -mno-ieee-fp option is not compatible with clang. removing it |
||||
${SED_INLINE} 's/\-mno-ieee-fp//g' ${BASEDIR}/src/${LIB_NAME}/configure.ac |
||||
|
||||
# ALWAYS RECONFIGURE |
||||
autoreconf_library ${LIB_NAME} |
||||
|
||||
PKG_CONFIG= ./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-ogg-includes=${BASEDIR}/prebuilt/android-$(get_target_build)/libogg/include \ |
||||
--with-ogg-libraries=${BASEDIR}/prebuilt/android-$(get_target_build)/libogg/lib \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--with-ogg-includes="${LIB_INSTALL_BASE}"/libogg/include \ |
||||
--with-ogg-libraries="${LIB_INSTALL_BASE}"/libogg/lib \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--disable-docs \ |
||||
--disable-examples \ |
||||
--disable-oggtest \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_libvorbis_package_config "1.3.7" |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# CREATE PACKAGE CONFIG MANUALLY |
||||
create_libvorbis_package_config "1.3.7" || return 1 |
||||
|
@ -1,83 +1,53 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="libwebp" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING 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}" |
||||
|
||||
ARCH_OPTIONS="" |
||||
# SET BUILD OPTIONS |
||||
ASM_OPTIONS="" |
||||
case ${ARCH} in |
||||
arm-v7a) |
||||
ARCH_OPTIONS="--disable-neon --disable-neon-rtcd" |
||||
ASM_OPTIONS="--disable-neon --disable-neon-rtcd" |
||||
;; |
||||
arm-v7a-neon | arm64-v8a) |
||||
ARCH_OPTIONS="--enable-neon --enable-neon-rtcd" |
||||
ASM_OPTIONS="--enable-neon --enable-neon-rtcd" |
||||
;; |
||||
*) |
||||
ARCH_OPTIONS="--enable-sse2 --enable-sse4.1" |
||||
ASM_OPTIONS="--enable-sse2 --enable-sse4.1" |
||||
;; |
||||
esac |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# ALWAYS RECONFIGURE |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libwebp} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-dependency-tracking \ |
||||
--enable-libwebpmux \ |
||||
${ARCH_OPTIONS} \ |
||||
--with-pngincludedir="${BASEDIR}/prebuilt/android-$(get_target_build)/libpng/include" \ |
||||
--with-pnglibdir="${BASEDIR}/prebuilt/android-$(get_target_build)/libpng/lib" \ |
||||
--with-jpegincludedir="${BASEDIR}/prebuilt/android-$(get_target_build)/jpeg/include" \ |
||||
--with-jpeglibdir="${BASEDIR}/prebuilt/android-$(get_target_build)/jpeg/lib" \ |
||||
--with-gifincludedir="${BASEDIR}/prebuilt/android-$(get_target_build)/giflib/include" \ |
||||
--with-giflibdir="${BASEDIR}/prebuilt/android-$(get_target_build)/giflib/lib" \ |
||||
--with-tiffincludedir="${BASEDIR}/prebuilt/android-$(get_target_build)/tiff/include" \ |
||||
--with-tifflibdir="${BASEDIR}/prebuilt/android-$(get_target_build)/tiff/lib" \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
${ASM_OPTIONS} \ |
||||
--with-pngincludedir="${LIB_INSTALL_BASE}/libpng/include" \ |
||||
--with-pnglibdir="${LIB_INSTALL_BASE}/libpng/lib" \ |
||||
--with-jpegincludedir="${LIB_INSTALL_BASE}/jpeg/include" \ |
||||
--with-jpeglibdir="${LIB_INSTALL_BASE}/jpeg/lib" \ |
||||
--with-gifincludedir="${LIB_INSTALL_BASE}/giflib/include" \ |
||||
--with-giflibdir="${LIB_INSTALL_BASE}/giflib/lib" \ |
||||
--with-tiffincludedir="${LIB_INSTALL_BASE}/tiff/include" \ |
||||
--with-tifflibdir="${LIB_INSTALL_BASE}/tiff/lib" \ |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make install || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ${BASEDIR}/src/${LIB_NAME}/src/*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
cp ${BASEDIR}/src/${LIB_NAME}/src/demux/*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
cp ${BASEDIR}/src/${LIB_NAME}/src/mux/*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
cp ${BASEDIR}/src/${LIB_NAME}/src/*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
cp ${BASEDIR}/src/${LIB_NAME}/src/demux/*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
cp ${BASEDIR}/src/${LIB_NAME}/src/mux/*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
||||
make install || exit 1 |
||||
make install || return 1 |
||||
|
@ -1,75 +1,46 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="nettle" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
export CFLAGS=$(get_cflags ${LIB_NAME}) |
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
|
||||
OPTIONAL_CPU_SUPPORT="" |
||||
# SET BUILD OPTIONS |
||||
ASM_OPTIONS="" |
||||
case ${ARCH} in |
||||
arm-v7a-neon | arm64-v8a) |
||||
OPTIONAL_CPU_SUPPORT="--enable-arm-neon" |
||||
ASM_OPTIONS="--enable-arm-neon" |
||||
;; |
||||
x86 | x86-64) |
||||
OPTIONAL_CPU_SUPPORT="--enable-x86-aesni" |
||||
ASM_OPTIONS="--enable-x86-aesni" |
||||
;; |
||||
esac |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_nettle} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_nettle} -eq 1 ]]; then |
||||
|
||||
# WORKAROUND TO FIX BUILD SYSTEM COMPILER ON macOS |
||||
overwrite_file "${BASEDIR}"/tools/patch/make/nettle/aclocal.m4 "${BASEDIR}"/src/"${LIB_NAME}"/aclocal.m4 |
||||
|
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--enable-pic \ |
||||
--enable-static \ |
||||
--with-include-path=${BASEDIR}/prebuilt/android-$(get_target_build)/gmp/include \ |
||||
--with-lib-path=${BASEDIR}/prebuilt/android-$(get_target_build)/gmp/lib \ |
||||
--with-include-path="${LIB_INSTALL_BASE}"/gmp/include \ |
||||
--with-lib-path="${LIB_INSTALL_BASE}"/gmp/lib \ |
||||
--disable-shared \ |
||||
--disable-mini-gmp \ |
||||
--disable-assembler \ |
||||
--disable-openssl \ |
||||
--disable-gcov \ |
||||
--disable-documentation \ |
||||
${OPTIONAL_CPU_SUPPORT} \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
${ASM_OPTIONS} \ |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp ./*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
@ -1,60 +1,26 @@ |
||||
#!/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 |
||||
|
||||
# PREPARE PATHS & DEFINE ${INSTALL_PKG_CONFIG_DIR} |
||||
LIB_NAME="opencore-amr" |
||||
set_toolchain_paths ${LIB_NAME} |
||||
|
||||
# PREPARING FLAGS |
||||
BUILD_HOST=$(get_build_host) |
||||
export CFLAGS=$(get_cflags ${LIB_NAME}) |
||||
export CXXFLAGS=$(get_cxxflags ${LIB_NAME}) |
||||
export LDFLAGS=$(get_ldflags ${LIB_NAME}) |
||||
|
||||
cd ${BASEDIR}/src/${LIB_NAME} || exit 1 |
||||
|
||||
# ALWAYS CLEAN THE PREVIOUS BUILD |
||||
make distclean 2>/dev/null 1>/dev/null |
||||
|
||||
# RECONFIGURE IF REQUESTED |
||||
if [[ ${RECONF_opencore_amr} -eq 1 ]]; then |
||||
autoreconf_library ${LIB_NAME} |
||||
# REGENERATE BUILD FILES IF NECESSARY OR REQUESTED |
||||
if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_opencore_amr} -eq 1 ]]; then |
||||
autoreconf_library "${LIB_NAME}" |
||||
fi |
||||
|
||||
./configure \ |
||||
--prefix=${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME} \ |
||||
--prefix="${LIB_INSTALL_PREFIX}" \ |
||||
--with-pic \ |
||||
--with-sysroot=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/sysroot \ |
||||
--with-sysroot="${ANDROID_SYSROOT}" \ |
||||
--enable-static \ |
||||
--disable-shared \ |
||||
--disable-fast-install \ |
||||
--disable-maintainer-mode \ |
||||
--host=${BUILD_HOST} || exit 1 |
||||
--host="${HOST}" || return 1 |
||||
|
||||
make -j$(get_cpu_count) || exit 1 |
||||
make -j$(get_cpu_count) || return 1 |
||||
|
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp amrnb/*.pc ${INSTALL_PKG_CONFIG_DIR} || exit 1 |
||||
make install || return 1 |
||||
|
||||
make install || exit 1 |
||||
# MANUALLY COPY PKG-CONFIG FILES |
||||
cp amrnb/*.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1 |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue