aboutsummaryrefslogtreecommitdiff
path: root/scripts/windows/Dockerfile
blob: f4f1a8360246f13fa35c4cbeda1a2147da79f2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM oldmud0/mxe-qt:5.13.0-win32-static-posix
#FROM fffaraz/qt:windows

ENV TARGET_SPEC i686-w64-mingw32.static.posix

# Build Discord RPC statically
RUN git clone https://github.com/discordapp/discord-rpc
WORKDIR discord-rpc/build
RUN /opt/mxe/usr/bin/${TARGET_SPEC}-cmake .. -DCMAKE_INSTALL_PREFIX=/opt/mxe/usr/${TARGET_SPEC}
RUN /opt/mxe/usr/bin/${TARGET_SPEC}-cmake --build . --config Release --target install
WORKDIR ../..

# NOTE: Do not build QtApng statically! libpng contains a self-test entry point that
# takes precedence for some reason over the final build's entry point.