Skip to content

Commit

Permalink
lite: disable iamf
Browse files Browse the repository at this point in the history
reduce about 30KB
  • Loading branch information
wang-bin committed Apr 13, 2024
1 parent 957c07a commit 866059e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions avbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ test -f $USER_CONFIG && . $USER_CONFIG
: ${DEBUG_OPT:="--disable-debug"}
: ${FORCE_LTO:=false}
: ${FFSRC:=$PWD/FFmpeg}
: ${LITE_BUILD:=false}
[[ "$LIB_OPT" == *"--disable-static"* ]] && FORCE_LTO=true
# other env vars to control build: NO_ENC, BITCODE, WINPHONE, VC_BUILD, FORCE_LTO (bool)

Expand Down Expand Up @@ -1552,6 +1553,9 @@ config1(){
echo "lto is disabled when build static libs to get better compatibility"
}
fi
if $LITE_BUILD; then
disable_opt iamf
fi
$enable_pic && TOOLCHAIN_OPT+=" --enable-pic"
EXTRA_CFLAGS=$(trim2 $EXTRA_CFLAGS)
EXTRA_LDFLAGS=$(trim2 $EXTRA_LDFLAGS)
Expand Down
1 change: 1 addition & 0 deletions config-lite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ ios_OPT="--disable-avdevice"
rpi_OPT="--disable-avdevice"
raspberry_pi_OPT="--disable-avdevice"
sunxi_OPT="--disable-avdevice"
LITE_BUILD=true

0 comments on commit 866059e

Please sign in to comment.