liushuyu
7 years ago
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
2 changed files with
23 additions and
2 deletions
-
linux-mingw/Dockerfile
-
linux-mingw/mingw-setup.sh
|
|
@ -1,6 +1,6 @@ |
|
|
FROM ubuntu:18.04 |
|
|
FROM ubuntu:18.04 |
|
|
MAINTAINER citra |
|
|
MAINTAINER citra |
|
|
RUN useradd -m -s /bin/bash citra |
|
|
|
|
|
|
|
|
RUN useradd -m -s /bin/bash citra && mkdir -p /tmp/pkgs |
|
|
RUN apt-get update && apt-get install -y gpg wget git python3-pip ccache p7zip-full g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64 mingw-w64-tools cmake |
|
|
RUN apt-get update && apt-get install -y gpg wget git python3-pip ccache p7zip-full g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64 mingw-w64-tools cmake |
|
|
# workaround broken headers in Ubuntu MinGW package |
|
|
# workaround broken headers in Ubuntu MinGW package |
|
|
COPY errno.h /usr/x86_64-w64-mingw32/include/ |
|
|
COPY errno.h /usr/x86_64-w64-mingw32/include/ |
|
|
@ -8,4 +8,5 @@ COPY errno.h /usr/x86_64-w64-mingw32/include/ |
|
|
RUN echo 'deb http://ppa.launchpad.net/tobydox/mingw-w64/ubuntu bionic main ' > /etc/apt/sources.list.d/extras.list |
|
|
RUN echo 'deb http://ppa.launchpad.net/tobydox/mingw-w64/ubuntu bionic main ' > /etc/apt/sources.list.d/extras.list |
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv '72931B477E22FEFD47F8DECE02FE5F12ADDE29B2' && apt-get update |
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv '72931B477E22FEFD47F8DECE02FE5F12ADDE29B2' && apt-get update |
|
|
RUN apt-get install -y sdl2-mingw-w64 qt5base-mingw-w64 qt5tools-mingw-w64 libsamplerate-mingw-w64 qt5multimedia-mingw-w64 |
|
|
RUN apt-get install -y sdl2-mingw-w64 qt5base-mingw-w64 qt5tools-mingw-w64 libsamplerate-mingw-w64 qt5multimedia-mingw-w64 |
|
|
RUN pip3 install pefile |
|
|
|
|
|
|
|
|
COPY mingw-setup.sh /tmp/pkgs |
|
|
|
|
|
RUN cd /tmp/pkgs && bash -e mingw-setup.sh |
|
|
@ -0,0 +1,20 @@ |
|
|
|
|
|
#!/usr/bin/bash -e |
|
|
|
|
|
# install pefile |
|
|
|
|
|
pip3 install pefile |
|
|
|
|
|
|
|
|
|
|
|
# ffmpeg |
|
|
|
|
|
FFMPEG_VER='4.1' |
|
|
|
|
|
for i in 'shared' 'dev'; do |
|
|
|
|
|
echo "Downloading ffmpeg (${i})..." |
|
|
|
|
|
wget -q -c "https://ffmpeg.zeranoe.com/builds/win64/${i}/ffmpeg-${FFMPEG_VER}-win64-${i}.zip" |
|
|
|
|
|
7z x "ffmpeg-${FFMPEG_VER}-win64-${i}.zip" > /dev/null |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
echo "Copying ffmpeg ${FFMPEG_VER} files to sysroot..." |
|
|
|
|
|
cp -v "ffmpeg-${FFMPEG_VER}-win64-shared"/bin/*.dll /usr/x86_64-w64-mingw32/lib/ |
|
|
|
|
|
cp -vr "ffmpeg-${FFMPEG_VER}-win64-dev"/include /usr/x86_64-w64-mingw32/ |
|
|
|
|
|
cp -v "ffmpeg-${FFMPEG_VER}-win64-dev"/lib/*.{a,def} /usr/x86_64-w64-mingw32/lib/ |
|
|
|
|
|
|
|
|
|
|
|
# remove the directory |
|
|
|
|
|
ABS_PATH="$(readlink -f $0)" |
|
|
|
|
|
rm -rf "$(dirname ${ABS_PATH})" |