-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
93 lines (80 loc) · 2.02 KB
/
Dockerfile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Dockerfile for building a cross developing environment for Qt
# targeting Windows. It also builds the application in the current
# directory. The application will be statically linked against
# Qt.
#
# To build the environment invoke
# docker build -t qt .
# in the directory of this file. This creates a docker image
# called "qt". Note that it will take a while if you are building
# this image the first time. The contained application will also
# be compiled (in principle the last step could be done within
# the running container).
#
# Once build, you can enter the container via
# docker run qt -ti bash
#
# (c) 2014,2015 by Sebastian Bauer
#
# Note that Docker requires a relatively recent Linux kernel.
# 3.8 is the current minimum.
#
FROM debian:jessie
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
autoconf \
automake \
autopoint \
binutils \
bison \
build-essential \
ca-certificates \
cmake \
debhelper \
devscripts \
fakeroot \
flex \
gcc \
git \
gperf \
intltool \
libffi-dev \
libgmp-dev \
libmpc-dev \
libmpfr-dev \
libtool \
libtool-bin \
libz-dev \
openssl \
patch \
pkg-config \
ruby \
scons \
subversion \
texinfo \
unzip \
wget
# see http://stackoverflow.com/questions/10934683/how-do-i-configure-qt-for-cross-compilation-from-linux-to-windows-target
# Preapre and download cross development environment
RUN mkdir /build
WORKDIR /build
RUN git clone https://github.com/mxe/mxe.git
# Build cross environment
RUN cd mxe && make qtbase
RUN cd mxe && make qtmultimedia
# TODO: Cleanup all unneeded stuff to make a slim image
# Enhance path
ENV PATH /build/mxe/usr/bin:$PATH
# Add a qmake alias
RUN ln -s /build/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 /build/mxe/usr/bin/qmake
##########################################################################
# Here the project specific workflow starts.
#
# Now copy the sources. They will become part of the image.
RUN mkdir /src
COPY . /src
# Switch to the source directory
WORKDIR /src
# Now build the project
RUN qmake
RUN make