ddnet/Dockerfile

53 lines
1.5 KiB
Docker
Raw Normal View History

2021-09-09 07:24:37 +00:00
FROM debian:11
2018-03-02 03:46:39 +00:00
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 \
libpng-dev \
2018-03-02 03:46:39 +00:00
libwavpack-dev \
libopusfile-dev \
2021-09-09 07:24:37 +00:00
libsdl2-dev \
cmake
2018-04-03 15:40:00 +00:00
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
2018-03-02 03:46:39 +00:00
RUN printf '#!/bin/bash\n \
set -x\n \
2018-04-03 15:40:00 +00:00
export PATH=$PATH:/osxcross/target/bin\n \
o32-clang++ -v\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 \
2018-04-03 15:40:00 +00:00
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/mingw32.toolchain /ddnet && make\n \
2021-12-04 12:26:12 +00:00
mkdir /build/macos\n \
cd /build/macos\n \
2018-04-03 15:40:00 +00:00
pwd\n \
cmake -DCMAKE_TOOLCHAIN_FILE=/ddnet/cmake/toolchains/darwin.toolchain -DCMAKE_OSX_SYSROOT=/osxcross/target/SDK/MacOSX10.11.sdk/ /ddnet && make' \
2018-03-02 03:46:39 +00:00
>> build-all.sh
RUN chmod +x build-all.sh
2018-04-03 15:40:00 +00:00
RUN mkdir /build
2018-03-02 03:46:39 +00:00
2018-04-03 15:40:00 +00:00
ADD . /ddnet