-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.mingw-cross
More file actions
38 lines (30 loc) · 1003 Bytes
/
Copy pathDockerfile.mingw-cross
File metadata and controls
38 lines (30 loc) · 1003 Bytes
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
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt install -y \
mingw-w64 wget curl cmake ninja-build \
ca-certificates vim wine
ENV DEBIAN_FRONTEND=dialog
ENV WORKDIR=root/project
RUN mkdir $WORKDIR
#Set the working dir to the env variable
WORKDIR $WORKDIR
COPY test test
COPY fuzz fuzz
COPY CMakeLists.txt CMakeLists.txt
COPY scripts scripts
COPY cli-test-cases cli-test-cases
COPY src src
RUN cmake -S . -B build \
-GNinja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc-posix -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++-posix \
-DBuildTest=TRUE \
-DCMAKE_SYSTEM_NAME=Windows -DCMAKE_CROSS_COMPILING=TRUE
RUN ninja -C./build
#RUN dpkg --add-architecture i386
#RUN apt-get update \
# && apt install -y \
# wine32
ENV WINEPATH="/usr/lib/gcc/x86_64-w64-mingw32/10-posix;/usr/x86_64-w64-mingw32/lib"
RUN wine cmd /C build/test/WarfLang_TEST.exe
RUN wine cmd /C build/src/cli/Warf.exe cli-test-cases/add.wef