Skip to content

Commit 75cf178

Browse files
committed
Update build scripts for libdrm/SRT
1 parent c093f98 commit 75cf178

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

build-srt.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies() {
2828
}
2929

3030
echo "# Checking Dependencies"
31-
DEPS=(${LOCAL_CC}-multilib ${LOCAL_CXX}-multilib unzip)
31+
DEPS=(${LOCAL_CC}-multilib ${LOCAL_CXX}-multilib unzip libdrm-dev)
3232
install
3333

3434

@@ -42,7 +42,7 @@ dependencies() {
4242
set -e
4343

4444
if [[ ! -f ./bin/get-pip.py ]]; then
45-
curl https://bootstrap.pypa.io/get-pip.py -o bin/get-pip.py
45+
curl https://bootstrap.pypa.io/pip/3.5/get-pip.py -o bin/get-pip.py
4646
python3 ./bin/get-pip.py
4747
fi
4848
pip3 install 'meson>=0.54' mako
@@ -81,7 +81,7 @@ configure() {
8181

8282
build() {
8383
if [[ ! -f "build-srt/meson64/build.ninja" || ! -f "build-srt/meson32/build.ninja" ]]; then
84-
configure
84+
configure $@
8585
fi
8686
DESTDIR="$PWD/build-srt/release" ninja -C build-srt/meson32 install
8787
DESTDIR="$PWD/build-srt/release" ninja -C build-srt/meson64 install

build-with-srt-docker.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ fi
99

1010
SRCDIR=$PWD
1111
BRANCH="${1:-master}"
12-
# soldier 0.20201022.1 or newer
13-
# scout 0.20201104.0 or newer
12+
# soldier 0.20210618.0 or newer
13+
# scout 0.20210630.0 or newer
1414
RUNTIME="${2:-soldier}"
1515
VERSION="${3:-0.20210618.0}"
1616
IMAGE="steamrt_${RUNTIME}_${VERSION}_amd64:mango-${RUNTIME}"

build.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LAYER="build/release/usr/share/vulkan/implicit_layer.d/mangohud.json"
1010
INSTALL_DIR="build/package/"
1111
IMPLICIT_LAYER_DIR="$XDG_DATA_HOME/vulkan/implicit_layer.d"
1212
VERSION=$(git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//')
13-
SU_CMD=$(command -v sudo || command -v doas)
13+
SU_CMD=$(command -v sudo || command -v doas || echo)
1414

1515
# doas requires a double dash if the command it runs will include any dashes,
1616
# so append a double dash to the command
@@ -56,7 +56,7 @@ dependencies() {
5656
"Arch Linux"|"Manjaro Linux")
5757
MANAGER_QUERY="pacman -Q"
5858
MANAGER_INSTALL="pacman -S"
59-
DEPS="{gcc,meson,pkgconf,python-mako,glslang,libglvnd,lib32-libglvnd,libxnvctrl}"
59+
DEPS="{gcc,meson,pkgconf,python-mako,glslang,libglvnd,lib32-libglvnd,libxnvctrl,libdrm}"
6060
dep_install
6161
;;
6262
"Fedora")
@@ -81,7 +81,7 @@ dependencies() {
8181
if [[ ! -f /usr/local/bin/glslangValidator ]]; then
8282
wget https://github.com/KhronosGroup/glslang/releases/download/SDK-candidate-26-Jul-2020/glslang-master-linux-Release.zip
8383
unzip glslang-master-linux-Release.zip bin/glslangValidator
84-
$SU_CMD install -m755 bin/glslangValidator /usr/local/bin/
84+
$SU_CMD /usr/bin/install -m755 bin/glslangValidator /usr/local/bin/
8585
rm bin/glslangValidator glslang-master-linux-Release.zip
8686
fi
8787
;;
@@ -101,7 +101,7 @@ dependencies() {
101101

102102
MANAGER_QUERY="rpm -q"
103103
MANAGER_INSTALL="zypper install"
104-
DEPS="{gcc-c++,gcc-c++-32bit,libpkgconf-devel,ninja,python3-pip,python3-Mako,libX11-devel,glslang-devel,glibc-devel,glibc-devel-32bit,libstdc++-devel,libstdc++-devel-32bit,Mesa-libGL-devel,dbus-1-devel,${PACKMAN_PKGS}}"
104+
DEPS="{gcc-c++,gcc-c++-32bit,libpkgconf-devel,ninja,python3-pip,python3-Mako,libX11-devel,glslang-devel,glibc-devel,glibc-devel-32bit,libstdc++-devel,libstdc++-devel-32bit,Mesa-libGL-devel,dbus-1-devel,libdrm-devel,${PACKMAN_PKGS}}"
105105
dep_install
106106

107107
if [[ $(pip3 show meson; echo $?) == 1 ]]; then
@@ -294,6 +294,7 @@ while [ $# -gt 0 ]; do
294294
"pull") git pull ${OPTS[@]};;
295295
"configure") configure ${OPTS[@]};;
296296
"build") build ${OPTS[@]};;
297+
"build_dbg") build --buildtype=debug -Dglibcxx_asserts=true ${OPTS[@]};;
297298
"package") package;;
298299
"install") install;;
299300
"reinstall") reinstall;;

steamrt.Dockerfile.in

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ set -e; \
66
mkdir -p /run/systemd; \
77
echo 'docker' > /run/systemd/container; \
88
mkdir -p /prep; cd /prep; \
9-
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; \
9+
if [ -f /usr/bin/python3.5 ]; then \
10+
ln -sf python3.5 /usr/bin/python3; \
11+
curl https://bootstrap.pypa.io/pip/3.5/get-pip.py -o get-pip.py; \
12+
else \
13+
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; \
14+
fi; \
1015
if [ ! -f /usr/bin/unzip ]; then apt-get update; apt-get -y install unzip; fi; \
11-
if [ -f /usr/bin/python3.5 ]; then ln -sf python3.5 /usr/bin/python3; fi; \
1216
python3 ./get-pip.py; \
1317
pip3 install meson mako; \
1418
curl -LO http://mirrors.kernel.org/ubuntu/pool/main/n/nvidia-settings/libxnvctrl0_440.64-0ubuntu1_amd64.deb; \

0 commit comments

Comments
 (0)