update README

This commit is contained in:
2025-11-28 13:44:49 -06:00
parent de86c8c27f
commit 31ae0e49ae
4 changed files with 13 additions and 12 deletions

View File

@@ -35,13 +35,13 @@ The default enabled libraries included in the `ffmpeg` build are:
- libmp3lame - libmp3lame
The user-overridable compile options are: The user-overridable compile options are:
- `CLEAN`: clean build directories before building - `CLEAN`: clean build directories before building (default: ON)
- `LTO`: enable link time optimization - `LTO`: enable link time optimization (default: ON)
- `OPT`: optimization level (0-3) - `OPT`: optimization level (0-3) (default: 3)
- `STATIC`: static or shared build - `STATIC`: static or shared build (default: ON)
- `ARCH`: architecture type (x86-64-v{1,2,3,4}, armv8-a, etc) - `ARCH`: architecture type (x86-64-v{1,2,3,4}, armv8-a, etc) (default: native)
- `PREFIX`: prefix to install to, default is local install in ./gitignore/sysroot - `PREFIX`: prefix to install to, default is local install in ./gitignore/sysroot (default: local)
- `ENABLE`: configure what ffmpeg enables - `ENABLE`: configure what ffmpeg enables (default: libsvtav1_psy libopus libdav1d libaom librav1e libvmaf libx264 libx265 libwebp libmp3lame)
Examples: Examples:
- only build libsvtav1_psy and libopus: `ENABLE='libsvtav1_psy libopus' ./scripts/build.sh` - only build libsvtav1_psy and libopus: `ENABLE='libsvtav1_psy libopus' ./scripts/build.sh`

View File

@@ -314,7 +314,7 @@ download_release() {
done done
# enabling a clean build # enabling a clean build
if [[ ${CLEAN} == true ]]; then if [[ ${CLEAN} == 'ON' ]]; then
DO_CLEAN="rm -rf" DO_CLEAN="rm -rf"
else else
DO_CLEAN='void' DO_CLEAN='void'
@@ -734,7 +734,7 @@ build_libplacebo() {
( (
installDir="${PWD}/3rdparty/glad" installDir="${PWD}/3rdparty/glad"
get_build_conf glad get_build_conf glad
CLEAN=false download_release CLEAN=OFF download_release
cd "${extractedDir}" || exit 1 cd "${extractedDir}" || exit 1
cp -r ./* "${installDir}" cp -r ./* "${installDir}"
) || return 1 ) || return 1

View File

@@ -9,7 +9,7 @@ declare -Ag FB_COMP_OPTS_DESC
# default compile options # default compile options
FB_COMP_OPTS_DESC['CLEAN']='clean build directories before building' FB_COMP_OPTS_DESC['CLEAN']='clean build directories before building'
DEFAULT_CLEAN=true DEFAULT_CLEAN=ON
FB_COMP_OPTS_DESC['LTO']='enable link time optimization' FB_COMP_OPTS_DESC['LTO']='enable link time optimization'
DEFAULT_LTO=ON DEFAULT_LTO=ON
@@ -37,7 +37,7 @@ libvmaf \
libx264 \ libx264 \
libx265 \ libx265 \
libwebp \ libwebp \
libmp3lame \ libmp3lame\
" "
# user-overridable compile option variable names # user-overridable compile option variable names

View File

@@ -13,7 +13,8 @@ gen_function_info() {
gen_compile_opts_info() { gen_compile_opts_info() {
for opt in "${FB_COMP_OPTS[@]}"; do for opt in "${FB_COMP_OPTS[@]}"; do
echo "- \`${opt}\`: ${FB_COMP_OPTS_DESC[${opt}]}" declare -n defOptVal="DEFAULT_${opt}"
echo "- \`${opt}\`: ${FB_COMP_OPTS_DESC[${opt}]} (default: ${defOptVal})"
done done
} }