diff --git a/.github/workflows/ci-windows-shared-local.yml b/.github/workflows/ci-windows-shared-local.yml index 8f32c84ce1..f338c24d9f 100644 --- a/.github/workflows/ci-windows-shared-local.yml +++ b/.github/workflows/ci-windows-shared-local.yml @@ -42,14 +42,10 @@ jobs: cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DAVIF_CODEC_AOM=LOCAL -DAVIF_CODEC_DAV1D=LOCAL - -DAVIF_JPEG=LOCAL -DAVIF_LIBSHARPYUV=LOCAL -DAVIF_LIBXML2=LOCAL + -DAVIF_JPEG=LOCAL -DAVIF_LIBSHARPYUV=LOCAL -DAVIF_LIBYUV=LOCAL -DAVIF_ZLIBPNG=LOCAL -DAVIF_BUILD_EXAMPLES=ON -DAVIF_BUILD_APPS=ON -DAVIF_BUILD_TESTS=ON -DAVIF_ENABLE_GTEST=ON -DAVIF_GTEST=LOCAL - -DAVIF_ENABLE_EXPERIMENTAL_YCGCO_R=ON - -DAVIF_ENABLE_EXPERIMENTAL_GAIN_MAP=ON - -DAVIF_ENABLE_EXPERIMENTAL_METAV1=ON - -DAVIF_ENABLE_EXPERIMENTAL_SAMPLE_TRANSFORM=ON -DAVIF_ENABLE_WERROR=ON $env:AVIF_CMAKE_C_COMPILER $env:AVIF_CMAKE_CXX_COMPILER - name: Build libavif (ninja) working-directory: ./build diff --git a/CMakeLists.txt b/CMakeLists.txt index 9780efac16..06af3ba3f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -799,6 +799,10 @@ endif() if(AVIF_BUILD_TESTS) enable_testing() # Allow ctest to be called from top-level directory. add_subdirectory(tests) + # An executable on Windows searches for DLLs it is linked with in the same + # directory where it resides and in the directories listed in the Path + # environment variable. For convenience, copy avif.dll to the tests binary + # directory to allow are_images_equal.exe and the test programs find it. if(WIN32 AND BUILD_SHARED_LIBS) add_custom_command( TARGET avif