|
1 | | -# FROM dockcross/windows-shared-x64:20250324-a3b42cd |
2 | 1 | FROM dockcross/windows-static-x64:20250324-a3b42cd |
3 | 2 | ENV DEFAULT_DOCKCROSS_IMAGE aws-crt-kotlin/mingw-x64:latest |
4 | | - |
5 | | -RUN curl -LJo konan-toolchain.tar.gz https://download.jetbrains.com/kotlin/native/msys2-mingw-w64-x86_64-2.tar.gz |
6 | | -# Remove the cross compile root from the original image and put our own one based |
7 | | -# on the K/N toolchain. |
8 | | -#RUN mv /usr/src/mxe/usr/x86_64-w64-mingw32.static /tmp/original/ && \ |
9 | | -# mkdir -p /usr/src/mxe/usr/x86_64-w64-mingw32 && \ |
10 | | -# tar -xzf konan-toolchain.tar.gz -C /usr/src/mxe/usr/x86_64-w64-mingw32 --strip-components=1 && \ |
11 | | -# rm konan-toolchain.tar.gz |
12 | | -# |
13 | | -#ENV MXE_PREFIX /usr/src/mxe/usr |
14 | | -#ENV CROSS_TRIPLE x86_64-w64-mingw32 |
15 | | -#ENV CROSS_ROOT ${MXE_PREFIX}/${CROSS_TRIPLE} |
16 | | -#RUN chmod 755 ${CROSS_ROOT}/bin/*.exe ${CROSS_ROOT}/${CROSS_TRIPLE}/bin/*.exe |
17 | | -#ENV PATH ${PATH}:${CROSS_ROOT}/bin:${CROSS_ROOT}/${CROSS_TRIPLE}/bin |
18 | | -# |
19 | | -#ENV AS=${CROSS_TRIPLE}.static-as \ |
20 | | -# AR=${CROSS_TRIPLE}.static-ar \ |
21 | | -# CC=${CROSS_TRIPLE}.static-gcc \ |
22 | | -# CPP=${CROSS_TRIPLE}.static-cpp \ |
23 | | -# CXX=${CROSS_TRIPLE}.static-g++ \ |
24 | | -# LD=${CROSS_TRIPLE}.static-ld \ |
25 | | -# FC=${CROSS_TRIPLE}.static-gfortran \ |
26 | | -# STRIP=${CROSS_TRIPLE}.static-strip \ |
27 | | -# OBJCOPY=${CROSS_TRIPLE}.static-objcopy \ |
28 | | -# CFLAGS="-I ${CROSS_ROOT}/include/ -I ${CROSS_ROOT}/${CROSS_TRIPLE}/include/ -L ${CROSS_ROOT}/lib/ -L ${CROSS_ROOT}/${CROSS_TRIPLE}/lib/" \ |
29 | | -# LDFLAGS="-L ${CROSS_ROOT}/lib/ -L ${CROSS_ROOT}/${CROSS_TRIPLE}/lib" |
30 | | -# |
31 | | -#COPY docker-images/mingw-x64/Toolchain.cmake ${CROSS_ROOT}/ |
32 | | -#ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/Toolchain.cmake |
0 commit comments