2020-04-23 17:57:50 +02:00
|
|
|
# Debian Buster is recommended
|
|
|
|
FROM syping/llvm-mingw-debian:10.0
|
|
|
|
|
|
|
|
# Custom Directory
|
|
|
|
ENV CUSTOM_DIRECTORY YES
|
|
|
|
ENV BUILD_DIR /temp/build
|
|
|
|
ENV SOURCE_DIR /temp/src
|
|
|
|
ENV PREFIX_DIR /usr/local
|
|
|
|
ENV QT_SHARE_DIR /usr/local/share
|
|
|
|
ENV QT_SYSCONF_DIR /etc/xdg
|
|
|
|
|
|
|
|
# Custom Version
|
|
|
|
ENV CUSTOM_VERSION YES
|
2020-06-12 13:52:40 +02:00
|
|
|
ENV QT_SERIES 5.15
|
|
|
|
ENV QT_BUILD 0
|
2020-04-30 18:21:35 +02:00
|
|
|
ENV ZLIB_VERSION 1.2.11
|
|
|
|
ENV LIBPNG_VERSION 1.6.37
|
2020-04-23 17:57:50 +02:00
|
|
|
ENV LIBJPEGTURBO_VERSION 2.0.4
|
2020-06-12 13:52:40 +02:00
|
|
|
ENV LIBRESSL_VERSION 3.1.2
|
2020-04-30 21:07:13 +02:00
|
|
|
ENV OPENSSL_VERSION 1.1.1g
|
2020-06-12 13:52:40 +02:00
|
|
|
ENV ICU_VERSION 67.1
|
|
|
|
ENV HB_VERSION 2.6.7
|
2020-04-23 17:57:50 +02:00
|
|
|
|
|
|
|
# SSL Choice
|
|
|
|
ENV CUSTOM_SSL YES
|
|
|
|
ENV USE_OPENSSL YES
|
|
|
|
ENV CUSTOM_OPENSSL_INSTALL YES
|
|
|
|
|
|
|
|
# Compiler Choice
|
|
|
|
ENV MINGW_USE_CLANG YES
|
|
|
|
|
|
|
|
# MinGW sets used
|
|
|
|
ENV BUILD_MINGW32_SHARED NO
|
|
|
|
ENV BUILD_MINGW64_SHARED NO
|
|
|
|
|
|
|
|
##############################
|
|
|
|
# DON'T EDIT BELOW THIS LINE #
|
|
|
|
##############################
|
|
|
|
|
|
|
|
COPY qt_build /opt/qt_build/bin/
|
|
|
|
COPY qmake-static /usr/local/bin/
|
|
|
|
|
|
|
|
RUN rm -f /bin/sh && \
|
|
|
|
ln -s /bin/bash /bin/sh
|
|
|
|
|
|
|
|
RUN export PATH=/opt/llvm-mingw/bin:${PATH} && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y bash cmake coreutils g++ git gzip make nasm ninja-build perl python qtchooser tar upx wget xz-utils zlib1g zlib1g-dev && \
|
|
|
|
rm -rf /temp && \
|
|
|
|
/opt/qt_build/bin/qt_build && \
|
|
|
|
rm -rf /temp && \
|
|
|
|
apt-get remove -y cmake g++ libucl-dev nasm ninja-build perl python zlib1g-dev && \
|
|
|
|
apt-get autoremove -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN qtchooser -install -f qt5-x86_64-w64-mingw32 ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \
|
|
|
|
qtchooser -install -f qt5-i686-w64-mingw32 ${PREFIX_DIR}/lib/i686-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \
|
|
|
|
qtchooser -install -f 5 ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \
|
|
|
|
qtchooser -install -f qt5 ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \
|
|
|
|
qtchooser -install -f default ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s/bin/qmake && \
|
2020-05-05 14:14:02 +02:00
|
|
|
ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/zlib-${ZLIB_VERSION} ${PREFIX_DIR}/lib/i686-w64-mingw32/zlib && \
|
2020-04-30 18:21:35 +02:00
|
|
|
ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/zlib-${ZLIB_VERSION} ${PREFIX_DIR}/lib/x86_64-w64-mingw32/zlib && \
|
2020-05-05 14:14:02 +02:00
|
|
|
ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/libpng-${LIBPNG_VERSION} ${PREFIX_DIR}/lib/i686-w64-mingw32/libpng && \
|
2020-04-30 18:21:35 +02:00
|
|
|
ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libpng-${LIBPNG_VERSION} ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libpng && \
|
|
|
|
ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/libjpeg-turbo-${LIBJPEGTURBO_VERSION} ${PREFIX_DIR}/lib/i686-w64-mingw32/libjpeg-turbo && \
|
|
|
|
ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libjpeg-turbo-${LIBJPEGTURBO_VERSION} ${PREFIX_DIR}/lib/x86_64-w64-mingw32/libjpeg-turbo && \
|
2020-04-23 17:57:50 +02:00
|
|
|
ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/openssl-${OPENSSL_VERSION}_s ${PREFIX_DIR}/lib/i686-w64-mingw32/openssl && \
|
|
|
|
ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/openssl-${OPENSSL_VERSION}_s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/openssl && \
|
|
|
|
ln -s ${PREFIX_DIR}/lib/i686-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s ${PREFIX_DIR}/lib/i686-w64-mingw32/qt5 && \
|
|
|
|
ln -s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt_${QT_SERIES}.${QT_BUILD}_s ${PREFIX_DIR}/lib/x86_64-w64-mingw32/qt5
|
|
|
|
|
|
|
|
CMD ["/bin/bash"]
|