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

View File

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

View File

@@ -9,7 +9,7 @@ declare -Ag FB_COMP_OPTS_DESC
# default compile options
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'
DEFAULT_LTO=ON

View File

@@ -13,7 +13,8 @@ gen_function_info() {
gen_compile_opts_info() {
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
}