We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5d4fb commit 79ceebdCopy full SHA for 79ceebd
3 files changed
.github/workflows/wheels-dependencies.sh
@@ -134,6 +134,7 @@ function build_libavif {
134
-DAVIF_CODEC_AOM=LOCAL \
135
-DENABLE_NASM=ON \
136
-DCMAKE_MODULE_PATH=/tmp/cmake/Modules \
137
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
138
. \
139
&& make install)
140
touch libavif-stamp
Tests/test_file_avif.py
@@ -129,14 +129,14 @@ def test_write_rgb(self, tmp_path: Path) -> None:
129
130
# avifdec hopper.avif avif/hopper_avif_write.png
131
assert_image_similar_tofile(
132
- reloaded, "Tests/images/avif/hopper_avif_write.png", 6.02
+ reloaded, "Tests/images/avif/hopper_avif_write.png", 6.14
133
)
# This test asserts that the images are similar. If the average pixel
# difference between the two images is less than the epsilon value,
# then we're going to accept that it's a reasonable lossy version of
# the image.
- assert_image_similar(reloaded, im, 8.62)
+ assert_image_similar(reloaded, im, 8.65)
141
def test_AvifEncoder_with_invalid_args(self) -> None:
142
"""
winbuild/build_prepare.py
@@ -57,7 +57,10 @@ def cmd_nmake(
57
58
59
def cmds_cmake(
60
- target: str | tuple[str, ...] | list[str], *params: str, build_dir: str = "."
+ target: str | tuple[str, ...] | list[str],
61
+ *params: str,
62
+ build_dir: str = ".",
63
+ build_type: str = "Release",
64
) -> list[str]:
65
if not isinstance(target, str):
66
target = " ".join(target)
@@ -66,7 +69,7 @@ def cmds_cmake(
69
" ".join(
67
70
[
68
71
"{cmake}",
- "-DCMAKE_BUILD_TYPE=Release",
72
+ f"-DCMAKE_BUILD_TYPE={build_type}",
73
"-DCMAKE_VERBOSE_MAKEFILE=ON",
74
"-DCMAKE_RULE_MESSAGES:BOOL=OFF", # for NMake
75
"-DCMAKE_C_COMPILER=cl.exe", # for Ninja
@@ -393,6 +396,7 @@ def cmd_msbuild(
393
396
"-DAVIF_LIBYUV=LOCAL",
394
397
"-DAVIF_CODEC_AOM=LOCAL",
395
398
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
399
+ build_type="MinSizeRel",
400
),
401
cmd_xcopy("include", "{inc_dir}"),
402
],
0 commit comments