mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-10-12 17:18:17 +03:00
graphics: remove libjpeg from XP builds, fetch at build time (#874)
Replaces the vendored `external/libjpeg-turbo` tree (191 files) with the `mingw-w64-libjpeg-turbo` AUR package, already built into the Docker deps image. The WinXP toolchains set `CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY` against their own sysroot, so they cannot see AUR mingw packages. Those targets now build without JPEG support: `jpeg_encoder::encode` compiles to a stub returning `false`, which callers already treat as "no frame available". The practical effect is that `capture.get_jpg` over the API is unavailable on WinXP builds; every other target is unchanged. CMake names `libjpeg.a` outright, since the package also ships an import library and linking that would add a runtime DLL dependency.
This commit is contained in:
+4
@@ -24,3 +24,7 @@ ENV PATH="$PATH:/opt/llvm-mingw-xp/bin"
|
||||
|
||||
RUN curl -fsSL "https://github.com/mon/windows-dll-compat-checker/releases/download/v1.3/windows_dll_compat_checker-linux-x86_64.tar.xz" \
|
||||
| tar -xJ -C /usr/local/bin
|
||||
|
||||
# libjpeg-turbo for JPEG encoding. Only the mingw-w64 toolchains get it;
|
||||
# the WinXP targets build without JPEG support entirely.
|
||||
RUN su user -c "yay --noconfirm -S mingw-w64-libjpeg-turbo"
|
||||
Reference in New Issue
Block a user