updates for windows

This commit is contained in:
2025-12-04 17:21:51 -06:00
parent 2c675e70be
commit 9f018d9036
3 changed files with 56 additions and 33 deletions

View File

@@ -487,6 +487,9 @@ build() {
# darwin will always link dynamically if a dylib is present # darwin will always link dynamically if a dylib is present
# so they must be remove for static builds # so they must be remove for static builds
sanitize_sysroot_libs() { sanitize_sysroot_libs() {
# do nothing for windows
if is_windows; then return ; fi
local libs=("$@") local libs=("$@")
for lib in "${libs[@]}"; do for lib in "${libs[@]}"; do
@@ -575,6 +578,7 @@ cmake_build() {
# build # build
cmake \ cmake \
--build fb-build \ --build fb-build \
--config Release \
-j "${JOBS}" || return 1 -j "${JOBS}" || return 1
# install # install
${SUDO_MODIFY} cmake \ ${SUDO_MODIFY} cmake \
@@ -599,16 +603,12 @@ build_libsvtav1() {
} }
build_libsvtav1_psy() { build_libsvtav1_psy() {
local hdr10pluslib="${LIBDIR}/libhdr10plus-rs.${USE_LIB_SUFF}"
local dovilib="${LIBDIR}/libdovi.${USE_LIB_SUFF}"
cmake_build \ cmake_build \
-DBUILD_TESTING=OFF \ -DBUILD_TESTING=OFF \
-DENABLE_AVX512=ON \ -DENABLE_AVX512=ON \
-DCOVERAGE=OFF \ -DCOVERAGE=OFF \
-DLIBDOVI_FOUND=1 \ -DLIBDOVI_FOUND=1 \
-DLIBHDR10PLUS_RS_FOUND=1 \ -DLIBHDR10PLUS_RS_FOUND=1 || return 1
-DLIBHDR10PLUS_RS_LIBRARY="${hdr10pluslib}" \
-DLIBDOVI_LIBRARY="${dovilib}" || return 1
sanitize_sysroot_libs libSvtAv1Enc || return 1 sanitize_sysroot_libs libSvtAv1Enc || return 1
} }

View File

@@ -91,6 +91,21 @@ print_req_pkgs() {
zip unzip gperf build-essential zip unzip gperf build-essential
binutils ninja ndk-multilib-native-static binutils ninja ndk-multilib-native-static
) )
# shellcheck disable=SC2034
local winget_pkgs=(
Git.Git gerardog.gsudo
StrawberryPerl.StrawberryPerl
bloodrock.pkg-config-lite
Kitware.CMake mesonbuild.meson
Microsoft.VisualStudio.2019.BuildTools
Microsoft.VisualStudio.2022.BuildTools
GnuWin32.DiffUtils GnuWin32.Bison
GnuWin32.Gperf GnuWin32.File
GnuWin32.Tar GnuWin32.UnZip
GnuWin32.Zip GnuWin32.Which
Rustlang.Rustup Python.Python.3.12
Ccache.Ccache LLVM.LLVM
)
local req_pkgs_env_name="${pkg_mgr/-/_}_pkgs" local req_pkgs_env_name="${pkg_mgr/-/_}_pkgs"
declare -n req_pkgs="${req_pkgs_env_name}" declare -n req_pkgs="${req_pkgs_env_name}"

View File

@@ -106,34 +106,42 @@ $(efg)
Example usage: Example usage:
- \`efg -i input.mkv -p\` - \`efg -i input.mkv -p\`
\`\`\` \`\`\`
1 +------------------------------------------------------------------------------------------------------+ 10000 +------------------------------------------------------------------------------------------------------------------------------------------+
| *****G***** + + + | | **G* + + + + + |
| *****G** '/tmp/plot.dat' ***G*** | | ** "/Volumes/External/ffmpeg-builder/gitignore/tmp/efg-matrix-reloaded.mkv/plot.dat" ***G*** |
0.95 |-+ ***** +-| | *G** |
| **G* | | **G |
| *** | 9000 |-+ ** +-|
| **** | | *G** |
0.9 |-+ *G* +-| | **G |
| **** | | ** |
| **** | | *G* |
0.85 |-+ *G* +-| 8000 |-+ ** +-|
| *** | | *G** |
| **** | | **G |
0.8 |-+ *G* +-| | ** |
| *** | | *G** |
| **** | 7000 |-+ **G* +-|
| *G* | | ** |
0.75 |-+ *** +-| | *G* |
| **** | | **G** |
| *G* | 6000 |-+ **G* +-|
0.7 |-+ *** +-| | ** |
| ** | | *G* |
| *** | | **G** |
| *G* | | **G* |
0.65 |-+ *** +-| 5000 |-+ **G** +-|
| **** | | **G****G* |
| + + + *| | **G** |
0.6 +------------------------------------------------------------------------------------------------------+ | **G****G* |
| **G****G* |
4000 |-+ **G****G****G* +-|
| **G****|
| |
| |
| + + + + + |
3000 +------------------------------------------------------------------------------------------------------------------------------------------+
0 5 10 15 20 25 30
\`\`\` \`\`\`
" >"${readme}" " >"${readme}"