summaryrefslogtreecommitdiffstats
path: root/tests/docker/dockerfiles/debian-win64-cross.docker
blob: 4cc4a3f3657f6f1837e42d230b346afdc73e46ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Docker mingw64 cross-compiler target
#
# This docker target builds on the debian Stretch MXE base image.
#
FROM qemu/debian9-mxe

MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>

ENV TARGET x86-64

ENV PATH $PATH:/usr/lib/mxe/usr/$TARGET-w64-mingw32.shared/bin

ENV PKG_CONFIG_PATH \
    $PKG_CONFIG_PATH:/usr/lib/mxe/usr/$TARGET-w64-mingw32.shared/lib/pkgconfig

RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive eatmydata \
    apt-get install -y --no-install-recommends \
        mxe-$TARGET-w64-mingw32.shared-bzip2 \
        mxe-$TARGET-w64-mingw32.shared-curl \
        mxe-$TARGET-w64-mingw32.shared-glib \
        mxe-$TARGET-w64-mingw32.shared-libgcrypt \
        mxe-$TARGET-w64-mingw32.shared-libusb1 \
        mxe-$TARGET-w64-mingw32.shared-lzo \
        mxe-$TARGET-w64-mingw32.shared-nettle \
        mxe-$TARGET-w64-mingw32.shared-ncurses \
        mxe-$TARGET-w64-mingw32.shared-nsis \
        mxe-$TARGET-w64-mingw32.shared-pixman \
        mxe-$TARGET-w64-mingw32.shared-pkgconf \
        mxe-$TARGET-w64-mingw32.shared-pthreads \
        mxe-$TARGET-w64-mingw32.shared-sdl2 \
        mxe-$TARGET-w64-mingw32.shared-sdl2-mixer \
        mxe-$TARGET-w64-mingw32.shared-sdl2-gfx \
        mxe-$TARGET-w64-mingw32.shared-zlib \
        curl && \
    curl -s -S -o /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/include/WinHvEmulation.h \
        "https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/include/winhvemulation.h?format=raw" && \
    curl -s -S -o /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/include/WinHvPlatform.h \
        "https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/include/winhvplatform.h?format=raw" && \
    curl -s -S -o /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/include/winhvplatformdefs.h \
        "https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/include/winhvplatformdefs.h?format=raw"

# Specify the cross prefix for this image (see tests/docker/common.rc)
ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-w64-mingw32.shared-