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

@@ -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
@@ -37,7 +37,7 @@ libvmaf \
libx264 \
libx265 \
libwebp \
libmp3lame \
libmp3lame\
"
# user-overridable compile option variable names

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
}