From fd4c2f8cfdc7a1f71124fbb7d7fb8ea4141a40dc Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 30 Sep 2025 16:27:51 +0200 Subject: [PATCH] ci: build testffmpeg on MinGW (msys2) build bots --- .github/workflows/generic.yml | 1 + cmake/PkgConfigHelper.cmake | 12 ++++++------ test/testffmpeg.c | 1 - 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/generic.yml b/.github/workflows/generic.yml index 8a68447846..9a59e4b2d9 100644 --- a/.github/workflows/generic.yml +++ b/.github/workflows/generic.yml @@ -30,6 +30,7 @@ jobs: install: >- ${{ matrix.platform.msys2-env }}-cc ${{ matrix.platform.msys2-env }}-cmake + ${{ matrix.platform.msys2-env }}-ffmpeg ${{ matrix.platform.msys2-env }}-ninja ${{ (!matrix.platform.msys2-no-perl && format('{0}-perl', matrix.platform.msys2-env)) || '' }} ${{ matrix.platform.msys2-env }}-pkg-config diff --git a/cmake/PkgConfigHelper.cmake b/cmake/PkgConfigHelper.cmake index 7070fac795..408e76177e 100644 --- a/cmake/PkgConfigHelper.cmake +++ b/cmake/PkgConfigHelper.cmake @@ -1,16 +1,16 @@ # Helper for Find modules function(get_flags_from_pkg_config _library _pc_prefix _out_prefix) - if("${_library}" MATCHES "${CMAKE_STATIC_LIBRARY_SUFFIX}$") - set(_cflags ${_pc_prefix}_STATIC_CFLAGS_OTHER) - set(_link_libraries ${_pc_prefix}_STATIC_LIBRARIES) - set(_link_options ${_pc_prefix}_STATIC_LDFLAGS_OTHER) - set(_library_dirs ${_pc_prefix}_STATIC_LIBRARY_DIRS) - else() + if(NOT "${_library}" MATCHES "${CMAKE_SHARED_LIBRARY_SUFFIX}$") set(_cflags ${_pc_prefix}_CFLAGS_OTHER) set(_link_libraries ${_pc_prefix}_LIBRARIES) set(_link_options ${_pc_prefix}_LDFLAGS_OTHER) set(_library_dirs ${_pc_prefix}_LIBRARY_DIRS) + else() + set(_cflags ${_pc_prefix}_STATIC_CFLAGS_OTHER) + set(_link_libraries ${_pc_prefix}_STATIC_LIBRARIES) + set(_link_options ${_pc_prefix}_STATIC_LDFLAGS_OTHER) + set(_library_dirs ${_pc_prefix}_STATIC_LIBRARY_DIRS) endif() # The *_LIBRARIES lists always start with the library itself diff --git a/test/testffmpeg.c b/test/testffmpeg.c index a57a7ebacf..33d44d6b38 100644 --- a/test/testffmpeg.c +++ b/test/testffmpeg.c @@ -93,7 +93,6 @@ static PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOESFunc; #ifdef SDL_PLATFORM_WIN32 static ID3D11Device *d3d11_device; static ID3D11DeviceContext *d3d11_context; -static const GUID SDL_IID_ID3D11Resource = { 0xdc8e63f3, 0xd12b, 0x4952, { 0xb4, 0x7b, 0x5e, 0x45, 0x02, 0x6a, 0x86, 0x2d } }; #endif static VulkanVideoContext *vulkan_context; struct SwsContextContainer