Add release build scripts for all platforms

This commit is contained in:
Martin Natano
2022-06-06 23:40:27 +02:00
parent 6f0aa8adf9
commit b02f565f08
5 changed files with 39 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
FROM ubuntu:16.04
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl g++ gcc git libasound2-dev libbz2-dev libgl1-mesa-dev libglu1-mesa-dev libgtk-3-dev libjack-dev libpulse-dev libssl-dev libudev-dev libva-dev libxinerama-dev libxrandr-dev libxtst-dev make nasm
RUN cd ~ && curl -L -o cmake.sh https://github.com/Kitware/CMake/releases/download/v3.23.2/cmake-3.23.2-linux-x86_64.sh && sh cmake.sh --skip-license --prefix=/usr/local && rm cmake.sh
CMD /bin/bash
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -eux
cd "$(dirname $0)"
docker build -f Dockerfile-linux-amd64 . -t itgmania-linux-build:amd64
docker run -i -v $(pwd)/..:/data itgmania-linux-build:amd64 sh -eux <<'EOF'
cmake -S /data -B /tmp/Build -DCMAKE_BUILD_TYPE=Release -DWITH_FULL_RELEASE=On
cmake --build /tmp/Build -j $(nproc)
cmake --build /tmp/Build --target package
mkdir -p /data/Build/release
cp /tmp/Build/ITGmania-* /data/Build/release/
EOF
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eux
cd "$(dirname $0)/.."
cmake -B Build/release-arm64 -DCMAKE_BUILD_TYPE=Release -DWITH_FULL_RELEASE=On -DCMAKE_OSX_ARCHITECTURES=arm64
cmake --build Build/release-arm64 -j $(sysctl -n hw.logicalcpu)
cmake --build Build/release-arm64 --target package
cmake -B Build/release-x86_64 -DCMAKE_BUILD_TYPE=Release -DWITH_FULL_RELEASE=On -DCMAKE_OSX_ARCHITECTURES=x86_64
cmake --build Build/release-x86_64 -j $(sysctl -n hw.logicalcpu)
cmake --build Build/release-x86_64 --target package
+5
View File
@@ -0,0 +1,5 @@
cd %~dp0..
cmake -B Build\release -DWITH_FULL_RELEASE=On || exit /b
cmake --build Build\release --config Release -j %NUMBER_OF_PROCESSORS% || exit /b
cmake --build Build\release --config Release --target package || exit /b