2019-01-29 21:58:21 +00:00
|
|
|
# Build the image using the --build-arg option, e.g.:
|
|
|
|
# docker build -t boret/myimage:0.1 --build-arg=mxe_sha=123ABC456 .
|
|
|
|
#
|
2019-01-24 21:45:54 +00:00
|
|
|
|
2019-01-29 21:58:21 +00:00
|
|
|
From ubuntu:18.04
|
|
|
|
ARG mxe_sha=master
|
|
|
|
ENV _ver=${mxe_sha}
|
2019-01-24 21:45:54 +00:00
|
|
|
RUN mkdir -p /win
|
|
|
|
ADD settings.mk /win
|
2019-05-17 22:55:17 +00:00
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
|
|
RUN apt-get install -y \
|
2019-01-24 21:45:54 +00:00
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
autopoint \
|
|
|
|
bash \
|
|
|
|
binutils \
|
|
|
|
bison \
|
|
|
|
bzip2 \
|
|
|
|
flex \
|
|
|
|
g++ \
|
|
|
|
g++-multilib \
|
|
|
|
gettext \
|
|
|
|
git \
|
|
|
|
gperf \
|
|
|
|
intltool \
|
|
|
|
libc6-dev-i386 \
|
|
|
|
libgdk-pixbuf2.0-dev \
|
|
|
|
libltdl-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libtool-bin \
|
|
|
|
libxml-parser-perl \
|
|
|
|
make \
|
|
|
|
openssl \
|
|
|
|
p7zip-full \
|
|
|
|
patch \
|
|
|
|
perl \
|
|
|
|
pkg-config \
|
|
|
|
python \
|
|
|
|
ruby \
|
|
|
|
sed \
|
|
|
|
unzip \
|
|
|
|
wget \
|
|
|
|
xz-utils \
|
|
|
|
lzip \
|
2019-05-17 22:55:17 +00:00
|
|
|
scons
|
|
|
|
RUN cd /win ; git clone git://github.com/mxe/mxe ; \
|
2019-01-24 21:45:54 +00:00
|
|
|
cd mxe ; \
|
2019-01-29 21:58:21 +00:00
|
|
|
git checkout ${_ver} ;
|
2019-05-17 22:55:17 +00:00
|
|
|
RUN mv /win/settings.mk /win/mxe
|
|
|
|
RUN cd /win/mxe ; \
|
|
|
|
make -j 6 2>&1 | tee build.log ;
|
2019-01-29 16:43:16 +00:00
|
|
|
RUN cd /win/mxe ; \
|
2019-02-01 16:27:44 +00:00
|
|
|
make MXE_TARGETS=i686-w64-mingw32.static glib -j 6 2>&1 | tee -a build.log ;
|
2019-05-17 22:55:17 +00:00
|
|
|
RUN cd /win/mxe ; \
|
|
|
|
mkdir -p neolit ; cd neolit ; git clone -b wip/win git://github.com/qt/qtconnectivity
|
|
|
|
RUN cd /win/mxe/neolit/qtconnectivity ; \
|
2019-01-24 21:45:54 +00:00
|
|
|
PATH=/win/mxe/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /win/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake qtconnectivity.pro ; \
|
|
|
|
PATH=/win/mxe/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make -j 6 ; \
|
2019-05-17 22:55:17 +00:00
|
|
|
PATH=/win/mxe/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin make install ;
|
|
|
|
RUN rm -rf /win/mxe/pkg
|