Files
avif-maker/docker/Dockerfile.windows-x86_64
cottongin cde8ae5626 Add cross-compilation support for Linux and Windows
- Add Docker-based build system for cross-compiling on Apple Silicon
- Create Dockerfiles for Linux x86_64 and ARM64, Windows x86_64
- Add build-all.sh script for automated multi-platform builds
- Configure cargo-deb and cargo-generate-rpm for Linux packaging
- Update README with cross-compilation instructions

Supported outputs:
- Linux x86_64: .deb, .rpm, .tar.gz
- Windows x86_64: .zip

Note: Linux ARM64 disabled due to upstream zune-jpeg NEON bug
2026-02-05 08:21:42 -05:00

21 lines
550 B
Docker

FROM --platform=linux/amd64 rust:1.85-bookworm
# Install build dependencies and MinGW cross-compiler
RUN apt-get update && apt-get install -y \
cmake \
nasm \
meson \
ninja-build \
mingw-w64 \
&& rm -rf /var/lib/apt/lists/*
# Add the Windows target
RUN rustup target add x86_64-pc-windows-gnu
# Configure cargo for cross-compilation
ENV CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=x86_64-w64-mingw32-gcc
ENV CC_x86_64_pc_windows_gnu=x86_64-w64-mingw32-gcc
ENV CXX_x86_64_pc_windows_gnu=x86_64-w64-mingw32-g++
WORKDIR /build