Skip to content

Commit

Permalink
all deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Sep 27, 2023
1 parent 29fdd5f commit c64229a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_file_avif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
17 changes: 17 additions & 0 deletions winbuild/build_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"),
],
Expand Down

0 comments on commit c64229a

Please sign in to comment.