2018-03-02 03:46:39 +00:00
|
|
|
FROM debian:8
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y mingw-w64 \
|
|
|
|
wget \
|
|
|
|
git \
|
|
|
|
ca-certificates \
|
|
|
|
build-essential \
|
|
|
|
python3 \
|
|
|
|
libcurl4-openssl-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libglew-dev \
|
|
|
|
libogg-dev \
|
|
|
|
libopus-dev \
|
|
|
|
libpnglite-dev \
|
|
|
|
libwavpack-dev \
|
|
|
|
libopusfile-dev \
|
|
|
|
libsdl2-dev
|
|
|
|
|
|
|
|
RUN update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 && \
|
|
|
|
update-alternatives --install /usr/bin/python python /usr/bin/python3 2
|
|
|
|
|
|
|
|
RUN wget https://cmake.org/files/v3.11/cmake-3.11.0-rc2-Linux-x86_64.sh && \
|
|
|
|
chmod +x cmake-3.11.0-rc2-Linux-x86_64.sh && \
|
|
|
|
./cmake-3.11.0-rc2-Linux-x86_64.sh --skip-license --prefix=/usr/local
|
|
|
|
|
|
|
|
RUN mkdir /build
|
2018-04-03 10:16:31 +00:00
|
|
|
WORKDIR /ddnet
|
|
|
|
ADD . /ddnet
|
2018-03-02 03:46:39 +00:00
|
|
|
|
|
|
|
RUN printf '#!/bin/bash\n \
|
|
|
|
set -x\n \
|
2018-04-03 10:16:31 +00:00
|
|
|
mkdir /build/linux\n \
|
|
|
|
cd /build/linux\n \
|
2018-03-02 03:46:39 +00:00
|
|
|
pwd\n \
|
|
|
|
cmake /ddnet && make\n \
|
2018-04-03 10:16:31 +00:00
|
|
|
mkdir /build/win64\n \
|
|
|
|
cd /build/win64\n \
|
2018-03-02 03:46:39 +00:00
|
|
|
pwd\n \
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw64.toolchain /ddnet && make\n \
|
2018-04-03 10:16:31 +00:00
|
|
|
mkdir /build/win32\n \
|
|
|
|
cd /build/win32\n \
|
2018-03-02 03:46:39 +00:00
|
|
|
pwd\n \
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw32.toolchain /ddnet && make' \
|
|
|
|
>> build-all.sh
|
|
|
|
|
|
|
|
RUN chmod +x build-all.sh
|
|
|
|
|