ffmpeg-kit/scripts/android/dav1d.sh

29 lines
724 B
Bash
Raw Normal View History

2021-01-30 01:35:05 +02:00
#!/bin/bash
# SET BUILD FLAGS
CROSS_FILE="${BASEDIR}"/src/"${LIB_NAME}"/package/crossfiles/$ARCH-$FFMPEG_KIT_BUILD_TYPE.meson
create_mason_cross_file "$CROSS_FILE" || return 1
# ALWAYS CLEAN THE PREVIOUS BUILD
rm -rf "${BUILD_DIR}" || return 1
2022-09-02 01:24:40 +03:00
# ENABLING LTO CAUSES SYMBOL NOT FOUND ERRORS ON NDKS >= 23b
2021-01-30 01:35:05 +02:00
meson "${BUILD_DIR}" \
--cross-file="$CROSS_FILE" \
2022-09-02 01:24:40 +03:00
-Db_lto=false \
2021-01-30 01:35:05 +02:00
-Db_ndebug=false \
-Denable_asm=false \
-Denable_tools=false \
-Denable_examples=false \
-Denable_tests=false || return 1
cd "${BUILD_DIR}" || return 1
ninja -j$(get_cpu_count) || return 1
ninja install || return 1
# MANUALLY COPY PKG-CONFIG FILES
cp "${BUILD_DIR}"/meson-private/dav1d.pc "${INSTALL_PKG_CONFIG_DIR}" || return 1