1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 03:38:52 +03:00
Signed-off-by: Anton Afanasyeu <a.afanasieff@gmail.com>
This commit is contained in:
Anton Afanasyeu
2026-05-18 22:19:39 +02:00
parent 115e0e1548
commit 0647e0b2a0
15 changed files with 502 additions and 57 deletions

View File

@@ -74,6 +74,10 @@ export ANDROID_NDK_HOME="$NDK"
export ANDROID_NDK_ROOT="$NDK"
export PATH="$NDK_HOST_BIN:$PATH"
# shellcheck source=native-build-cache.sh
source "$ROOT/scripts/native-build-cache.sh"
androidcast_apply_native_build_accelerators "$ROOT" "$ABI" "$NDK" "$NDK_HOST_BIN"
VPX_CONFIGURE_EXTRA=()
APP_CFLAGS_EXTRA=""
case "$ABI" in
@@ -88,6 +92,9 @@ case "$ABI" in
;;
esac
## common native optimization options
APP_CFLAGS_EXTRA+=" -O2 -fdata-sections -ffunction-sections -Wl,--gc-sections -ftree-vectorize -O2 -s -funroll-loops -fomit-frame-pointer "
echo "Building libvpx for $ABI (target=$VPX_TARGET) ..."
echo " source: $VPX_SRC"
echo " build: $BUILD_DIR"
@@ -125,6 +132,7 @@ elif [[ "$ABI" == x86 || "$ABI" == x86_64 ]] && [[ -f "$BUILD_DIR/vpx_config.h"
fi
if $need_configure; then
# CC/CXX may be ccache-wrapped NDK clang (see native-build-cache.sh).
"$VPX_SRC/configure" \
--target="$VPX_TARGET" \
--disable-examples \