mirror of
https://github.com/ivanizag/izapple2.git
synced 2025-01-16 05:33:59 +00:00
Add SDL2 runtime for windows
This commit is contained in:
parent
fdd17624ab
commit
acf47f3fc0
@ -1,14 +1,17 @@
|
||||
FROM golang:1.12
|
||||
FROM golang:1.15.2
|
||||
|
||||
LABEL MAINTAINER="Ivan Izaguirre <ivanizag@gmail.com>"
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y libsdl2-dev mingw-w64
|
||||
RUN apt-get install -y libsdl2-dev mingw-w64 unzip
|
||||
|
||||
RUN wget https://www.libsdl.org/release/SDL2-devel-2.0.12-mingw.tar.gz
|
||||
RUN tar -xzf SDL2-devel-2.0.12-mingw.tar.gz
|
||||
RUN cp -r SDL2-2.0.12/x86_64-w64-mingw32 /usr
|
||||
|
||||
RUN wget https://www.libsdl.org/release/SDL2-2.0.12-win32-x64.zip
|
||||
RUN unzip SDL2-2.0.12-win32-x64.zip -d /sdl2runtime
|
||||
|
||||
COPY buildindocker.sh .
|
||||
RUN chmod +x buildindocker.sh
|
||||
|
||||
|
@ -25,3 +25,6 @@ cd /tmp/izapple2/izapple2sdl
|
||||
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows CGO_LDFLAGS="-L/usr/x86_64-w64-mingw32/lib -lSDL2" CGO_FLAGS="-I/usr/x86_64-w64-mingw32/include -D_REENTRANT" go build -o izapple2sdl.exe .
|
||||
chown --reference /build izapple2sdl.exe
|
||||
cp izapple2sdl.exe /build
|
||||
|
||||
# Copy SDL2 Runtime
|
||||
cp /sdl2runtime/* /build
|
||||
|
Loading…
x
Reference in New Issue
Block a user