mirror of
https://github.com/fwbuilder/fwbuilder
synced 2025-06-15 22:57:32 +02:00
chore: Add Docker build env for mxe-w32 crossbuild
This commit is contained in:
parent
863e1b9956
commit
6737818fa5
14
build_mxe-w32.sh
Executable file
14
build_mxe-w32.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
JOBS=$(nproc --all)
|
||||
|
||||
export PATH=/usr/lib/mxe/usr/bin:$PATH
|
||||
export TOOLCHAIN_PREFIX=/usr/lib/mxe/usr/i686-w64-mingw32.shared
|
||||
|
||||
./autogen.sh \
|
||||
--with-xml2-config=/usr/lib/mxe/usr/i686-w64-mingw32.shared/bin/xml2-config \
|
||||
--with-xslt-config=/usr/lib/mxe/usr/i686-w64-mingw32.shared/bin/xslt-config \
|
||||
--with-qtdir=/usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5 \
|
||||
--host=i686-w64-mingw32.shared
|
||||
make -j${JOBS}
|
||||
|
||||
makensis -nocd packaging/fwbuilder.nsi
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '2'
|
||||
services:
|
||||
mxe-w32:
|
||||
build: docker/.
|
||||
command: ./build_mxe-w32.sh
|
||||
volumes:
|
||||
- .:/fwbuilder
|
||||
working_dir: /fwbuilder
|
||||
|
51
docker/Dockerfile
Normal file
51
docker/Dockerfile
Normal file
@ -0,0 +1,51 @@
|
||||
FROM ubuntu:16.10
|
||||
|
||||
# We need this to use apt-key
|
||||
RUN apt-get update && apt-get install -y \
|
||||
dirmngr
|
||||
|
||||
# Add mxe repos
|
||||
RUN echo "deb http://pkg.mxe.cc/repos/apt/debian wheezy main" > \
|
||||
/etc/apt/sources.list.d/mxeapt.list && \
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
automake \
|
||||
autopoint \
|
||||
bash \
|
||||
bison \
|
||||
bzip2 \
|
||||
flex \
|
||||
gettext \
|
||||
git \
|
||||
g++ \
|
||||
g++-multilib \
|
||||
gperf \
|
||||
intltool \
|
||||
libc6-dev-i386 \
|
||||
libffi-dev \
|
||||
libgdk-pixbuf2.0-dev \
|
||||
libtool \
|
||||
libltdl-dev \
|
||||
libssl-dev \
|
||||
libxml-parser-perl \
|
||||
make \
|
||||
openssl \
|
||||
p7zip-full \
|
||||
patch \
|
||||
perl \
|
||||
pkg-config \
|
||||
python \
|
||||
ruby \
|
||||
scons \
|
||||
sed \
|
||||
unzip \
|
||||
wget \
|
||||
xz-utils \
|
||||
nsis \
|
||||
mxe-i686-w64-mingw32.shared-qtbase \
|
||||
mxe-i686-w64-mingw32.shared-libxml2 \
|
||||
mxe-i686-w64-mingw32.shared-libxslt
|
||||
|
||||
WORKDIR /root
|
Loading…
x
Reference in New Issue
Block a user