-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
62 lines (54 loc) · 2.09 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
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 echo 'deb http://apt.llvm.org/jessie/ llvm-toolchain-jessie main\ndeb-src http://apt.llvm.org/jessie/ llvm-toolchain-jessie main' >> /etc/apt/sources.list
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN apt-get update
RUN git clone --depth=1 https://github.com/tpoechtrager/osxcross.git /osxcross
RUN /osxcross/tools/get_dependencies.sh
ARG OSX_SDK_FILE
COPY $OSX_SDK_FILE /osxcross/tarballs/
RUN ls -la /osxcross/tarballs
RUN UNATTENDED=1 /osxcross/build.sh
RUN printf '#!/bin/bash\n \
set -x\n \
export PATH=$PATH:/osxcross/target/bin\n \
o32-clang++ -v\n \
mkdir /build/linux\n \
cd /build/linux\n \
pwd\n \
cmake /ddnet && make\n \
mkdir /build/win64\n \
cd /build/win64\n \
pwd\n \
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw64.toolchain /ddnet && make\n \
mkdir /build/win32\n \
cd /build/win32\n \
pwd\n \
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw32.toolchain /ddnet && make\n \
mkdir /build/osx\n \
cd /build/osx\n \
pwd\n \
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/darwin.toolchain -DCMAKE_OSX_SYSROOT=/osxcross/target/SDK/MacOSX10.11.sdk/ /ddnet && make' \
>> build-all.sh
RUN chmod +x build-all.sh
RUN mkdir /build
ADD . /ddnet