From c64229a6bce7293cd81ba7d8ef52dfe9b62205a2 Mon Sep 17 00:00:00 2001 From: Frankie Dintino Date: Wed, 27 Sep 2023 14:02:19 -0400 Subject: [PATCH] all deps --- tests/test_file_avif.py | 2 +- winbuild/build_prepare.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/test_file_avif.py b/tests/test_file_avif.py index bdf6ac7..d18f33c 100644 --- a/tests/test_file_avif.py +++ b/tests/test_file_avif.py @@ -217,7 +217,7 @@ def test_background_from_gif(self, tmp_path): difference = sum( [abs(original_value[i] - reread_value[i]) for i in range(0, 3)] ) - assert difference < 5 + assert difference < 12 def test_save_single_frame(self, tmp_path): temp_file = str(tmp_path / "temp.avif") diff --git a/winbuild/build_prepare.py b/winbuild/build_prepare.py index 64d39c2..5ebf402 100644 --- a/winbuild/build_prepare.py +++ b/winbuild/build_prepare.py @@ -186,19 +186,36 @@ def cmd_msbuild( cmd_mkdir(r"ext\rav1e\build.libavif\usr"), cmd_xcopy(r"..\rav1e-windows-msvc-sdk", r"ext\rav1e\build.libavif\usr"), cmd_cd("ext"), + "@echo ::group::Building SVT-AV1", + cmd_rmdir("SVT-AV1"), + "cmd.exe /c svt.cmd", + "@echo ::endgroup::", + "@echo ::group::Building aom", + cmd_rmdir("aom"), + 'cmd.exe /c "aom.cmd"', + "@echo ::endgroup::", + "@echo ::group::Building dav1d", cmd_rmdir("dav1d"), 'cmd.exe /c "dav1d.cmd"', + "@echo ::endgroup::", + "@echo ::group::Building libyuv", cmd_rmdir("libyuv"), 'cmd.exe /c "libyuv.cmd"', + "@echo ::endgroup::", + "@echo ::group::Building libavif", cmd_cd(".."), *cmds_cmake( "avif", "-DBUILD_SHARED_LIBS=OFF", + "-DAVIF_CODEC_AOM=ON", + "-DAVIF_LOCAL_AOM=ON", "-DAVIF_LOCAL_LIBYUV=ON", "-DAVIF_CODEC_RAV1E=ON", "-DAVIF_LOCAL_RAV1E=ON", "-DAVIF_CODEC_DAV1D=ON", "-DAVIF_LOCAL_DAV1D=ON", + "-DAVIF_CODEC_SVT=ON", + "-DAVIF_LOCAL_SVT=ON", ), cmd_xcopy("include", "{inc_dir}"), ],